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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.00103/0.001031, allocations: 92.62 kB / 16.02 MB, free: 80 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.001302/0.001302, allocations: 176.9 kB / 16.92 MB, free: 6.652 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.438/1.438, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.656/2.656, allocations: 437.8 MB / 0.7128 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003848/0.000385, allocations: 11.98 kB / 0.8735 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6697/0.6701, allocations: 153.8 MB / 1.024 GB, free: 0 / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.002538/0.6727, allocations: 1.63 MB / 1.025 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001913/0.6747, allocations: 1.077 MB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.6749, allocations: 4 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004017/0.6753, allocations: 91.69 kB / 1.026 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002605/0.6755, allocations: 87.72 kB / 1.027 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000435/0.676, allocations: 137.5 kB / 1.027 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002767/0.6763, allocations: 199.4 kB / 1.027 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.6764, allocations: 53.53 kB / 1.027 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001657/0.6766, allocations: 79.58 kB / 1.027 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.6768, allocations: 91.59 kB / 1.027 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.414e-05/0.6768, allocations: 4 kB / 1.027 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.677, allocations: 51.95 kB / 1.027 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.341e-05/0.677, allocations: 51.77 kB / 1.027 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.986e-05/0.6771, allocations: 105.1 kB / 1.027 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002472/0.6774, allocations: 201.7 kB / 1.027 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.6774, allocations: 0 / 1.027 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.372e-06/0.6774, allocations: 0 / 1.027 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.516e-06/0.6774, allocations: 4 kB / 1.027 GB, free: 12.13 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.0008725/0.6783, allocations: 0.5103 MB / 1.028 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.6784, allocations: 12.03 kB / 1.028 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.938e-05/0.6784, allocations: 20.66 kB / 1.028 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003861/0.6788, allocations: 295.2 kB / 1.028 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.042e-05/0.6789, allocations: 8 kB / 1.028 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.518e-05/0.6789, allocations: 16 kB / 1.028 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003194/0.6792, allocations: 118.5 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.6792, allocations: 0 / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.016e-05/0.6793, allocations: 7.938 kB / 1.028 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.6793, allocations: 4 kB / 1.028 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002956/0.6796, allocations: 103.9 kB / 1.029 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007594/0.6803, allocations: 440.5 kB / 1.029 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003491/0.6807, allocations: 134.6 kB / 1.029 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001754/0.6809, allocations: 68.83 kB / 1.029 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.6809, allocations: 0 / 1.029 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002959/0.6812, allocations: 135.2 kB / 1.029 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 5.411e-06/0.6813, allocations: 3.984 kB / 1.029 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.0006863/0.6819, allocations: 267.5 kB / 1.03 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.675e-05/0.682, allocations: 55.41 kB / 1.03 GB, free: 9.785 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003791/0.6824, allocations: 338.4 kB / 1.03 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.6824, allocations: 33.7 kB / 1.03 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.6826, allocations: 132.5 kB / 1.03 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.3e-05/0.6826, allocations: 39.45 kB / 1.03 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.161e-05/0.6827, allocations: 37.7 kB / 1.03 GB, free: 9.191 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.6828, allocations: 334.8 kB / 1.03 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/0.683, allocations: 87.95 kB / 1.031 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002455/0.6833, allocations: 133.1 kB / 1.031 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004129/0.6837, allocations: 197.1 kB / 1.031 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.6837, allocations: 11.94 kB / 1.031 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006047/0.6843, allocations: 289.1 kB / 1.031 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.6844, allocations: 6.031 kB / 1.031 GB, free: 8.109 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.6844, allocations: 4.156 kB / 1.031 GB, free: 8.105 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.6844, allocations: 7.984 kB / 1.031 GB, free: 8.098 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002111/0.6846, allocations: 43.92 kB / 1.031 GB, free: 8.055 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.6846, allocations: 3.984 kB / 1.031 GB, free: 8.051 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001698/0.6848, allocations: 31.83 kB / 1.031 GB, free: 8.02 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.24e-05/0.6849, allocations: 12 kB / 1.031 GB, free: 8.008 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.0001632/0.685, allocations: 162 kB / 1.031 GB, free: 7.84 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.592e-05/0.6851, allocations: 23.66 kB / 1.031 GB, free: 7.816 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.87e-05/0.6851, allocations: 26.17 kB / 1.031 GB, free: 7.793 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.6851, allocations: 4 kB / 1.031 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.6852, allocations: 0 / 1.031 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.6852, allocations: 0 / 1.031 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008499/0.686, allocations: 0.5645 MB / 1.032 GB, free: 7.168 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.686, allocations: 0 / 1.032 GB, free: 7.168 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.411e-05/0.6861, allocations: 23.98 kB / 1.032 GB, free: 7.145 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.6861, allocations: 0 / 1.032 GB, free: 7.145 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.6862, allocations: 4 kB / 1.032 GB, free: 7.141 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.6862, allocations: 0 / 1.032 GB, free: 7.141 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.6862, allocations: 7.938 kB / 1.032 GB, free: 7.133 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004755/0.6867, allocations: 307 kB / 1.032 GB, free: 6.816 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.087e-05/0.6867, allocations: 100.8 kB / 1.032 GB, free: 6.699 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.768e-05/0.6868, allocations: 12 kB / 1.032 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.6869, allocations: 15.98 kB / 1.032 GB, free: 6.672 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.527e-05/0.687, allocations: 19.91 kB / 1.032 GB, free: 6.652 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.618e-05/0.687, allocations: 4 kB / 1.032 GB, free: 6.648 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002175/0.6873, allocations: 213.9 kB / 1.033 GB, free: 6.441 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6873, allocations: 0 / 1.033 GB, free: 6.441 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003349/0.6876, allocations: 47.94 kB / 1.033 GB, free: 6.395 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.001039/0.6887, allocations: 421.8 kB / 1.033 GB, free: 6.137 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005038/0.6892, allocations: 195.9 kB / 1.033 GB, free: 5.945 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.6892, allocations: 4.125 kB / 1.033 GB, free: 5.941 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002043/0.6894, allocations: 79.89 kB / 1.033 GB, free: 5.863 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004377/0.6898, allocations: 48.52 kB / 1.033 GB, free: 5.812 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007938/0.6907, allocations: 497.6 kB / 1.034 GB, free: 5.297 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003454/0.691, allocations: 0.7443 MB / 1.035 GB, free: 4.527 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.801e-05/0.6911, allocations: 23.42 kB / 1.035 GB, free: 4.504 MB / 0.7794 GB Notification: Performance of SimCode: time 3.51e-07/0.6911, allocations: 4 kB / 1.035 GB, free: 4.5 MB / 0.7794 GB Notification: Performance of Templates: time 0.006312/0.6974, allocations: 3.208 MB / 1.038 GB, free: 1.297 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/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