Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mod1.u1|mod1.u2|mod1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mod1.u1|mod1.u2|mod1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001731/0.001731, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002122/0.002122, allocations: 194.1 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.094/3.094, allocations: 472.6 MB / 0.7451 GB, free: 4.652 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 68.02 kB / 0.912 GB, free: 33.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4017/0.403, allocations: 159.9 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.003159/0.4062, allocations: 0.7052 MB / 1.069 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001607/0.4078, allocations: 0.8685 MB / 1.07 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.125e-05/0.4079, allocations: 0 / 1.07 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.132e-05/0.408, allocations: 3.938 kB / 1.07 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.403e-05/0.4081, allocations: 7.922 kB / 1.07 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002521/0.4084, allocations: 23.92 kB / 1.07 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001171/0.4085, allocations: 47.86 kB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.4087, allocations: 7.984 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.399e-05/0.4088, allocations: 15.94 kB / 1.07 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.587e-05/0.4088, allocations: 23.91 kB / 1.07 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.354e-05/0.4089, allocations: 4 kB / 1.07 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.484e-05/0.4089, allocations: 0 / 1.07 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.514e-05/0.4089, allocations: 11.98 kB / 1.07 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.921e-05/0.409, allocations: 23.86 kB / 1.07 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001215/0.4091, allocations: 39.81 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4091, allocations: 7.938 kB / 1.07 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.386e-06/0.4091, allocations: 0 / 1.07 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.511e-06/0.4092, allocations: 0 / 1.07 GB, free: 8.629 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0006798/0.4098, allocations: 359.7 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/0.4099, allocations: 12.02 kB / 1.07 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.562e-05/0.41, allocations: 4.844 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000158/0.4101, allocations: 168.3 kB / 1.07 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.4102, allocations: 4.375 kB / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.4102, allocations: 8.375 kB / 1.07 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003265/0.4105, allocations: 66.2 kB / 1.071 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.4105, allocations: 192 / 1.071 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.037e-05/0.4106, allocations: 7.938 kB / 1.071 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.4106, allocations: 4 kB / 1.071 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000505/0.4111, allocations: 67.86 kB / 1.071 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004679/0.4116, allocations: 268.9 kB / 1.071 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002631/0.4119, allocations: 58.47 kB / 1.071 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001921/0.4121, allocations: 40.92 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.4121, allocations: 0 / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.636e-05/0.4121, allocations: 34.56 kB / 1.071 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.213e-06/0.4122, allocations: 0 / 1.071 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0007184/0.4129, allocations: 133.5 kB / 1.071 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.538e-05/0.4129, allocations: 55.41 kB / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.4131, allocations: 105.8 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.4131, allocations: 25.7 kB / 1.071 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.919e-05/0.4132, allocations: 92.05 kB / 1.071 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.451e-05/0.4132, allocations: 11.83 kB / 1.071 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.774e-05/0.4133, allocations: 13.72 kB / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001424/0.4134, allocations: 318.8 kB / 1.072 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001898/0.4136, allocations: 35.95 kB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/0.4138, allocations: 27.97 kB / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003508/0.4142, allocations: 76.72 kB / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.4142, allocations: 3.938 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004388/0.4146, allocations: 93.62 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.4147, allocations: 4 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.902e-06/0.4147, allocations: 0 / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.4147, allocations: 0 / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/0.4149, allocations: 23.97 kB / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.4149, allocations: 0 / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.415, allocations: 11.98 kB / 1.072 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.415, allocations: 0 / 1.072 GB, free: 6.309 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001978/0.4152, allocations: 118.3 kB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.722e-05/0.4153, allocations: 3.906 kB / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.327e-05/0.4153, allocations: 7.844 kB / 1.072 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.4153, allocations: 0 / 1.072 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.4154, allocations: 11.98 kB / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.4154, allocations: 3.938 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002383/0.4156, allocations: 169.6 kB / 1.072 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.4156, allocations: 4 kB / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001258/0.4158, allocations: 11.98 kB / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.4158, allocations: 336 / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.4158, allocations: 4 kB / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.4158, allocations: 0 / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.4158, allocations: 3.984 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006194/0.4165, allocations: 199.4 kB / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.511e-05/0.4165, allocations: 84.95 kB / 1.073 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.4166, allocations: 4 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.4167, allocations: 7.984 kB / 1.073 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.741e-05/0.4168, allocations: 11.98 kB / 1.073 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.68e-06/0.4168, allocations: 4 kB / 1.073 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.587e-05/0.4169, allocations: 91.27 kB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of sort global known variables: time 4.689e-06/0.4169, allocations: 0 / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003773/0.4173, allocations: 11.88 kB / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001924/0.4175, allocations: 99.25 kB / 1.073 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004488/0.4179, allocations: 71.92 kB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.4179, allocations: 0 / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000196/0.4181, allocations: 35.95 kB / 1.073 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004825/0.4186, allocations: 13.48 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004849/0.4191, allocations: 137.3 kB / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.4195, allocations: 0.6768 MB / 1.074 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.464e-05/0.4195, allocations: 7.984 kB / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.782e-05/0.4196, allocations: 7.438 kB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of SimCode: time 4.81e-07/0.4196, allocations: 0 / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of Templates: time 0.004288/0.4239, allocations: 0.7228 MB / 1.074 GB, free: 3.656 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Modulo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches