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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.513/2.513, allocations: 393.5 MB / 408.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 183.9 kB / 0.4902 GB, free: 2.23 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.602/1.602, allocations: 223.1 MB / 0.7992 GB, free: 15.65 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000921/0.0009209, allocations: 94.98 kB / 0.9396 GB, free: 2.836 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003859/0.0003859, allocations: 10.55 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2928, allocations: 143 MB / 1.229 GB, free: 85.46 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2046/0.4974, allocations: 154.5 MB / 1.38 GB, free: 10.79 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/0.4978, allocations: 87.95 kB / 1.38 GB, free: 10.7 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02067/0.5184, allocations: 7.225 MB / 1.387 GB, free: 3.465 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.974e-06/0.5185, allocations: 0 / 1.387 GB, free: 3.465 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.838e-05/0.5185, allocations: 4 kB / 1.387 GB, free: 3.461 MB / 0.8855 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.0008598/0.5194, allocations: 0.5385 MB / 1.388 GB, free: 2.867 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.5194, allocations: 12.55 kB / 1.388 GB, free: 2.855 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.233e-05/0.5195, allocations: 27.72 kB / 1.388 GB, free: 2.828 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004758/0.52, allocations: 298.6 kB / 1.388 GB, free: 2.496 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.52, allocations: 12.17 kB / 1.388 GB, free: 2.484 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.617e-05/0.5201, allocations: 12 kB / 1.388 GB, free: 2.473 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003016/0.5204, allocations: 119 kB / 1.388 GB, free: 2.352 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.5204, allocations: 0 / 1.388 GB, free: 2.352 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.926e-05/0.5204, allocations: 15.94 kB / 1.388 GB, free: 2.336 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.5204, allocations: 0 / 1.388 GB, free: 2.336 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003122/0.5207, allocations: 96.48 kB / 1.388 GB, free: 2.242 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008664/0.5216, allocations: 485.4 kB / 1.389 GB, free: 1.719 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003513/0.522, allocations: 138.7 kB / 1.389 GB, free: 1.574 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.522, allocations: 7.953 kB / 1.389 GB, free: 1.566 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003061/0.5223, allocations: 135.2 kB / 1.389 GB, free: 1.422 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=16): time 1.683e-06/0.5223, allocations: 0 / 1.389 GB, free: 1.422 MB / 0.8855 GB Notification: Performance of matching and sorting (n=16): time 0.0006761/0.523, allocations: 263.2 kB / 1.389 GB, free: 1.16 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.5231, allocations: 55.41 kB / 1.389 GB, free: 1.094 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003385/0.5234, allocations: 305.6 kB / 1.39 GB, free: 0.7891 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.588e-05/0.5235, allocations: 33.69 kB / 1.39 GB, free: 0.75 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.817e-05/0.5235, allocations: 132.5 kB / 1.39 GB, free: 0.6172 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.466e-05/0.5236, allocations: 47.44 kB / 1.39 GB, free: 0.5703 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.364e-05/0.5236, allocations: 7.938 kB / 1.39 GB, free: 0.5625 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.5238, allocations: 334.8 kB / 1.39 GB, free: 232 kB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002282/0.524, allocations: 103.9 kB / 1.39 GB, free: 128 kB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002707/0.5243, allocations: 145.8 kB / 1.39 GB, free: 15.96 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002358/0.5245, allocations: 102.3 kB / 1.39 GB, free: 15.87 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.5245, allocations: 4 kB / 1.39 GB, free: 15.86 MB / 0.9011 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006193/0.5252, allocations: 309.2 kB / 1.391 GB, free: 15.55 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.5252, allocations: 7.953 kB / 1.391 GB, free: 15.55 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.5252, allocations: 4 kB / 1.391 GB, free: 15.54 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.5252, allocations: 224 / 1.391 GB, free: 15.54 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002155/0.5254, allocations: 48.06 kB / 1.391 GB, free: 15.5 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.5255, allocations: 11.88 kB / 1.391 GB, free: 15.48 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000161/0.5256, allocations: 27.89 kB / 1.391 GB, free: 15.46 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.448e-05/0.5257, allocations: 12 kB / 1.391 GB, free: 15.45 MB / 0.9011 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 ($PRE.decreaseSampler.y,decreaseSampler.y,$PRE.increaseSampler.y,increaseSampler.y,$PRE.changeSampler.y,changeSampler.y,$whenCondition2,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition4,$whenCondition3,$whenCondition1,$PRE.cha.u,cha.u,cha.y,cha.up,cha.down,timTabLin.tab.nextTimeEvent,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001516/0.5258, allocations: 161.5 kB / 1.391 GB, free: 15.28 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.313e-05/0.5259, allocations: 19.81 kB / 1.391 GB, free: 15.26 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005001/0.5264, allocations: 232.7 kB / 1.391 GB, free: 15.02 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.5264, allocations: 0 / 1.391 GB, free: 15.02 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.5264, allocations: 4 kB / 1.391 GB, free: 15.02 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.5264, allocations: 0 / 1.391 GB, free: 15.02 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008526/0.5273, allocations: 0.5771 MB / 1.392 GB, free: 14.39 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.5273, allocations: 0 / 1.392 GB, free: 14.39 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.5274, allocations: 27.97 kB / 1.392 GB, free: 14.36 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.5274, allocations: 4 kB / 1.392 GB, free: 14.36 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.5274, allocations: 7.984 kB / 1.392 GB, free: 14.35 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.5274, allocations: 0 / 1.392 GB, free: 14.35 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.5274, allocations: 0 / 1.392 GB, free: 14.35 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004717/0.5279, allocations: 312 kB / 1.392 GB, free: 14.03 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 8.586e-05/0.528, allocations: 108.8 kB / 1.392 GB, free: 13.9 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.691e-05/0.5281, allocations: 8 kB / 1.392 GB, free: 13.89 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001556/0.5282, allocations: 11.98 kB / 1.392 GB, free: 13.88 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.908e-05/0.5283, allocations: 19.97 kB / 1.392 GB, free: 13.86 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.285e-05/0.5283, allocations: 4 kB / 1.392 GB, free: 13.86 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0002096/0.5285, allocations: 213.9 kB / 1.393 GB, free: 13.65 MB / 0.9011 GB Notification: Performance of sort global known variables: time 2.2e-07/0.5285, allocations: 0 / 1.393 GB, free: 13.65 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0003551/0.5289, allocations: 67.94 kB / 1.393 GB, free: 13.59 MB / 0.9011 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 (17): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009852/0.5299, allocations: 434.5 kB / 1.393 GB, free: 13.31 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0004729/0.5304, allocations: 204.6 kB / 1.393 GB, free: 13.11 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.5304, allocations: 0 / 1.393 GB, free: 13.11 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0002007/0.5306, allocations: 83.8 kB / 1.393 GB, free: 13.03 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003185/0.5309, allocations: 42.03 kB / 1.393 GB, free: 12.98 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000705/0.5316, allocations: 463.2 kB / 1.394 GB, free: 12.51 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.532, allocations: 0.756 MB / 1.395 GB, free: 11.72 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001096/0.5321, allocations: 33.92 kB / 1.395 GB, free: 11.69 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.827e-05/0.5322, allocations: 23.44 kB / 1.395 GB, free: 11.66 MB / 0.9011 GB Notification: Performance of SimCode: time 2.6e-07/0.5322, allocations: 0 / 1.395 GB, free: 11.66 MB / 0.9011 GB Notification: Performance of Templates: time 0.006188/0.5384, allocations: 2.848 MB / 1.397 GB, free: 8.84 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches