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.00148/0.00148, allocations: 108 kB / 15.61 MB, free: 152 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.002158/0.002158, allocations: 197 kB / 16.53 MB, free: 6.664 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.442/1.442, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.352/2.352, allocations: 390.2 MB / 0.6646 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 67.89 kB / 0.8125 GB, free: 14.5 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7/0.7019, allocations: 140.4 MB / 0.9496 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.002261/0.7042, allocations: 1.457 MB / 0.951 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005541/0.7048, allocations: 448.8 kB / 0.9514 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.832e-05/0.7048, allocations: 1.344 kB / 0.9514 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.093e-05/0.7049, allocations: 3.938 kB / 0.9514 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.02e-05/0.7049, allocations: 12.94 kB / 0.9514 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001287/0.7051, allocations: 23.48 kB / 0.9515 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.844e-05/0.7052, allocations: 48.62 kB / 0.9515 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.944e-05/0.7053, allocations: 14.44 kB / 0.9515 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.837e-05/0.7053, allocations: 23.22 kB / 0.9515 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.897e-05/0.7054, allocations: 24.92 kB / 0.9516 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.724e-05/0.7054, allocations: 5.156 kB / 0.9516 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.233e-05/0.7054, allocations: 3.375 kB / 0.9516 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.857e-05/0.7054, allocations: 18.14 kB / 0.9516 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.629e-05/0.7055, allocations: 19.23 kB / 0.9516 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.903e-05/0.7056, allocations: 42.03 kB / 0.9517 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.7056, allocations: 5.281 kB / 0.9517 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.132e-06/0.7056, allocations: 0 / 0.9517 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.688e-06/0.7056, allocations: 0 / 0.9517 GB, free: 7.469 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.0003986/0.706, allocations: 371 kB / 0.952 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.706, allocations: 9.062 kB / 0.952 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.338e-05/0.7061, allocations: 4.75 kB / 0.952 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.94e-05/0.7062, allocations: 163.1 kB / 0.9522 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.7062, allocations: 5.703 kB / 0.9522 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.522e-05/0.7062, allocations: 9.281 kB / 0.9522 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.7063, allocations: 63.75 kB / 0.9523 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.7063, allocations: 0 / 0.9523 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.7063, allocations: 0 / 0.9523 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.7064, allocations: 1.25 kB / 0.9523 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.646e-05/0.7064, allocations: 26.92 kB / 0.9523 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005108/0.707, allocations: 310 kB / 0.9526 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001435/0.7071, allocations: 52.09 kB / 0.9526 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.146e-05/0.7072, allocations: 28.53 kB / 0.9527 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.319e-05/0.7072, allocations: 1.094 kB / 0.9527 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000197/0.7074, allocations: 72.77 kB / 0.9527 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.874e-06/0.7074, allocations: 0 / 0.9527 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.00024/0.7077, allocations: 109.7 kB / 0.9528 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.804e-05/0.7077, allocations: 52.72 kB / 0.9529 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.137e-05/0.7078, allocations: 105.1 kB / 0.953 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.7078, allocations: 31.05 kB / 0.953 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.798e-05/0.7079, allocations: 85.05 kB / 0.9531 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.555e-05/0.7079, allocations: 23.59 kB / 0.9531 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.914e-05/0.7079, allocations: 26.31 kB / 0.9531 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.644e-05/0.708, allocations: 324 kB / 0.9534 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.903e-05/0.7081, allocations: 18.53 kB / 0.9535 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.83e-05/0.7081, allocations: 43.73 kB / 0.9535 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.192e-05/0.7082, allocations: 75.81 kB / 0.9536 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.7082, allocations: 3.938 kB / 0.9536 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001191/0.7083, allocations: 98.89 kB / 0.9537 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.7083, allocations: 9.062 kB / 0.9537 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.7084, allocations: 0.9062 kB / 0.9537 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.7084, allocations: 2.281 kB / 0.9537 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.758e-05/0.7084, allocations: 7.469 kB / 0.9537 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.7085, allocations: 1.719 kB / 0.9537 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.34e-05/0.7085, allocations: 16.11 kB / 0.9537 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.7085, allocations: 3.188 kB / 0.9537 GB, free: 5.438 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 5.737e-05/0.7086, allocations: 123 kB / 0.9538 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.247e-05/0.7086, allocations: 10.78 kB / 0.9538 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.543e-05/0.7086, allocations: 8.969 kB / 0.9539 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.7087, allocations: 1.344 kB / 0.9539 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.7087, allocations: 0 / 0.9539 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.7087, allocations: 3.984 kB / 0.9539 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002907/0.709, allocations: 352.2 kB / 0.9542 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.709, allocations: 0 / 0.9542 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.432e-05/0.709, allocations: 3.688 kB / 0.9542 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.709, allocations: 5.156 kB / 0.9542 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.266e-06/0.709, allocations: 4 kB / 0.9542 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.709, allocations: 5.062 kB / 0.9542 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.709, allocations: 4.453 kB / 0.9542 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001168/0.7092, allocations: 183.7 kB / 0.9544 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.816e-05/0.7092, allocations: 83.23 kB / 0.9545 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.418e-05/0.7092, allocations: 1 kB / 0.9545 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.979e-05/0.7093, allocations: 14.98 kB / 0.9545 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.457e-05/0.7093, allocations: 13.36 kB / 0.9545 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.7094, allocations: 5.562 kB / 0.9545 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.289e-05/0.7094, allocations: 79.19 kB / 0.9546 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7094, allocations: 0 / 0.9546 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002258/0.7096, allocations: 19.53 kB / 0.9546 GB, free: 4.562 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 7.382e-05/0.7097, allocations: 106.1 kB / 0.9547 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000127/0.7098, allocations: 53.31 kB / 0.9547 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.7098, allocations: 4.062 kB / 0.9548 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.669e-05/0.7099, allocations: 28.86 kB / 0.9548 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002533/0.7101, allocations: 11.62 kB / 0.9548 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003376/0.7105, allocations: 168.9 kB / 0.955 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.238e-05/0.7106, allocations: 0.6952 MB / 0.9556 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.444e-05/0.7106, allocations: 2.938 kB / 0.9556 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.439e-05/0.7107, allocations: 11.94 kB / 0.9556 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of SimCode: time 2.9e-07/0.7107, allocations: 0 / 0.9556 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of Templates: time 0.002591/0.7133, allocations: 0.7684 MB / 0.9564 GB, free: 3.176 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/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