Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001387/0.001387, allocations: 92.78 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.002237/0.002237, allocations: 179.6 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.495/1.495, allocations: 223.3 MB / 241 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.705/2.705, allocations: 437.8 MB / 0.7128 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000397/0.0003971, allocations: 8 kB / 0.8735 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9416/0.942, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.002698/0.9448, allocations: 1.188 MB / 1.025 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001197/0.946, allocations: 439 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.081e-05/0.9461, allocations: 0 / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 3.76e-05/0.9461, allocations: 3.938 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001105/0.9463, allocations: 4 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001958/0.9465, allocations: 23.92 kB / 1.025 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002003/0.9467, allocations: 47.89 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.9469, allocations: 8 kB / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.947, allocations: 19.92 kB / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.247e-05/0.9471, allocations: 19.86 kB / 1.025 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.303e-05/0.9472, allocations: 4 kB / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.415e-05/0.9472, allocations: 0 / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.715e-05/0.9472, allocations: 15.92 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.528e-05/0.9473, allocations: 41.62 kB / 1.025 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001151/0.9475, allocations: 35.94 kB / 1.025 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.9475, allocations: 0 / 1.025 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.305e-06/0.9475, allocations: 3.938 kB / 1.025 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.9475, allocations: 0 / 1.025 GB, free: 14.02 MB / 0.7794 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.0006588/0.9482, allocations: 362.7 kB / 1.026 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.9482, allocations: 8.031 kB / 1.026 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.15e-05/0.9483, allocations: 8.844 kB / 1.026 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001759/0.9485, allocations: 168.4 kB / 1.026 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/0.9485, allocations: 384 / 1.026 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.125e-05/0.9485, allocations: 8.375 kB / 1.026 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001778/0.9487, allocations: 65.92 kB / 1.026 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.9488, allocations: 0 / 1.026 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.9488, allocations: 0 / 1.026 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.9488, allocations: 0 / 1.026 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000112/0.9489, allocations: 27.98 kB / 1.026 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007361/0.9497, allocations: 312.6 kB / 1.026 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001683/0.9499, allocations: 54.56 kB / 1.026 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.088e-05/0.9499, allocations: 20.95 kB / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.95, allocations: 4 kB / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002441/0.9502, allocations: 75.41 kB / 1.027 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 2.434e-06/0.9502, allocations: 0 / 1.027 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0003602/0.9506, allocations: 105.5 kB / 1.027 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.498e-05/0.9507, allocations: 55.41 kB / 1.027 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.9508, allocations: 101.8 kB / 1.027 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.9509, allocations: 33.7 kB / 1.027 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.381e-05/0.951, allocations: 92.03 kB / 1.027 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.096e-05/0.951, allocations: 16.19 kB / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.514e-05/0.9511, allocations: 21.7 kB / 1.027 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.00017/0.9513, allocations: 322.8 kB / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.04e-05/0.9513, allocations: 15.98 kB / 1.027 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.9514, allocations: 47.36 kB / 1.027 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001483/0.9516, allocations: 75.48 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.9516, allocations: 0 / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002426/0.9519, allocations: 105.5 kB / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.9519, allocations: 6.344 kB / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.9519, allocations: 0 / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.952, allocations: 4 kB / 1.028 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.543e-05/0.9521, allocations: 11.98 kB / 1.028 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.9521, allocations: 0 / 1.028 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001204/0.9522, allocations: 19.97 kB / 1.028 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.9522, allocations: 4 kB / 1.028 GB, free: 11.67 MB / 0.7794 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.0001332/0.9524, allocations: 127.2 kB / 1.028 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.051e-05/0.9524, allocations: 3.906 kB / 1.028 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.263e-05/0.9525, allocations: 11.97 kB / 1.028 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.9525, allocations: 0 / 1.028 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.9525, allocations: 0 / 1.028 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.9525, allocations: 0 / 1.028 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006202/0.9531, allocations: 362.4 kB / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.9531, allocations: 0 / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.989e-05/0.9532, allocations: 7.984 kB / 1.028 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.824e-06/0.9532, allocations: 4 kB / 1.028 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.9532, allocations: 4 kB / 1.028 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.9532, allocations: 3.938 kB / 1.028 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.9533, allocations: 0 / 1.028 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002758/0.9535, allocations: 183.4 kB / 1.028 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.617e-05/0.9536, allocations: 85.11 kB / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.9537, allocations: 0 / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/0.9538, allocations: 7.938 kB / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.406e-05/0.9539, allocations: 8.172 kB / 1.028 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.9539, allocations: 4 kB / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.15e-05/0.954, allocations: 91.2 kB / 1.028 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.6e-07/0.954, allocations: 4 kB / 1.028 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004112/0.9544, allocations: 16 kB / 1.028 GB, free: 10.66 MB / 0.7794 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.0001481/0.9546, allocations: 103.4 kB / 1.029 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002037/0.9548, allocations: 59.98 kB / 1.029 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.9548, allocations: 0 / 1.029 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.443e-05/0.9549, allocations: 23.94 kB / 1.029 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004388/0.9553, allocations: 15.92 kB / 1.029 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006666/0.956, allocations: 210.3 kB / 1.029 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003892/0.9564, allocations: 0.6848 MB / 1.029 GB, free: 9.504 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.314e-05/0.9565, allocations: 11.44 kB / 1.029 GB, free: 9.496 MB / 0.7794 GB Notification: Performance of SimCode: time 4.71e-07/0.9565, allocations: 4 kB / 1.029 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of Templates: time 0.003283/0.9598, allocations: 0.8415 MB / 1.03 GB, free: 8.652 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer.makefile (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer.sim & ./Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_OffTimer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches