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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001451/0.001451, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001637/0.001637, allocations: 200.5 kB / 16.79 MB, free: 6.809 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.505/1.505, allocations: 222.9 MB / 240.5 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.438/2.438, allocations: 390.2 MB / 0.6649 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 59.91 kB / 0.8125 GB, free: 14.9 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6627/0.664, allocations: 140.3 MB / 0.9496 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.002946/0.667, allocations: 1.524 MB / 0.9511 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006999/0.6677, allocations: 445.4 kB / 0.9515 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.712e-05/0.6678, allocations: 1.156 kB / 0.9515 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.614e-05/0.6678, allocations: 3.938 kB / 0.9515 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.402e-05/0.6679, allocations: 12.94 kB / 0.9515 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001685/0.6681, allocations: 16.56 kB / 0.9515 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.369e-05/0.6682, allocations: 47.75 kB / 0.9516 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.6683, allocations: 18.11 kB / 0.9516 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.861e-05/0.6684, allocations: 18.92 kB / 0.9516 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.956e-05/0.6685, allocations: 21.12 kB / 0.9516 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.023e-05/0.6685, allocations: 3.188 kB / 0.9516 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.492e-05/0.6685, allocations: 3.656 kB / 0.9516 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.997e-05/0.6686, allocations: 8.875 kB / 0.9516 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.748e-05/0.6686, allocations: 24.39 kB / 0.9517 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.895e-05/0.6687, allocations: 22.64 kB / 0.9517 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.6687, allocations: 0 / 0.9517 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of FrontEnd: time 5.31e-07/0.6687, allocations: 0 / 0.9517 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.6687, allocations: 5.5 kB / 0.9517 GB, free: 7.449 MB / 0.7169 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.0004402/0.6692, allocations: 361.9 kB / 0.952 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.6692, allocations: 9.875 kB / 0.952 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.862e-05/0.6692, allocations: 3.5 kB / 0.952 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.505e-05/0.6693, allocations: 175.5 kB / 0.9522 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.6694, allocations: 2.844 kB / 0.9522 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.444e-05/0.6694, allocations: 8.141 kB / 0.9522 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001118/0.6695, allocations: 59.94 kB / 0.9523 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.6695, allocations: 4 kB / 0.9523 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.6695, allocations: 4 kB / 0.9523 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.6695, allocations: 5.219 kB / 0.9523 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.116e-05/0.6696, allocations: 26.17 kB / 0.9523 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004261/0.67, allocations: 306.5 kB / 0.9526 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00012/0.6702, allocations: 61.59 kB / 0.9527 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.483e-05/0.6702, allocations: 23.5 kB / 0.9527 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.217e-06/0.6702, allocations: 1.125 kB / 0.9527 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001717/0.6704, allocations: 68.05 kB / 0.9527 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.502e-06/0.6704, allocations: 0 / 0.9527 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0002219/0.6707, allocations: 106 kB / 0.9528 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.849e-05/0.6707, allocations: 57.78 kB / 0.9529 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.103e-05/0.6708, allocations: 108.1 kB / 0.953 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.6708, allocations: 27.17 kB / 0.953 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.246e-05/0.6708, allocations: 93.42 kB / 0.9531 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.6708, allocations: 23.78 kB / 0.9531 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.756e-05/0.6709, allocations: 26.12 kB / 0.9532 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.527e-05/0.6709, allocations: 320 kB / 0.9535 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.471e-05/0.671, allocations: 14.34 kB / 0.9535 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.461e-05/0.671, allocations: 47.61 kB / 0.9535 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.782e-05/0.6711, allocations: 66.67 kB / 0.9536 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.6711, allocations: 1.188 kB / 0.9536 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00013/0.6713, allocations: 95.22 kB / 0.9537 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.6713, allocations: 9.328 kB / 0.9537 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.6713, allocations: 8.031 kB / 0.9537 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.6713, allocations: 2.625 kB / 0.9537 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.183e-05/0.6714, allocations: 11.84 kB / 0.9537 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.6714, allocations: 1.125 kB / 0.9537 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.504e-05/0.6715, allocations: 12.95 kB / 0.9537 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.664e-06/0.6715, allocations: 3.094 kB / 0.9537 GB, free: 5.418 MB / 0.7169 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 6.375e-05/0.6715, allocations: 126.3 kB / 0.9539 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.169e-05/0.6716, allocations: 10.59 kB / 0.9539 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.657e-05/0.6716, allocations: 9.406 kB / 0.9539 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.6716, allocations: 5.25 kB / 0.9539 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.6716, allocations: 0 / 0.9539 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.6716, allocations: 0 / 0.9539 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003106/0.6719, allocations: 355.5 kB / 0.9542 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-06/0.672, allocations: 1.406 kB / 0.9542 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.438e-05/0.672, allocations: 6.531 kB / 0.9542 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.672, allocations: 1.688 kB / 0.9542 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-06/0.672, allocations: 0 / 0.9542 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.672, allocations: 10.06 kB / 0.9542 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.672, allocations: 3.984 kB / 0.9542 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001297/0.6721, allocations: 182.6 kB / 0.9544 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.991e-05/0.6722, allocations: 79.7 kB / 0.9545 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.591e-05/0.6722, allocations: 1.344 kB / 0.9545 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.469e-05/0.6723, allocations: 14.92 kB / 0.9545 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.658e-05/0.6723, allocations: 11.5 kB / 0.9545 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.6723, allocations: 6.219 kB / 0.9545 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.399e-05/0.6724, allocations: 83.72 kB / 0.9546 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6724, allocations: 0 / 0.9546 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000233/0.6726, allocations: 15.88 kB / 0.9546 GB, free: 4.539 MB / 0.7169 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 8.819e-05/0.6727, allocations: 102.8 kB / 0.9547 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001267/0.6728, allocations: 48.98 kB / 0.9548 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.6729, allocations: 3.938 kB / 0.9548 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.099e-05/0.6729, allocations: 29.66 kB / 0.9548 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002729/0.6732, allocations: 13.52 kB / 0.9548 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003906/0.6736, allocations: 201.3 kB / 0.955 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001106/0.6737, allocations: 0.6886 MB / 0.9557 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.813e-05/0.6737, allocations: 18.44 kB / 0.9557 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of SimCode: time 2.9e-07/0.6737, allocations: 0 / 0.9557 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of Templates: time 0.002202/0.676, allocations: 0.8508 MB / 0.9565 GB, free: 3.062 MB / 0.7169 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches