Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.007775/0.007774, allocations: 105.4 kB / 15.74 MB, free: 6.488 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.001691/0.001691, allocations: 196.1 kB / 16.68 MB, free: 6.375 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.579/1.579, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.451/2.451, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 66.23 kB / 0.9508 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3488, allocations: 140.4 MB / 1.088 GB, free: 1.66 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.003143/0.3519, allocations: 1.466 MB / 1.089 GB, free: 184 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007562/0.3527, allocations: 436.3 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.395e-05/0.3528, allocations: 0 / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.643e-05/0.3528, allocations: 7.922 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.507e-05/0.3529, allocations: 7.938 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001773/0.3531, allocations: 27.91 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.674e-05/0.3532, allocations: 55.78 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001193/0.3533, allocations: 23.92 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.533e-05/0.3534, allocations: 12 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.92e-05/0.3535, allocations: 23.84 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.904e-05/0.3535, allocations: 4 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.573e-05/0.3535, allocations: 4 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.726e-05/0.3536, allocations: 15.98 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.445e-05/0.3536, allocations: 23.86 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001097/0.3537, allocations: 39.83 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3537, allocations: 0 / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3537, allocations: 4 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.798e-06/0.3538, allocations: 7.984 kB / 1.09 GB, free: 15.5 MB / 0.8575 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.0005761/0.3543, allocations: 351.5 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.3544, allocations: 15.95 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.404e-05/0.3544, allocations: 4.938 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000228/0.3547, allocations: 172.2 kB / 1.091 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.3547, allocations: 4.375 kB / 1.091 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.82e-05/0.3547, allocations: 4.375 kB / 1.091 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001201/0.3548, allocations: 65.98 kB / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.3548, allocations: 0 / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.608e-05/0.3549, allocations: 0 / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.3549, allocations: 3.938 kB / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001409/0.355, allocations: 27.98 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005069/0.3555, allocations: 304.6 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001132/0.3557, allocations: 62.59 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.467e-05/0.3557, allocations: 24.95 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.087e-05/0.3557, allocations: 0 / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00019/0.3559, allocations: 71.38 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.3559, allocations: 0 / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0002427/0.3562, allocations: 97.56 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.314e-05/0.3563, allocations: 63.39 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.007e-05/0.3564, allocations: 105.7 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.3564, allocations: 37.69 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.353e-05/0.3564, allocations: 80.14 kB / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.518e-05/0.3565, allocations: 23.66 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.751e-05/0.3565, allocations: 29.7 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.3567, allocations: 318.8 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.88e-05/0.3567, allocations: 19.98 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.138e-05/0.3568, allocations: 47.42 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.3569, allocations: 67.55 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.357, allocations: 0 / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001398/0.3571, allocations: 89.61 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.3571, allocations: 9.562 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.3571, allocations: 0 / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.3572, allocations: 4.031 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.27e-05/0.3572, allocations: 15.92 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.3573, allocations: 8.047 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.369e-05/0.3573, allocations: 15.91 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.765e-06/0.3573, allocations: 4 kB / 1.092 GB, free: 13.14 MB / 0.8575 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 9.747e-05/0.3574, allocations: 121.8 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.174e-05/0.3575, allocations: 4 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.027e-05/0.3575, allocations: 7.969 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.3575, allocations: 7.938 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.3575, allocations: 0 / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.3575, allocations: 0 / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000468/0.358, allocations: 370.2 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.358, allocations: 0 / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.204e-05/0.358, allocations: 8 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.358, allocations: 3.984 kB / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/0.3581, allocations: 480 / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.3581, allocations: 3.938 kB / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3581, allocations: 4 kB / 1.093 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001978/0.3583, allocations: 179.4 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.656e-05/0.3583, allocations: 89 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.3584, allocations: 0 / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.892e-05/0.3584, allocations: 7.938 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.72e-05/0.3585, allocations: 11.98 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.24e-06/0.3585, allocations: 0 / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.301e-05/0.3586, allocations: 87.27 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3586, allocations: 4 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002282/0.3588, allocations: 12 kB / 1.093 GB, free: 12.14 MB / 0.8575 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.0001393/0.359, allocations: 96.02 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001513/0.3591, allocations: 59.95 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3592, allocations: 0 / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.518e-05/0.3592, allocations: 23.98 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.3595, allocations: 20.12 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004305/0.3599, allocations: 159 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.3604, allocations: 0.6845 MB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.828e-05/0.3604, allocations: 7.984 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.757e-05/0.3604, allocations: 11.44 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of SimCode: time 3.81e-07/0.3604, allocations: 0 / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of Templates: time 0.003313/0.3638, allocations: 0.7708 MB / 1.095 GB, free: 10.25 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_OffTimer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches