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.4/2.4, allocations: 390.3 MB / 402.8 MB, free: 6.707 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.001586/0.001586, allocations: 184.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.514/1.514, allocations: 221.3 MB / 0.7915 GB, free: 5.395 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.0009395/0.0009394, allocations: 90.91 kB / 0.9317 GB, free: 5.707 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.709e-05/3.713e-05, allocations: 0 / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2733, allocations: 143 MB / 1.219 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.891/1.164, allocations: 150.6 MB / 1.366 GB, free: 3.438 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001881/1.165, allocations: 70.89 kB / 1.366 GB, free: 3.398 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002932/1.167, allocations: 1.136 MB / 1.367 GB, free: 2.402 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.613e-06/1.168, allocations: 0 / 1.367 GB, free: 2.402 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.213e-06/1.168, allocations: 0 / 1.367 GB, free: 2.402 MB / 0.823 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.0003799/1.168, allocations: 347.9 kB / 1.367 GB, free: 2.023 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/1.168, allocations: 8.031 kB / 1.367 GB, free: 2.016 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.852e-05/1.168, allocations: 8 kB / 1.367 GB, free: 2.008 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/1.168, allocations: 170.9 kB / 1.368 GB, free: 1.801 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/1.168, allocations: 6.875 kB / 1.368 GB, free: 1.797 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.733e-05/1.168, allocations: 7.984 kB / 1.368 GB, free: 1.789 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001119/1.168, allocations: 55.19 kB / 1.368 GB, free: 1.738 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/1.168, allocations: 0 / 1.368 GB, free: 1.738 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/1.168, allocations: 0 / 1.368 GB, free: 1.738 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/1.168, allocations: 0 / 1.368 GB, free: 1.738 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.182e-05/1.168, allocations: 30.36 kB / 1.368 GB, free: 1.715 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004658/1.169, allocations: 311.5 kB / 1.368 GB, free: 1.379 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001006/1.169, allocations: 53.88 kB / 1.368 GB, free: 1.328 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.175e-05/1.169, allocations: 24.83 kB / 1.368 GB, free: 1.305 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.083e-05/1.169, allocations: 7.125 kB / 1.368 GB, free: 1.301 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001565/1.169, allocations: 74.83 kB / 1.368 GB, free: 1.223 MB / 0.823 GB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/1.169, allocations: 0 / 1.368 GB, free: 1.223 MB / 0.823 GB Notification: Performance of matching and sorting (n=9): time 0.000187/1.169, allocations: 90.72 kB / 1.368 GB, free: 1.137 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/1.17, allocations: 51.41 kB / 1.368 GB, free: 1.074 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.327e-05/1.17, allocations: 101.2 kB / 1.368 GB, free: 0.9766 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/1.17, allocations: 25.7 kB / 1.368 GB, free: 0.9453 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 4.858e-05/1.17, allocations: 99.75 kB / 1.368 GB, free: 0.8477 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.287e-05/1.17, allocations: 18.72 kB / 1.368 GB, free: 0.832 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.27e-06/1.17, allocations: 3.375 kB / 1.368 GB, free: 0.832 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001024/1.17, allocations: 314.8 kB / 1.369 GB, free: 0.5156 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.544e-05/1.17, allocations: 19.19 kB / 1.369 GB, free: 0.5039 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.956e-05/1.17, allocations: 42.64 kB / 1.369 GB, free: 468 kB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.24e-05/1.17, allocations: 23.61 kB / 1.369 GB, free: 448 kB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/1.17, allocations: 0 / 1.369 GB, free: 448 kB / 0.823 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001255/1.17, allocations: 95.09 kB / 1.369 GB, free: 364 kB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/1.17, allocations: 7.984 kB / 1.369 GB, free: 356 kB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/1.17, allocations: 0 / 1.369 GB, free: 356 kB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/1.17, allocations: 7.938 kB / 1.369 GB, free: 348 kB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.325e-05/1.17, allocations: 15.89 kB / 1.369 GB, free: 332 kB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/1.17, allocations: 0 / 1.369 GB, free: 332 kB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.969e-05/1.17, allocations: 19.95 kB / 1.369 GB, free: 312 kB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/1.17, allocations: 0 / 1.369 GB, free: 312 kB / 0.823 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 () * 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 7.21e-05/1.17, allocations: 117.2 kB / 1.369 GB, free: 196 kB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.219e-05/1.17, allocations: 4 kB / 1.369 GB, free: 192 kB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.327e-05/1.171, allocations: 7.781 kB / 1.369 GB, free: 184 kB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/1.171, allocations: 4 kB / 1.369 GB, free: 180 kB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/1.171, allocations: 3.953 kB / 1.369 GB, free: 176 kB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/1.171, allocations: 0 / 1.369 GB, free: 176 kB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003842/1.171, allocations: 367.1 kB / 1.369 GB, free: 15.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/1.171, allocations: 192 / 1.369 GB, free: 15.78 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.668e-05/1.171, allocations: 4 kB / 1.369 GB, free: 15.77 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/1.171, allocations: 3.938 kB / 1.369 GB, free: 15.77 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/1.171, allocations: 11.83 kB / 1.369 GB, free: 15.76 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/1.171, allocations: 0 / 1.369 GB, free: 15.76 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/1.171, allocations: 0 / 1.369 GB, free: 15.76 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001457/1.171, allocations: 177.8 kB / 1.37 GB, free: 15.58 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.575e-05/1.171, allocations: 81.02 kB / 1.37 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.422e-05/1.171, allocations: 7.812 kB / 1.37 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.488e-05/1.171, allocations: 11.94 kB / 1.37 GB, free: 15.47 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.463e-05/1.171, allocations: 7.984 kB / 1.37 GB, free: 15.46 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/1.171, allocations: 8.062 kB / 1.37 GB, free: 15.45 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.058e-05/1.171, allocations: 82.28 kB / 1.37 GB, free: 15.38 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.171, allocations: 0 / 1.37 GB, free: 15.38 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002033/1.172, allocations: 19.81 kB / 1.37 GB, free: 15.36 MB / 0.8386 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 () * 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 9.697e-05/1.172, allocations: 91.25 kB / 1.37 GB, free: 15.26 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001249/1.172, allocations: 58.98 kB / 1.37 GB, free: 15.21 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/1.172, allocations: 0 / 1.37 GB, free: 15.21 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.889e-05/1.172, allocations: 23.88 kB / 1.37 GB, free: 15.2 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001956/1.172, allocations: 9.422 kB / 1.37 GB, free: 15.19 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003195/1.172, allocations: 124.1 kB / 1.37 GB, free: 15.06 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/1.173, allocations: 0.6887 MB / 1.371 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.611e-05/1.173, allocations: 0 / 1.371 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.77e-05/1.173, allocations: 15.42 kB / 1.371 GB, free: 14.33 MB / 0.8386 GB Notification: Performance of SimCode: time 3.41e-07/1.173, allocations: 0 / 1.371 GB, free: 14.33 MB / 0.8386 GB Notification: Performance of Templates: time 0.002539/1.175, allocations: 0.6644 MB / 1.371 GB, free: 13.68 MB / 0.8386 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