Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.002325/0.002325, allocations: 108 kB / 15.61 MB, free: 148 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.00256/0.00256, allocations: 193.7 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.539/1.539, allocations: 222.9 MB / 240.2 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.592/2.592, allocations: 390.2 MB / 0.6646 GB, free: 448 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 67.91 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.862/0.8636, allocations: 140.4 MB / 0.9496 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.003335/0.8669, allocations: 1.908 MB / 0.9515 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001724/0.8687, allocations: 1.127 MB / 0.9526 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001141/0.8688, allocations: 5.625 kB / 0.9526 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003678/0.8692, allocations: 87.55 kB / 0.9526 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000252/0.8695, allocations: 94.23 kB / 0.9527 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000358/0.8698, allocations: 161.1 kB / 0.9529 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002509/0.8701, allocations: 215.2 kB / 0.9531 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.8703, allocations: 47.22 kB / 0.9531 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.8704, allocations: 101 kB / 0.9532 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001267/0.8706, allocations: 98.19 kB / 0.9533 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.839e-05/0.8706, allocations: 21.08 kB / 0.9534 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001394/0.8708, allocations: 62.59 kB / 0.9534 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.702e-05/0.8708, allocations: 59.05 kB / 0.9535 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.031e-05/0.8709, allocations: 85.66 kB / 0.9535 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003104/0.8713, allocations: 266.5 kB / 0.9538 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.8713, allocations: 0 / 0.9538 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.983e-06/0.8713, allocations: 0 / 0.9538 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.942e-06/0.8713, allocations: 1.281 kB / 0.9538 GB, free: 5.918 MB / 0.7169 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.0008288/0.8721, allocations: 0.5375 MB / 0.9543 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.8722, allocations: 13.16 kB / 0.9543 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.391e-05/0.8722, allocations: 29.38 kB / 0.9544 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003238/0.8726, allocations: 294.2 kB / 0.9547 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.8726, allocations: 8.094 kB / 0.9547 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.872e-05/0.8726, allocations: 15.67 kB / 0.9547 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002885/0.8729, allocations: 115.2 kB / 0.9548 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.8729, allocations: 0 / 0.9548 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/0.873, allocations: 8.953 kB / 0.9548 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.873, allocations: 6.219 kB / 0.9548 GB, free: 5 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002843/0.8733, allocations: 89.89 kB / 0.9549 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007033/0.874, allocations: 447.9 kB / 0.9553 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003254/0.8743, allocations: 123.6 kB / 0.9554 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.8745, allocations: 65.05 kB / 0.9555 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.8745, allocations: 1.25 kB / 0.9555 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000283/0.8748, allocations: 133.2 kB / 0.9556 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 2.414e-06/0.8748, allocations: 0 / 0.9556 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.0006488/0.8755, allocations: 243.1 kB / 0.9559 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.8755, allocations: 59.23 kB / 0.9559 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000328/0.8759, allocations: 331 kB / 0.9562 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.8759, allocations: 35.47 kB / 0.9563 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.163e-05/0.876, allocations: 136.1 kB / 0.9564 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.599e-05/0.876, allocations: 37.86 kB / 0.9564 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.907e-05/0.8761, allocations: 60.88 kB / 0.9565 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.414e-05/0.8762, allocations: 341.8 kB / 0.9568 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001937/0.8764, allocations: 77.83 kB / 0.9569 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002189/0.8766, allocations: 135.9 kB / 0.957 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003589/0.877, allocations: 185.2 kB / 0.9572 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.877, allocations: 5.312 kB / 0.9572 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005439/0.8776, allocations: 273.6 kB / 0.9575 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/0.8776, allocations: 9.703 kB / 0.9575 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.8776, allocations: 5.625 kB / 0.9575 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.8776, allocations: 2.469 kB / 0.9575 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002002/0.8778, allocations: 50.03 kB / 0.9575 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.8779, allocations: 2.969 kB / 0.9575 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001453/0.878, allocations: 26.89 kB / 0.9575 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.878, allocations: 7.375 kB / 0.9576 GB, free: 2.938 MB / 0.7169 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.0001256/0.8782, allocations: 153.3 kB / 0.9577 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.044e-05/0.8782, allocations: 29.69 kB / 0.9577 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.635e-05/0.8783, allocations: 31.02 kB / 0.9578 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.8783, allocations: 1.094 kB / 0.9578 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.8783, allocations: 5.062 kB / 0.9578 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.8783, allocations: 0 / 0.9578 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007387/0.8791, allocations: 0.5513 MB / 0.9583 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.8791, allocations: 4 kB / 0.9583 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.43e-05/0.8792, allocations: 17.86 kB / 0.9583 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.8792, allocations: 1.094 kB / 0.9583 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.8792, allocations: 2.188 kB / 0.9583 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.8792, allocations: 0.8125 kB / 0.9583 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.8792, allocations: 0 / 0.9583 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004305/0.8796, allocations: 301.7 kB / 0.9586 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.44e-05/0.8797, allocations: 110.4 kB / 0.9587 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.567e-05/0.8797, allocations: 5.5 kB / 0.9587 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.8799, allocations: 11.77 kB / 0.9587 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.825e-05/0.88, allocations: 18.53 kB / 0.9588 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.435e-05/0.88, allocations: 9.219 kB / 0.9588 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001813/0.8802, allocations: 204.1 kB / 0.959 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.2e-07/0.8802, allocations: 0 / 0.959 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003158/0.8805, allocations: 55.92 kB / 0.959 GB, free: 1.777 MB / 0.7169 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.001044/0.8815, allocations: 426.1 kB / 0.9594 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005159/0.8821, allocations: 196 kB / 0.9596 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.8821, allocations: 0 / 0.9596 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001992/0.8823, allocations: 79.3 kB / 0.9597 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004234/0.8827, allocations: 49.52 kB / 0.9597 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.8838, allocations: 408 kB / 0.9601 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.8841, allocations: 0.7502 MB / 0.9608 GB, free: 432 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001124/0.8842, allocations: 30.41 kB / 0.9609 GB, free: 420 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.123e-05/0.8843, allocations: 29.95 kB / 0.9609 GB, free: 404 kB / 0.7169 GB Notification: Performance of SimCode: time 1.81e-07/0.8843, allocations: 0 / 0.9609 GB, free: 404 kB / 0.7169 GB Notification: Performance of Templates: time 0.007944/0.8922, allocations: 3.015 MB / 0.9639 GB, free: 14.91 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Change.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches