Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Change,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Change,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008444/0.008444, allocations: 102.8 kB / 15.73 MB, free: 6.035 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.001955/0.001955, allocations: 196.8 kB / 16.67 MB, free: 5.969 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.444/1.444, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.74/2.74, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 59.91 kB / 1.054 GB, free: 7.641 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.3507, allocations: 157.4 MB / 1.207 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.003876/0.3546, allocations: 1.92 MB / 1.209 GB, free: 8.199 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002557/0.3572, allocations: 1.118 MB / 1.21 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000223/0.3575, allocations: 0 / 1.21 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005249/0.358, allocations: 99.55 kB / 1.21 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.000442/0.3585, allocations: 91.53 kB / 1.21 GB, free: 6.891 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006055/0.3591, allocations: 166.3 kB / 1.211 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003866/0.3595, allocations: 215.5 kB / 1.211 GB, free: 6.52 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000191/0.3597, allocations: 49.64 kB / 1.211 GB, free: 6.469 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001928/0.3599, allocations: 99.61 kB / 1.211 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.3601, allocations: 107.5 kB / 1.211 GB, free: 6.266 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.114e-05/0.3601, allocations: 12 kB / 1.211 GB, free: 6.254 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001739/0.3603, allocations: 63.95 kB / 1.211 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.086e-05/0.3604, allocations: 51.83 kB / 1.211 GB, free: 6.141 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001202/0.3605, allocations: 99.39 kB / 1.211 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003655/0.3609, allocations: 271.3 kB / 1.212 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3609, allocations: 0 / 1.212 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.994e-06/0.3609, allocations: 0 / 1.212 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.645e-06/0.361, allocations: 0 / 1.212 GB, free: 5.777 MB / 0.9669 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.001104/0.3621, allocations: 0.5451 MB / 1.212 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.3621, allocations: 16.62 kB / 1.212 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.615e-05/0.3622, allocations: 38.75 kB / 1.212 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.371e-05/0.3623, allocations: 28.58 kB / 1.212 GB, free: 5.094 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004067/0.3627, allocations: 283 kB / 1.212 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.297e-05/0.3627, allocations: 15.98 kB / 1.212 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.104e-05/0.3627, allocations: 8 kB / 1.212 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003055/0.363, allocations: 116 kB / 1.213 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.3631, allocations: 3.938 kB / 1.213 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.3631, allocations: 4 kB / 1.213 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.3631, allocations: 11.94 kB / 1.213 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002668/0.3634, allocations: 79.92 kB / 1.213 GB, free: 4.543 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007538/0.3641, allocations: 456.3 kB / 1.213 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003889/0.3645, allocations: 134.6 kB / 1.213 GB, free: 3.906 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.3647, allocations: 56.83 kB / 1.213 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-05/0.3648, allocations: 0 / 1.213 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000318/0.3651, allocations: 133.2 kB / 1.213 GB, free: 3.707 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=16): time 2.214e-06/0.3651, allocations: 3.938 kB / 1.213 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16): time 0.0007286/0.3658, allocations: 246.4 kB / 1.214 GB, free: 3.457 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.966e-05/0.3659, allocations: 55.39 kB / 1.214 GB, free: 3.391 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003808/0.3663, allocations: 330.5 kB / 1.214 GB, free: 3.059 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.3663, allocations: 29.7 kB / 1.214 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.3664, allocations: 136.4 kB / 1.214 GB, free: 2.887 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.352e-05/0.3665, allocations: 47.44 kB / 1.214 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.3666, allocations: 61.69 kB / 1.214 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3668, allocations: 334.8 kB / 1.215 GB, free: 2.438 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002206/0.367, allocations: 83.95 kB / 1.215 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002432/0.3672, allocations: 134.8 kB / 1.215 GB, free: 2.207 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004095/0.3677, allocations: 191 kB / 1.215 GB, free: 2.004 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.3677, allocations: 0 / 1.215 GB, free: 2.004 MB / 0.9669 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006029/0.3683, allocations: 277.1 kB / 1.215 GB, free: 1.727 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.3683, allocations: 5.562 kB / 1.215 GB, free: 1.723 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.3683, allocations: 4 kB / 1.215 GB, free: 1.719 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.741e-05/0.3684, allocations: 4 kB / 1.215 GB, free: 1.715 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002232/0.3686, allocations: 44.06 kB / 1.215 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.3686, allocations: 4 kB / 1.215 GB, free: 1.668 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001561/0.3688, allocations: 19.89 kB / 1.215 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.938e-05/0.3688, allocations: 12 kB / 1.215 GB, free: 1.637 MB / 0.9669 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.00016/0.369, allocations: 161.6 kB / 1.215 GB, free: 1.469 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.001e-05/0.369, allocations: 27.7 kB / 1.215 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.587e-05/0.3691, allocations: 22.19 kB / 1.216 GB, free: 1.422 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.3691, allocations: 4 kB / 1.216 GB, free: 1.418 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.3691, allocations: 4 kB / 1.216 GB, free: 1.414 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.3691, allocations: 3.984 kB / 1.216 GB, free: 1.41 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008157/0.3699, allocations: 0.5567 MB / 1.216 GB, free: 0.7969 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3699, allocations: 0 / 1.216 GB, free: 0.7969 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.524e-05/0.37, allocations: 15.98 kB / 1.216 GB, free: 0.7812 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.3701, allocations: 7.938 kB / 1.216 GB, free: 0.7734 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.3701, allocations: 4 kB / 1.216 GB, free: 0.7695 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.3701, allocations: 0 / 1.216 GB, free: 0.7695 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.3701, allocations: 0 / 1.216 GB, free: 0.7695 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004558/0.3706, allocations: 301.5 kB / 1.216 GB, free: 472 kB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.774e-05/0.3706, allocations: 104.8 kB / 1.216 GB, free: 348 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.871e-05/0.3707, allocations: 8 kB / 1.216 GB, free: 340 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.3708, allocations: 15.98 kB / 1.217 GB, free: 324 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.984e-05/0.3709, allocations: 15.97 kB / 1.217 GB, free: 308 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.3709, allocations: 11.94 kB / 1.217 GB, free: 296 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001967/0.3711, allocations: 209.9 kB / 1.217 GB, free: 88 kB / 0.9669 GB Notification: Performance of sort global known variables: time 2.5e-07/0.3711, allocations: 0 / 1.217 GB, free: 88 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003362/0.3715, allocations: 44 kB / 1.217 GB, free: 44 kB / 0.9669 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.001663/0.3732, allocations: 1.135 MB / 1.218 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004868/0.3737, allocations: 183.7 kB / 1.218 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.3737, allocations: 8.312 kB / 1.218 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001896/0.3739, allocations: 67.95 kB / 1.218 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000428/0.3743, allocations: 58.91 kB / 1.218 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003384/0.3777, allocations: 2.584 MB / 1.221 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.3781, allocations: 0.748 MB / 1.221 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001154/0.3782, allocations: 33.94 kB / 1.221 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.3783, allocations: 75.41 kB / 1.222 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of SimCode: time 3.5e-07/0.3783, allocations: 0 / 1.222 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02416/0.4025, allocations: 5.521 MB / 1.227 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.906/8.308, allocations: 11.69 kB / 1.227 GB, free: 5.762 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Change_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Change.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Change.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,reaToInt.y,cha.u,cha.up,cha.y,cha.down,changeSampler.u,changeSampler.y,increaseSampler.u,increaseSampler.y,decreaseSampler.u,decreaseSampler.y Variables in the result:cha.down,cha.pre_u_start,cha.u,cha.up,cha.y,changeSampler.trigger,changeSampler.u,changeSampler.y,changeSampler.y_start,decreaseSampler.trigger,decreaseSampler.u,decreaseSampler.y,decreaseSampler.y_start,increaseSampler.trigger,increaseSampler.u,increaseSampler.y,increaseSampler.y_start,ramp2.duration,ramp2.height,ramp2.offset,ramp2.startTime,ramp2.y,reaToInt.u,reaToInt.y,timTabLin.extrapolation,timTabLin.offset[1],timTabLin.smoothness,timTabLin.table[1,1],timTabLin.table[1,2],timTabLin.table[2,1],timTabLin.table[2,2],timTabLin.table[3,1],timTabLin.table[3,2],timTabLin.table[4,1],timTabLin.table[4,2],timTabLin.table[5,1],timTabLin.table[5,2],timTabLin.timeScale,timTabLin.y[1],time