Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.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.Continuous.Examples.OffTimer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|offTim1.u|offTim1.y|offTim2.u|offTim2.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer") translateModel(Buildings.Controls.Continuous.Examples.OffTimer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|offTim1.u|offTim1.y|offTim2.u|offTim2.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.391/2.391, allocations: 393.5 MB / 408.4 MB, free: 10.96 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.0015/0.0015, allocations: 180 kB / 0.4902 GB, free: 2.207 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.853/1.853, allocations: 223.2 MB / 0.7992 GB, free: 14.68 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.000982/0.0009821, allocations: 96.16 kB / 0.9396 GB, free: 1.902 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003683/0.0003682, allocations: 10.16 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3101/0.3105, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1861/0.4966, allocations: 150.7 MB / 1.376 GB, free: 2.859 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001978/0.4969, allocations: 75.95 kB / 1.376 GB, free: 2.785 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.002896/0.4998, allocations: 1.135 MB / 1.378 GB, free: 1.648 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.934e-06/0.4998, allocations: 3.938 kB / 1.378 GB, free: 1.645 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.646e-06/0.4998, allocations: 0 / 1.378 GB, free: 1.645 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004203/0.5003, allocations: 363.2 kB / 1.378 GB, free: 1.242 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.5003, allocations: 8.031 kB / 1.378 GB, free: 1.234 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.398e-05/0.5003, allocations: 7.984 kB / 1.378 GB, free: 1.227 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.5005, allocations: 170.9 kB / 1.378 GB, free: 1.02 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.682e-05/0.5005, allocations: 0 / 1.378 GB, free: 1.02 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.986e-05/0.5005, allocations: 8 kB / 1.378 GB, free: 1.012 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000108/0.5006, allocations: 53.67 kB / 1.378 GB, free: 0.9531 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.5006, allocations: 7.938 kB / 1.378 GB, free: 0.9453 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.888e-06/0.5007, allocations: 4 kB / 1.378 GB, free: 0.9414 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.5007, allocations: 0 / 1.378 GB, free: 0.9414 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.934e-05/0.5007, allocations: 19.98 kB / 1.378 GB, free: 0.9219 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004998/0.5012, allocations: 312.8 kB / 1.378 GB, free: 0.5664 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001009/0.5014, allocations: 58.59 kB / 1.378 GB, free: 0.5 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.166e-05/0.5014, allocations: 4.031 kB / 1.378 GB, free: 0.4961 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001665/0.5015, allocations: 71.52 kB / 1.379 GB, free: 424 kB / 0.8698 GB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.5016, allocations: 0 / 1.379 GB, free: 424 kB / 0.8698 GB Notification: Performance of matching and sorting (n=9): time 0.00026/0.5018, allocations: 105.5 kB / 1.379 GB, free: 312 kB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.749e-05/0.5019, allocations: 55.34 kB / 1.379 GB, free: 244 kB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.982e-05/0.5019, allocations: 101 kB / 1.379 GB, free: 136 kB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/0.502, allocations: 33.7 kB / 1.379 GB, free: 96 kB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.398e-05/0.502, allocations: 84.05 kB / 1.379 GB, free: 8 kB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.022e-05/0.5021, allocations: 15.89 kB / 1.379 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.034e-06/0.5021, allocations: 4 kB / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.5022, allocations: 318.8 kB / 1.379 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.179e-05/0.5022, allocations: 12 kB / 1.379 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.493e-05/0.5023, allocations: 53.17 kB / 1.379 GB, free: 15.59 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.333e-05/0.5023, allocations: 23.98 kB / 1.379 GB, free: 15.57 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.5023, allocations: 0 / 1.379 GB, free: 15.57 MB / 0.8855 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001365/0.5025, allocations: 101.5 kB / 1.379 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.5025, allocations: 6.344 kB / 1.379 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.5025, allocations: 7.984 kB / 1.379 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.5025, allocations: 0 / 1.379 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.865e-05/0.5026, allocations: 8 kB / 1.379 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.5026, allocations: 11.98 kB / 1.379 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.547e-05/0.5027, allocations: 11.92 kB / 1.379 GB, free: 15.42 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-06/0.5027, allocations: 4 kB / 1.379 GB, free: 15.41 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition3,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,not1.y,$PRE.offTim1.entryTime,offTim1.entryTime,$PRE.offTim2.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 8.769e-05/0.5028, allocations: 124 kB / 1.38 GB, free: 15.29 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.305e-05/0.5028, allocations: 7.906 kB / 1.38 GB, free: 15.28 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.09e-05/0.5029, allocations: 7.969 kB / 1.38 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.5029, allocations: 0 / 1.38 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.5029, allocations: 4 kB / 1.38 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.5029, allocations: 7.953 kB / 1.38 GB, free: 15.26 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003761/0.5033, allocations: 358.8 kB / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.5033, allocations: 0 / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.657e-05/0.5033, allocations: 4 kB / 1.38 GB, free: 14.85 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.5033, allocations: 96 / 1.38 GB, free: 14.85 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.806e-06/0.5033, allocations: 3.938 kB / 1.38 GB, free: 14.85 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.5034, allocations: 3.953 kB / 1.38 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.5034, allocations: 4 kB / 1.38 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001457/0.5035, allocations: 183.7 kB / 1.38 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.993e-05/0.5036, allocations: 81.11 kB / 1.38 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.5036, allocations: 0 / 1.38 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.716e-05/0.5037, allocations: 11.98 kB / 1.38 GB, free: 14.54 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.073e-05/0.5037, allocations: 15.92 kB / 1.38 GB, free: 14.52 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-06/0.5037, allocations: 8 kB / 1.38 GB, free: 14.51 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.668e-05/0.5038, allocations: 83.28 kB / 1.38 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.493e-06/0.5038, allocations: 0 / 1.38 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002117/0.504, allocations: 15.94 kB / 1.38 GB, free: 14.41 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (not1.y,$whenCondition3,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,offTim1.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001039/0.5041, allocations: 103.2 kB / 1.38 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001305/0.5043, allocations: 47.92 kB / 1.381 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5043, allocations: 0 / 1.381 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 5.313e-05/0.5043, allocations: 31.88 kB / 1.381 GB, free: 14.22 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001855/0.5045, allocations: 12.05 kB / 1.381 GB, free: 14.21 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000392/0.5049, allocations: 176.4 kB / 1.381 GB, free: 14.01 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.5052, allocations: 0.6926 MB / 1.381 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 2.82e-05/0.5052, allocations: 4 kB / 1.381 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.946e-05/0.5052, allocations: 11.44 kB / 1.381 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of SimCode: time 2.4e-07/0.5052, allocations: 0 / 1.381 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of Templates: time 0.002561/0.5078, allocations: 0.6672 MB / 1.382 GB, free: 12.62 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_OffTimer.csv","../files/Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches