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.001187/0.001187, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.01012/0.01012, allocations: 171.2 kB / 16.27 MB, free: 6.648 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.45/1.45, allocations: 223.3 MB / 240.3 MB, free: 5.297 MB / 190.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.776/2.776, allocations: 437.8 MB / 0.7121 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000516/0.000516, allocations: 8 kB / 0.8728 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8746/0.8751, allocations: 153.8 MB / 1.023 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.002423/0.8776, allocations: 1.626 MB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001859/0.8795, allocations: 1.08 MB / 1.026 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001472/0.8796, allocations: 8 kB / 1.026 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003705/0.88, allocations: 95.67 kB / 1.026 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002682/0.8803, allocations: 79.73 kB / 1.026 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004395/0.8808, allocations: 139.7 kB / 1.026 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002897/0.8811, allocations: 203.4 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001624/0.8812, allocations: 45.66 kB / 1.026 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001804/0.8814, allocations: 83.55 kB / 1.026 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001358/0.8816, allocations: 87.61 kB / 1.026 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.66e-05/0.8816, allocations: 4 kB / 1.026 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001348/0.8817, allocations: 51.95 kB / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.755e-05/0.8818, allocations: 47.77 kB / 1.026 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.8819, allocations: 117.1 kB / 1.027 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003227/0.8823, allocations: 257.1 kB / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.8823, allocations: 3.938 kB / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.383e-06/0.8823, allocations: 0 / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.754e-06/0.8823, allocations: 3.938 kB / 1.027 GB, free: 11.88 MB / 0.7794 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.0009113/0.8832, allocations: 0.4987 MB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.8833, allocations: 12.03 kB / 1.027 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.471e-05/0.8833, allocations: 28.66 kB / 1.027 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003599/0.8837, allocations: 295.2 kB / 1.028 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.8837, allocations: 8 kB / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.648e-05/0.8838, allocations: 11.98 kB / 1.028 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003038/0.8841, allocations: 120.4 kB / 1.028 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.8841, allocations: 0 / 1.028 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/0.8841, allocations: 7.938 kB / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.8841, allocations: 8 kB / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002867/0.8844, allocations: 99.8 kB / 1.028 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000747/0.8852, allocations: 448.5 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003564/0.8856, allocations: 142.5 kB / 1.028 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001662/0.8857, allocations: 64.86 kB / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.706e-05/0.8858, allocations: 0 / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002932/0.8861, allocations: 131.3 kB / 1.029 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.463e-06/0.8861, allocations: 0 / 1.029 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.0006917/0.8868, allocations: 261.4 kB / 1.029 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.428e-05/0.8868, allocations: 59.41 kB / 1.029 GB, free: 9.543 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003528/0.8872, allocations: 330.4 kB / 1.029 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.8872, allocations: 37.69 kB / 1.029 GB, free: 9.168 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.784e-05/0.8873, allocations: 128.5 kB / 1.029 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.789e-05/0.8874, allocations: 43.44 kB / 1.029 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.826e-05/0.8874, allocations: 33.7 kB / 1.03 GB, free: 8.957 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001251/0.8876, allocations: 338.8 kB / 1.03 GB, free: 8.617 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002224/0.8878, allocations: 95.94 kB / 1.03 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002263/0.888, allocations: 125.1 kB / 1.03 GB, free: 8.383 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004016/0.8884, allocations: 205 kB / 1.03 GB, free: 8.164 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.8885, allocations: 3.938 kB / 1.03 GB, free: 8.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005795/0.889, allocations: 292.1 kB / 1.031 GB, free: 7.871 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.8891, allocations: 8 kB / 1.031 GB, free: 7.863 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.8891, allocations: 3.938 kB / 1.031 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.8891, allocations: 4 kB / 1.031 GB, free: 7.855 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002024/0.8893, allocations: 43.91 kB / 1.031 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.8893, allocations: 0 / 1.031 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.8895, allocations: 31.86 kB / 1.031 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.887e-05/0.8895, allocations: 16 kB / 1.031 GB, free: 7.766 MB / 0.7794 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.0001593/0.8897, allocations: 167.5 kB / 1.031 GB, free: 7.594 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.617e-05/0.8898, allocations: 23.66 kB / 1.031 GB, free: 7.57 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.892e-05/0.8898, allocations: 26.17 kB / 1.031 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.8898, allocations: 7.938 kB / 1.031 GB, free: 7.539 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.8898, allocations: 0 / 1.031 GB, free: 7.539 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.8898, allocations: 0 / 1.031 GB, free: 7.539 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000856/0.8907, allocations: 0.5627 MB / 1.031 GB, free: 6.922 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.8907, allocations: 0 / 1.031 GB, free: 6.922 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.996e-05/0.8908, allocations: 15.98 kB / 1.031 GB, free: 6.906 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.8908, allocations: 4 kB / 1.031 GB, free: 6.902 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.8909, allocations: 11.98 kB / 1.031 GB, free: 6.891 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.8909, allocations: 4 kB / 1.031 GB, free: 6.887 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.8909, allocations: 0 / 1.031 GB, free: 6.887 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005051/0.8914, allocations: 307 kB / 1.032 GB, free: 6.57 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.02e-05/0.8915, allocations: 104.8 kB / 1.032 GB, free: 6.449 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.048e-05/0.8915, allocations: 11.98 kB / 1.032 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.8917, allocations: 15.98 kB / 1.032 GB, free: 6.422 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.788e-05/0.8918, allocations: 11.98 kB / 1.032 GB, free: 6.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.8918, allocations: 11.98 kB / 1.032 GB, free: 6.398 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001948/0.892, allocations: 202 kB / 1.032 GB, free: 6.203 MB / 0.7794 GB Notification: Performance of sort global known variables: time 4.01e-07/0.892, allocations: 4 kB / 1.032 GB, free: 6.199 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003339/0.8923, allocations: 55.92 kB / 1.032 GB, free: 6.145 MB / 0.7794 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.001043/0.8934, allocations: 415.5 kB / 1.033 GB, free: 5.895 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004936/0.8939, allocations: 195.7 kB / 1.033 GB, free: 5.703 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.8939, allocations: 0 / 1.033 GB, free: 5.703 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001946/0.8941, allocations: 79.89 kB / 1.033 GB, free: 5.625 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004406/0.8946, allocations: 56.77 kB / 1.033 GB, free: 5.566 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007318/0.8953, allocations: 452.9 kB / 1.033 GB, free: 5.098 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/0.8956, allocations: 0.756 MB / 1.034 GB, free: 4.316 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001012/0.8957, allocations: 29.94 kB / 1.034 GB, free: 4.289 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.794e-05/0.8958, allocations: 23.42 kB / 1.034 GB, free: 4.266 MB / 0.7794 GB Notification: Performance of SimCode: time 4.1e-07/0.8958, allocations: 0 / 1.034 GB, free: 4.266 MB / 0.7794 GB Notification: Performance of Templates: time 0.006993/0.9028, allocations: 2.816 MB / 1.037 GB, free: 1.473 MB / 0.7794 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/jenkins/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