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.0009748/0.0009749, allocations: 91.77 kB / 16.02 MB, free: 80 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.001475/0.001475, allocations: 178.7 kB / 16.92 MB, free: 6.652 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.458/1.458, allocations: 223.3 MB / 241 MB, free: 5.301 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.408/2.408, allocations: 390.9 MB / 0.667 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004617/0.0004617, allocations: 8 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7274/0.7279, allocations: 142.4 MB / 0.9557 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.001451/0.7294, allocations: 1.184 MB / 0.9569 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005818/0.73, allocations: 436.3 kB / 0.9573 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.081e-05/0.73, allocations: 0.875 kB / 0.9573 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.756e-05/0.7301, allocations: 7.922 kB / 0.9573 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.432e-05/0.7301, allocations: 5.188 kB / 0.9573 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001441/0.7303, allocations: 24.09 kB / 0.9573 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.423e-05/0.7304, allocations: 43.8 kB / 0.9573 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.7305, allocations: 13.27 kB / 0.9574 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.125e-05/0.7305, allocations: 19.94 kB / 0.9574 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.959e-05/0.7306, allocations: 20.38 kB / 0.9574 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.005e-05/0.7306, allocations: 1.938 kB / 0.9574 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.165e-05/0.7307, allocations: 2.031 kB / 0.9574 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.126e-05/0.7307, allocations: 10.12 kB / 0.9574 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.823e-05/0.7307, allocations: 52.91 kB / 0.9575 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.84e-05/0.7308, allocations: 22.42 kB / 0.9575 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.7308, allocations: 1.125 kB / 0.9575 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.044e-06/0.7308, allocations: 0 / 0.9575 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.7308, allocations: 0 / 0.9575 GB, free: 6.336 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.0003969/0.7312, allocations: 359.4 kB / 0.9578 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.7313, allocations: 10.12 kB / 0.9578 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.45e-05/0.7313, allocations: 7 kB / 0.9578 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.673e-05/0.7314, allocations: 172 kB / 0.958 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.7314, allocations: 2.438 kB / 0.958 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.606e-05/0.7315, allocations: 8.562 kB / 0.958 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001029/0.7316, allocations: 55.12 kB / 0.9581 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.7316, allocations: 4 kB / 0.9581 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.7316, allocations: 1.031 kB / 0.9581 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.7316, allocations: 8.938 kB / 0.9581 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.412e-05/0.7317, allocations: 33.75 kB / 0.9581 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004354/0.7321, allocations: 307.5 kB / 0.9584 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.301e-05/0.7322, allocations: 58.06 kB / 0.9585 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.014e-05/0.7323, allocations: 27.88 kB / 0.9585 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.089e-05/0.7323, allocations: 1.031 kB / 0.9585 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000149/0.7324, allocations: 72.91 kB / 0.9586 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.7325, allocations: 0 / 0.9586 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0001955/0.7327, allocations: 104.8 kB / 0.9587 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.593e-05/0.7327, allocations: 53.19 kB / 0.9587 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.215e-05/0.7328, allocations: 109.4 kB / 0.9588 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.7328, allocations: 29.7 kB / 0.9588 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.509e-05/0.7328, allocations: 86.3 kB / 0.9589 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.166e-05/0.7328, allocations: 19.3 kB / 0.9589 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.482e-05/0.7329, allocations: 17.81 kB / 0.959 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.73e-05/0.7329, allocations: 324.1 kB / 0.9593 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.186e-05/0.7329, allocations: 18.19 kB / 0.9593 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.35e-05/0.733, allocations: 44.05 kB / 0.9593 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.451e-05/0.7331, allocations: 67.33 kB / 0.9594 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.7331, allocations: 0 / 0.9594 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001271/0.7332, allocations: 99.45 kB / 0.9595 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.7332, allocations: 10.5 kB / 0.9595 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.7332, allocations: 1.344 kB / 0.9595 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.7333, allocations: 1.281 kB / 0.9595 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.295e-05/0.7333, allocations: 12.72 kB / 0.9595 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.7333, allocations: 5.594 kB / 0.9595 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.684e-05/0.7334, allocations: 18.2 kB / 0.9595 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.774e-06/0.7334, allocations: 4.312 kB / 0.9595 GB, free: 4.312 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.037e-05/0.7335, allocations: 117.9 kB / 0.9597 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.27e-05/0.7335, allocations: 10.09 kB / 0.9597 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.554e-05/0.7335, allocations: 12.84 kB / 0.9597 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.7335, allocations: 5.781 kB / 0.9597 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.7336, allocations: 0 / 0.9597 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.7336, allocations: 1.25 kB / 0.9597 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003139/0.7339, allocations: 366.8 kB / 0.96 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.7339, allocations: 0 / 0.96 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.587e-05/0.7339, allocations: 12.53 kB / 0.96 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.7339, allocations: 0 / 0.96 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.587e-06/0.7339, allocations: 1.094 kB / 0.96 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.734, allocations: 5.156 kB / 0.9601 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.734, allocations: 0 / 0.9601 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001286/0.7341, allocations: 183.8 kB / 0.9602 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.12e-05/0.7341, allocations: 78.05 kB / 0.9603 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.7341, allocations: 1.156 kB / 0.9603 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.48e-05/0.7342, allocations: 17.27 kB / 0.9603 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.238e-05/0.7343, allocations: 7.922 kB / 0.9603 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.7343, allocations: 6.344 kB / 0.9603 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.478e-05/0.7343, allocations: 79.94 kB / 0.9604 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7343, allocations: 0 / 0.9604 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002308/0.7346, allocations: 15.75 kB / 0.9604 GB, free: 3.441 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.526e-05/0.7347, allocations: 99.05 kB / 0.9605 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001214/0.7348, allocations: 61.52 kB / 0.9606 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.7348, allocations: 0 / 0.9606 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.77e-05/0.7348, allocations: 25.23 kB / 0.9606 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.7351, allocations: 8.281 kB / 0.9606 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003834/0.7355, allocations: 220 kB / 0.9608 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001037/0.7356, allocations: 0.6945 MB / 0.9615 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.643e-05/0.7357, allocations: 11.84 kB / 0.9615 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of SimCode: time 3.2e-07/0.7357, allocations: 0 / 0.9615 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of Templates: time 0.001998/0.7377, allocations: 0.8465 MB / 0.9623 GB, free: 1.961 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