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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.00148/0.00148, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001569/0.001569, allocations: 189.9 kB / 16.25 MB, free: 6.637 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.468/1.468, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.625/2.625, allocations: 437 MB / 0.71 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 63.91 kB / 0.8687 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5805/0.5819, allocations: 151.6 MB / 1.017 GB, free: 2.719 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.002441/0.5844, allocations: 1.533 MB / 1.018 GB, free: 1.176 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006261/0.585, allocations: 443 kB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.629e-05/0.5851, allocations: 4 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.373e-05/0.5851, allocations: 3.984 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.415e-05/0.5852, allocations: 7.938 kB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001381/0.5853, allocations: 11.98 kB / 1.019 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.588e-05/0.5854, allocations: 51.86 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.5855, allocations: 19.97 kB / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.991e-05/0.5856, allocations: 19.92 kB / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.049e-05/0.5857, allocations: 19.92 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.727e-05/0.5857, allocations: 4 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.235e-05/0.5857, allocations: 4 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.038e-05/0.5857, allocations: 11.92 kB / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.931e-05/0.5858, allocations: 19.94 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.251e-05/0.5859, allocations: 59.8 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.5859, allocations: 0 / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.233e-06/0.5859, allocations: 0 / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.5859, allocations: 0 / 1.019 GB, free: 0.5039 MB / 0.7637 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.0005005/0.5864, allocations: 367.2 kB / 1.019 GB, free: 104 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.5864, allocations: 8.031 kB / 1.019 GB, free: 96 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.406e-05/0.5865, allocations: 8.875 kB / 1.019 GB, free: 88 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001449/0.5866, allocations: 168.2 kB / 1.019 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.5866, allocations: 4.375 kB / 1.019 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.698e-05/0.5867, allocations: 16.36 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.5868, allocations: 54 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.331e-06/0.5868, allocations: 0 / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.5868, allocations: 4 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.5868, allocations: 0 / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.385e-05/0.5869, allocations: 31.91 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004786/0.5874, allocations: 304.7 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.5875, allocations: 54.59 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.32e-05/0.5876, allocations: 20.95 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.393e-05/0.5876, allocations: 7.984 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001831/0.5878, allocations: 67.39 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.563e-06/0.5878, allocations: 4 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0002177/0.588, allocations: 105.5 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.5881, allocations: 51.41 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.443e-05/0.5881, allocations: 109.8 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.5882, allocations: 29.7 kB / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.237e-05/0.5882, allocations: 88.05 kB / 1.02 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.294e-05/0.5883, allocations: 19.8 kB / 1.02 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.516e-05/0.5883, allocations: 33.64 kB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.5884, allocations: 327.1 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.712e-05/0.5885, allocations: 16 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.095e-05/0.5885, allocations: 43.42 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.305e-05/0.5886, allocations: 67.36 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.5886, allocations: 3.938 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001356/0.5888, allocations: 97.53 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.5888, allocations: 5.875 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.5888, allocations: 7.984 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/0.5888, allocations: 0 / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.791e-05/0.5889, allocations: 11.94 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.5889, allocations: 4 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.734e-05/0.589, allocations: 15.92 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.421e-05/0.589, allocations: 4 kB / 1.021 GB, free: 14.14 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 8.004e-05/0.5891, allocations: 119.8 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.21e-05/0.5891, allocations: 7.938 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.135e-05/0.5891, allocations: 12.25 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.5891, allocations: 0 / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.5892, allocations: 0 / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.5892, allocations: 3.984 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003826/0.5896, allocations: 358.4 kB / 1.021 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.5896, allocations: 0 / 1.021 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.443e-05/0.5896, allocations: 4 kB / 1.021 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.5896, allocations: 8 kB / 1.021 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.395e-06/0.5896, allocations: 0 / 1.021 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.5896, allocations: 3.938 kB / 1.021 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.5896, allocations: 0 / 1.021 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000157/0.5898, allocations: 183.4 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.611e-05/0.5898, allocations: 81.11 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.66e-05/0.5899, allocations: 4 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.084e-05/0.59, allocations: 19.86 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.919e-05/0.59, allocations: 7.984 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.159e-06/0.59, allocations: 0 / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.473e-05/0.5901, allocations: 83.47 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5901, allocations: 0 / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002439/0.5903, allocations: 23.84 kB / 1.022 GB, free: 13.14 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 8.888e-05/0.5904, allocations: 99.23 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001346/0.5906, allocations: 63.84 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.5906, allocations: 4.062 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.244e-05/0.5906, allocations: 20 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.5909, allocations: 12.2 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004119/0.5913, allocations: 173.5 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002671/0.5916, allocations: 0.6939 MB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.063e-05/0.5917, allocations: 7.938 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.986e-05/0.5917, allocations: 11.44 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of SimCode: time 2.81e-07/0.5917, allocations: 0 / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of Templates: time 0.002748/0.5945, allocations: 0.7162 MB / 1.024 GB, free: 11.29 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches