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 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: 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.007293/0.007293, allocations: 103.5 kB / 15.73 MB, free: 6.051 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.001376/0.001376, allocations: 197.6 kB / 16.68 MB, free: 5.98 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.512/1.512, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.964/2.964, allocations: 461.9 MB / 0.7347 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 67.91 kB / 1.054 GB, free: 7.211 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3659, allocations: 157.4 MB / 1.208 GB, free: 9.707 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.00335/0.3693, allocations: 1.472 MB / 1.209 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.000937/0.3702, allocations: 438.8 kB / 1.21 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.396e-05/0.3703, allocations: 0 / 1.21 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.481e-05/0.3704, allocations: 11.92 kB / 1.21 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001031/0.3705, allocations: 7.938 kB / 1.21 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001925/0.3707, allocations: 19.92 kB / 1.21 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001129/0.3708, allocations: 47.91 kB / 1.21 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.371, allocations: 15.97 kB / 1.21 GB, free: 7.684 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.564e-05/0.3711, allocations: 19.94 kB / 1.21 GB, free: 7.664 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.41e-05/0.3711, allocations: 23.91 kB / 1.21 GB, free: 7.641 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.54e-05/0.3712, allocations: 4 kB / 1.21 GB, free: 7.637 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.267e-05/0.3712, allocations: 7.938 kB / 1.21 GB, free: 7.629 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.59e-05/0.3712, allocations: 11.92 kB / 1.21 GB, free: 7.617 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.326e-05/0.3713, allocations: 19.94 kB / 1.21 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001299/0.3714, allocations: 59.8 kB / 1.21 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3714, allocations: 0 / 1.21 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.803e-06/0.3714, allocations: 0 / 1.21 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.973e-06/0.3714, allocations: 0 / 1.21 GB, free: 7.539 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006111/0.3721, allocations: 361.6 kB / 1.21 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.3721, allocations: 8.625 kB / 1.21 GB, free: 7.133 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.849e-05/0.3722, allocations: 8.844 kB / 1.21 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000224/0.3724, allocations: 164.3 kB / 1.21 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.3724, allocations: 4.375 kB / 1.21 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.3724, allocations: 12.38 kB / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001369/0.3726, allocations: 62.42 kB / 1.21 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.3726, allocations: 0 / 1.21 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.3726, allocations: 4 kB / 1.21 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.3726, allocations: 0 / 1.21 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.164e-05/0.3727, allocations: 23.98 kB / 1.21 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000569/0.3733, allocations: 304.6 kB / 1.211 GB, free: 6.469 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001179/0.3734, allocations: 58.5 kB / 1.211 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.51e-05/0.3735, allocations: 20.95 kB / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 9.197e-06/0.3735, allocations: 0 / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002449/0.3737, allocations: 79.41 kB / 1.211 GB, free: 6.289 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=9): time 1.633e-06/0.3737, allocations: 0 / 1.211 GB, free: 6.289 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9): time 0.0002562/0.374, allocations: 109.5 kB / 1.211 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/0.3741, allocations: 51.41 kB / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.477e-05/0.3742, allocations: 109.8 kB / 1.211 GB, free: 5.996 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.3742, allocations: 29.7 kB / 1.211 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.536e-05/0.3743, allocations: 88.12 kB / 1.211 GB, free: 5.871 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.939e-05/0.3743, allocations: 19.66 kB / 1.211 GB, free: 5.852 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.859e-05/0.3744, allocations: 33.7 kB / 1.211 GB, free: 5.812 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.3745, allocations: 318.8 kB / 1.212 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.941e-05/0.3745, allocations: 19.98 kB / 1.212 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.875e-05/0.3746, allocations: 47.61 kB / 1.212 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.545e-05/0.3747, allocations: 67.36 kB / 1.212 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.3747, allocations: 0 / 1.212 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001521/0.3749, allocations: 101.5 kB / 1.212 GB, free: 5.23 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.3749, allocations: 8.031 kB / 1.212 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.3749, allocations: 4 kB / 1.212 GB, free: 5.219 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.3749, allocations: 0 / 1.212 GB, free: 5.219 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.082e-05/0.375, allocations: 11.98 kB / 1.212 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.375, allocations: 0 / 1.212 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.852e-05/0.3751, allocations: 8 kB / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.3751, allocations: 4 kB / 1.212 GB, free: 5.195 MB / 0.9669 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 0.000109/0.3752, allocations: 129.7 kB / 1.212 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.38e-05/0.3752, allocations: 3.906 kB / 1.212 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.459e-05/0.3753, allocations: 11.97 kB / 1.212 GB, free: 5.039 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.3753, allocations: 4.375 kB / 1.212 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.3753, allocations: 0 / 1.212 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3753, allocations: 0 / 1.212 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005116/0.3758, allocations: 358.4 kB / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3758, allocations: 0 / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.038e-05/0.3759, allocations: 7.984 kB / 1.212 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.3759, allocations: 0 / 1.212 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.3759, allocations: 4 kB / 1.212 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.3759, allocations: 11.88 kB / 1.212 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3759, allocations: 3.984 kB / 1.212 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002734/0.3762, allocations: 183.4 kB / 1.213 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.999e-05/0.3762, allocations: 81.05 kB / 1.213 GB, free: 4.309 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.917e-05/0.3763, allocations: 8 kB / 1.213 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.231e-05/0.3764, allocations: 7.922 kB / 1.213 GB, free: 4.293 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.262e-05/0.3764, allocations: 4 kB / 1.213 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-06/0.3764, allocations: 8 kB / 1.213 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.353e-05/0.3765, allocations: 87.36 kB / 1.213 GB, free: 4.195 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.713e-06/0.3765, allocations: 0 / 1.213 GB, free: 4.195 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002883/0.3768, allocations: 19.94 kB / 1.213 GB, free: 4.176 MB / 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: 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.0001208/0.3769, allocations: 99.38 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001486/0.377, allocations: 55.91 kB / 1.213 GB, free: 4.016 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3771, allocations: 0 / 1.213 GB, free: 4.016 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.427e-05/0.3771, allocations: 23.94 kB / 1.213 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.3774, allocations: 21.98 kB / 1.213 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004272/0.3778, allocations: 165.3 kB / 1.213 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002773/0.3781, allocations: 0.6846 MB / 1.214 GB, free: 3.074 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.721e-05/0.3782, allocations: 7.984 kB / 1.214 GB, free: 3.066 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.975e-05/0.3782, allocations: 11.44 kB / 1.214 GB, free: 3.055 MB / 0.9669 GB Notification: Performance of SimCode: time 3.91e-07/0.3782, allocations: 4 kB / 1.214 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of Templates: time 0.003252/0.3815, allocations: 0.7793 MB / 1.215 GB, free: 2.277 MB / 0.9669 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