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/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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009559/0.009559, allocations: 99.58 kB / 15.73 MB, free: 6.02 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.001863/0.001863, allocations: 191.9 kB / 16.67 MB, free: 5.938 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.428/1.428, allocations: 222.9 MB / 240.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.762/2.762, allocations: 472.6 MB / 0.7453 GB, free: 496 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 63.91 kB / 1.069 GB, free: 9.629 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8594/0.8607, allocations: 159.9 MB / 1.226 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.00275/0.8635, allocations: 1.471 MB / 1.227 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0006754/0.8641, allocations: 450.7 kB / 1.227 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.559e-05/0.8642, allocations: 0 / 1.227 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.895e-05/0.8642, allocations: 3.938 kB / 1.227 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 6.66e-05/0.8643, allocations: 11.92 kB / 1.227 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001472/0.8645, allocations: 23.97 kB / 1.227 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 8.617e-05/0.8646, allocations: 51.84 kB / 1.227 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.8647, allocations: 12 kB / 1.228 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 5.024e-05/0.8647, allocations: 19.92 kB / 1.228 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.282e-05/0.8648, allocations: 19.92 kB / 1.228 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.877e-05/0.8648, allocations: 8 kB / 1.228 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 1.468e-05/0.8648, allocations: 4 kB / 1.228 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.343e-05/0.8649, allocations: 15.91 kB / 1.228 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.952e-05/0.8649, allocations: 27.86 kB / 1.228 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 9.662e-05/0.865, allocations: 40.81 kB / 1.228 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.865, allocations: 0 / 1.228 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.262e-06/0.865, allocations: 4 kB / 1.228 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.8651, allocations: 0 / 1.228 GB, free: 11.37 MB / 0.9512 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.000561/0.8656, allocations: 362.8 kB / 1.228 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.8657, allocations: 15.97 kB / 1.228 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.932e-05/0.8657, allocations: 0.9375 kB / 1.228 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001561/0.8659, allocations: 172.3 kB / 1.228 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.8659, allocations: 8.375 kB / 1.228 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.8659, allocations: 4.375 kB / 1.228 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001164/0.866, allocations: 65.92 kB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-06/0.866, allocations: 0 / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.8661, allocations: 4 kB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.8661, allocations: 4 kB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.878e-05/0.8661, allocations: 19.98 kB / 1.228 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004711/0.8666, allocations: 304.7 kB / 1.229 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001072/0.8667, allocations: 58.55 kB / 1.229 GB, free: 10.22 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.557e-05/0.8668, allocations: 28.94 kB / 1.229 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.8668, allocations: 0 / 1.229 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001615/0.867, allocations: 75.38 kB / 1.229 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=9): time 1.183e-06/0.867, allocations: 3.938 kB / 1.229 GB, free: 10.1 MB / 0.9512 GB Notification: Performance of matching and sorting (n=9): time 0.0002152/0.8672, allocations: 97.61 kB / 1.229 GB, free: 10 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.858e-05/0.8672, allocations: 55.41 kB / 1.229 GB, free: 9.934 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.87e-05/0.8673, allocations: 117.8 kB / 1.229 GB, free: 9.809 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.8673, allocations: 25.7 kB / 1.229 GB, free: 9.777 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.43e-05/0.8674, allocations: 84.14 kB / 1.229 GB, free: 9.691 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.559e-05/0.8674, allocations: 23.84 kB / 1.229 GB, free: 9.668 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.239e-05/0.8675, allocations: 22.09 kB / 1.229 GB, free: 9.641 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001097/0.8676, allocations: 326.8 kB / 1.229 GB, free: 9.312 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.834e-05/0.8676, allocations: 15.98 kB / 1.229 GB, free: 9.297 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.338e-05/0.8677, allocations: 47.44 kB / 1.229 GB, free: 9.238 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.767e-05/0.8678, allocations: 71.3 kB / 1.23 GB, free: 9.156 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.8678, allocations: 4 kB / 1.23 GB, free: 9.152 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000142/0.8679, allocations: 97.5 kB / 1.23 GB, free: 9.051 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.868, allocations: 5.25 kB / 1.23 GB, free: 9.047 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.868, allocations: 0 / 1.23 GB, free: 9.047 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.868, allocations: 8.031 kB / 1.23 GB, free: 9.039 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.472e-05/0.8681, allocations: 12 kB / 1.23 GB, free: 9.027 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.8681, allocations: 0 / 1.23 GB, free: 9.027 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.527e-05/0.8682, allocations: 11.92 kB / 1.23 GB, free: 9.016 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.386e-06/0.8682, allocations: 4 kB / 1.23 GB, free: 9.012 MB / 0.9512 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,not1.y,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition2,$whenCondition3,offTim1.entryTime,$PRE.offTim1.entryTime,offTim2.entryTime,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.945e-05/0.8683, allocations: 122.6 kB / 1.23 GB, free: 8.883 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.595e-05/0.8683, allocations: 11.95 kB / 1.23 GB, free: 8.871 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.68e-05/0.8683, allocations: 7.953 kB / 1.23 GB, free: 8.859 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.477e-05/0.8683, allocations: 8 kB / 1.23 GB, free: 8.852 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.8683, allocations: 288 / 1.23 GB, free: 8.852 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.8684, allocations: 0 / 1.23 GB, free: 8.852 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003957/0.8688, allocations: 358.4 kB / 1.23 GB, free: 8.445 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.8688, allocations: 0 / 1.23 GB, free: 8.445 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.852e-05/0.8688, allocations: 11.92 kB / 1.23 GB, free: 8.434 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.8688, allocations: 0 / 1.23 GB, free: 8.434 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.8688, allocations: 0 / 1.23 GB, free: 8.434 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.8688, allocations: 7.938 kB / 1.23 GB, free: 8.426 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.8688, allocations: 0 / 1.23 GB, free: 8.426 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001687/0.869, allocations: 187.4 kB / 1.23 GB, free: 8.227 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.648e-05/0.8691, allocations: 77.11 kB / 1.23 GB, free: 8.133 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/0.8691, allocations: 3.984 kB / 1.23 GB, free: 8.129 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.277e-05/0.8692, allocations: 12 kB / 1.23 GB, free: 8.117 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.735e-05/0.8692, allocations: 11.98 kB / 1.23 GB, free: 8.105 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-06/0.8692, allocations: 4.188 kB / 1.23 GB, free: 8.102 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.848e-05/0.8693, allocations: 83.28 kB / 1.231 GB, free: 8.02 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8693, allocations: 7.938 kB / 1.231 GB, free: 8.012 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002345/0.8695, allocations: 15.95 kB / 1.231 GB, free: 7.996 MB / 0.9512 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 (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.0001107/0.8696, allocations: 114.3 kB / 1.231 GB, free: 7.879 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001316/0.8698, allocations: 47.92 kB / 1.231 GB, free: 7.832 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.8698, allocations: 0 / 1.231 GB, free: 7.832 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 5.721e-05/0.8698, allocations: 31.92 kB / 1.231 GB, free: 7.801 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.8701, allocations: 12 kB / 1.231 GB, free: 7.789 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003965/0.8705, allocations: 170.4 kB / 1.231 GB, free: 7.598 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.8708, allocations: 0.6807 MB / 1.232 GB, free: 6.891 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.622e-05/0.8708, allocations: 4 kB / 1.232 GB, free: 6.887 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.177e-05/0.8709, allocations: 15.42 kB / 1.232 GB, free: 6.871 MB / 0.9512 GB Notification: Performance of SimCode: time 2.9e-07/0.8709, allocations: 0 / 1.232 GB, free: 6.871 MB / 0.9512 GB Notification: Performance of Templates: time 0.003079/0.874, allocations: 0.7847 MB / 1.232 GB, free: 6.09 MB / 0.9512 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches