Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Integers.Validation.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.y|cha.u|cha.up|cha.y|cha.down|changeSampler.u|changeSampler.y|increaseSampler.u|increaseSampler.y|decreaseSampler.u|decreaseSampler.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.y|cha.u|cha.up|cha.y|cha.down|changeSampler.u|changeSampler.y|increaseSampler.u|increaseSampler.y|decreaseSampler.u|decreaseSampler.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 109.9 kB / 16.41 MB, free: 6.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 187 kB / 17.34 MB, free: 5.715 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.339/1.339, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.403/2.403, allocations: 437 MB / 0.7112 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001543, allocations: 67.89 kB / 1.019 GB, free: 9.375 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8767/0.8783, allocations: 151.6 MB / 1.167 GB, free: 3.824 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.003195/0.8815, allocations: 1.934 MB / 1.169 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001748/0.8833, allocations: 1.111 MB / 1.17 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.854e-05/0.8834, allocations: 11.94 kB / 1.17 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0003521/0.8837, allocations: 91.61 kB / 1.17 GB, free: 0.6641 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002648/0.884, allocations: 103.4 kB / 1.17 GB, free: 0.5625 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003775/0.8844, allocations: 161.1 kB / 1.171 GB, free: 416 kB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002515/0.8847, allocations: 211.5 kB / 1.171 GB, free: 204 kB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.8848, allocations: 49.66 kB / 1.171 GB, free: 152 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001561/0.885, allocations: 107.5 kB / 1.171 GB, free: 44 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.8852, allocations: 99.72 kB / 1.171 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 2.811e-05/0.8852, allocations: 12 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.8853, allocations: 55.95 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 7.301e-05/0.8854, allocations: 63.77 kB / 1.171 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 9.19e-05/0.8855, allocations: 95.39 kB / 1.171 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0002974/0.8858, allocations: 262.9 kB / 1.172 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.8858, allocations: 4 kB / 1.172 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.202e-06/0.8858, allocations: 3.938 kB / 1.172 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.8858, allocations: 4 kB / 1.172 GB, free: 15.46 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0008772/0.8867, allocations: 0.5414 MB / 1.172 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.8867, allocations: 8.922 kB / 1.172 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.885e-05/0.8868, allocations: 24.66 kB / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003783/0.8872, allocations: 287.2 kB / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.8872, allocations: 15.94 kB / 1.172 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.868e-05/0.8873, allocations: 12 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003125/0.8876, allocations: 115.3 kB / 1.173 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.8876, allocations: 0 / 1.173 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.974e-05/0.8876, allocations: 11.94 kB / 1.173 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.8876, allocations: 0 / 1.173 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002839/0.8879, allocations: 87.92 kB / 1.173 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007227/0.8886, allocations: 448.4 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003354/0.889, allocations: 126.6 kB / 1.173 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001669/0.8892, allocations: 64.77 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.947e-05/0.8892, allocations: 4 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002774/0.8895, allocations: 123.5 kB / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=16): time 1.763e-06/0.8895, allocations: 0 / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16): time 0.0006413/0.8902, allocations: 251.8 kB / 1.174 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.8902, allocations: 59.34 kB / 1.174 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000348/0.8906, allocations: 334.4 kB / 1.174 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.8906, allocations: 33.7 kB / 1.174 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.8907, allocations: 132.5 kB / 1.174 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.946e-05/0.8908, allocations: 39.45 kB / 1.174 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.027e-05/0.8909, allocations: 61.69 kB / 1.174 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001416/0.891, allocations: 338.8 kB / 1.175 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.8912, allocations: 79.95 kB / 1.175 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002393/0.8915, allocations: 141 kB / 1.175 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004049/0.8919, allocations: 186.3 kB / 1.175 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.8919, allocations: 0 / 1.175 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005543/0.8925, allocations: 282.8 kB / 1.175 GB, free: 11.47 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.8925, allocations: 4 kB / 1.175 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.8925, allocations: 0 / 1.175 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.8925, allocations: 11.98 kB / 1.175 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.8927, allocations: 43.91 kB / 1.175 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.8928, allocations: 0 / 1.175 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001586/0.8929, allocations: 27.83 kB / 1.175 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.914e-05/0.893, allocations: 16.16 kB / 1.175 GB, free: 11.37 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 19 (decreaseSampler.y,$PRE.decreaseSampler.y,increaseSampler.y,$PRE.increaseSampler.y,changeSampler.y,$PRE.changeSampler.y,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition2,timTabLin.tab.nextTimeEventScaled,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,cha.down,cha.up,cha.y,cha.u,$PRE.cha.u,$whenCondition1,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * 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.0001545/0.8931, allocations: 161.5 kB / 1.175 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.723e-05/0.8932, allocations: 23.66 kB / 1.175 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.84e-05/0.8932, allocations: 26.17 kB / 1.176 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.8932, allocations: 4 kB / 1.176 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.8933, allocations: 0 / 1.176 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.8933, allocations: 0 / 1.176 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008149/0.8941, allocations: 0.5489 MB / 1.176 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.8941, allocations: 0 / 1.176 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.266e-05/0.8942, allocations: 23.92 kB / 1.176 GB, free: 10.51 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.8942, allocations: 0 / 1.176 GB, free: 10.51 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.8942, allocations: 0 / 1.176 GB, free: 10.51 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.8942, allocations: 11.92 kB / 1.176 GB, free: 10.5 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.8942, allocations: 0 / 1.176 GB, free: 10.5 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004623/0.8947, allocations: 300 kB / 1.176 GB, free: 10.19 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.933e-05/0.8948, allocations: 92.92 kB / 1.176 GB, free: 10.08 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.366e-05/0.8948, allocations: 4 kB / 1.176 GB, free: 10.08 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001492/0.895, allocations: 15.97 kB / 1.176 GB, free: 10.06 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.689e-05/0.8951, allocations: 15.98 kB / 1.176 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/0.8951, allocations: 8 kB / 1.176 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001981/0.8953, allocations: 213.9 kB / 1.177 GB, free: 9.836 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8953, allocations: 4 kB / 1.177 GB, free: 9.832 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003338/0.8956, allocations: 51.84 kB / 1.177 GB, free: 9.781 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 (cha.y,cha.up,cha.down,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,cha.u,changeSampler.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,increaseSampler.y,decreaseSampler.y) * Number of discrete states: 3 (timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,cha.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.000995/0.8966, allocations: 419 kB / 1.177 GB, free: 9.523 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004741/0.8971, allocations: 186.1 kB / 1.177 GB, free: 9.344 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.8971, allocations: 4.062 kB / 1.177 GB, free: 9.34 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001804/0.8973, allocations: 71.88 kB / 1.177 GB, free: 9.27 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000425/0.8978, allocations: 50.34 kB / 1.177 GB, free: 9.219 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007763/0.8985, allocations: 429.9 kB / 1.178 GB, free: 8.766 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.8989, allocations: 0.7557 MB / 1.179 GB, free: 7.984 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.466e-05/0.899, allocations: 27.42 kB / 1.179 GB, free: 7.957 MB / 0.9044 GB Notification: Performance of SimCode: time 2.31e-07/0.899, allocations: 4 kB / 1.179 GB, free: 7.953 MB / 0.9044 GB Notification: Performance of Templates: time 0.005832/0.9048, allocations: 3.269 MB / 1.182 GB, free: 4.695 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Change.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches