Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.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.Utilities.IO.Python_3_8.Examples.SimpleRoom,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TAmb.y|onOffCon.u|pyt.yR.2.",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom") translateModel(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TAmb.y|onOffCon.u|pyt.yR.2.",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009948/0.0009946, allocations: 95.92 kB / 15.36 MB, free: 0.7344 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.009427/0.009427, allocations: 170.8 kB / 16.27 MB, free: 6.648 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.454/1.454, allocations: 223.2 MB / 240.3 MB, free: 5.348 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.488/2.488, allocations: 390.9 MB / 0.6663 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003826/0.0003827, allocations: 16.19 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8469/0.8473, allocations: 142.4 MB / 0.955 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.002675/0.85, allocations: 1.484 MB / 0.9565 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002868/0.8529, allocations: 1.57 MB / 0.958 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.853, allocations: 1.281 kB / 0.958 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002062/0.8532, allocations: 23.19 kB / 0.958 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001229/0.8534, allocations: 14.33 kB / 0.958 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000684/0.8541, allocations: 197.8 kB / 0.9582 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003385/0.8544, allocations: 224.7 kB / 0.9584 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001883/0.8546, allocations: 54.66 kB / 0.9585 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001685/0.8548, allocations: 76.53 kB / 0.9586 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001613/0.8549, allocations: 73.02 kB / 0.9586 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.603e-05/0.855, allocations: 5.031 kB / 0.9586 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003977/0.8554, allocations: 182.7 kB / 0.9588 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.8555, allocations: 65.66 kB / 0.9589 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.8557, allocations: 113.9 kB / 0.959 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000471/0.8561, allocations: 370.4 kB / 0.9593 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.8561, allocations: 0 / 0.9593 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.785e-06/0.8562, allocations: 1.375 kB / 0.9593 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.795e-06/0.8562, allocations: 0 / 0.9593 GB, free: 4.668 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0009471/0.8571, allocations: 0.525 MB / 0.9599 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.8572, allocations: 8.25 kB / 0.9599 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.968e-05/0.8573, allocations: 26.5 kB / 0.9599 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002348/0.8575, allocations: 242.1 kB / 0.9601 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.978e-05/0.8575, allocations: 26.25 kB / 0.9602 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.354e-05/0.8576, allocations: 24.44 kB / 0.9602 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003752/0.858, allocations: 206.6 kB / 0.9604 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.858, allocations: 1 kB / 0.9604 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.858, allocations: 5.719 kB / 0.9604 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-06/0.8581, allocations: 3.969 kB / 0.9604 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002588/0.8583, allocations: 123.6 kB / 0.9605 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.8596, allocations: 0.6093 MB / 0.9611 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008498/0.8605, allocations: 297 kB / 0.9614 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001775/0.8607, allocations: 102.9 kB / 0.9615 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.229e-05/0.8607, allocations: 6.188 kB / 0.9615 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003177/0.861, allocations: 173.3 kB / 0.9616 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=26): time 1.863e-06/0.861, allocations: 0 / 0.9616 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26): time 0.0007986/0.8619, allocations: 387.6 kB / 0.962 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.8619, allocations: 65.11 kB / 0.9621 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.8621, allocations: 181.9 kB / 0.9623 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.509e-05/0.8621, allocations: 56.03 kB / 0.9623 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.19e-05/0.8622, allocations: 120.5 kB / 0.9624 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 7.359e-05/0.8623, allocations: 80.3 kB / 0.9625 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.417e-05/0.8624, allocations: 50.81 kB / 0.9625 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.915e-05/0.8625, allocations: 338.1 kB / 0.9629 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002062/0.8627, allocations: 116.1 kB / 0.963 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002812/0.863, allocations: 243.7 kB / 0.9632 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004681/0.8634, allocations: 376.8 kB / 0.9636 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.8634, allocations: 5.344 kB / 0.9636 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000639/0.8641, allocations: 415.6 kB / 0.964 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.8641, allocations: 11.66 kB / 0.964 GB, free: 1.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.8641, allocations: 3.562 kB / 0.964 GB, free: 1.141 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.518e-05/0.8642, allocations: 6.219 kB / 0.964 GB, free: 1.141 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.8644, allocations: 61.31 kB / 0.9641 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.13e-05/0.8644, allocations: 14.58 kB / 0.9641 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001919/0.8646, allocations: 46.17 kB / 0.9641 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.079e-05/0.8646, allocations: 22.16 kB / 0.9641 GB, free: 1.082 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 34 (pyt.firstTrigger,$PRE.pyt.firstTrigger,pyt.yR[2],$PRE.pyt.yR[2],pyt.uRIntPre[1],$PRE.pyt.uRIntPre[1],pyt.uRIntPre[2],$PRE.pyt.uRIntPre[2],pyt.uRIntPre[3],$PRE.pyt.uRIntPre[3],pyt.uRIntPre[4],$PRE.pyt.uRIntPre[4],pyt.uRWri_temp[1],$PRE.pyt.uRWri_temp[1],pyt.uRWri[1],$PRE.pyt.uRWri[1],pyt.uRWri_temp[4],$PRE.pyt.uRWri_temp[4],pyt.uRWri[4],$PRE.pyt.uRWri[4],pyt.sampleTrigger,$whenCondition1,onOffCon.y,$PRE.onOffCon.y,pyt.uRWri_temp[3],$PRE.pyt.uRWri_temp[3],pyt.uRWri[3],$PRE.pyt.uRWri[3],pyt.yR[1],$PRE.pyt.yR[1],pyt.uRWri_temp[2],$PRE.pyt.uRWri_temp[2],pyt.uRWri[2],$PRE.pyt.uRWri[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 50 * 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.0001808/0.8648, allocations: 184 kB / 0.9643 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.137e-05/0.8649, allocations: 21.27 kB / 0.9643 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.892e-05/0.8649, allocations: 17.59 kB / 0.9643 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.8649, allocations: 3.75 kB / 0.9643 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.916e-06/0.8649, allocations: 4 kB / 0.9643 GB, free: 0.8984 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.865, allocations: 0 / 0.9643 GB, free: 0.8984 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.8661, allocations: 0.6815 MB / 0.965 GB, free: 408 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.8661, allocations: 4.172 kB / 0.965 GB, free: 404 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/0.8662, allocations: 17.56 kB / 0.965 GB, free: 400 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.8663, allocations: 1.969 kB / 0.965 GB, free: 400 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.902e-05/0.8663, allocations: 8.016 kB / 0.965 GB, free: 396 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.8663, allocations: 8.906 kB / 0.9651 GB, free: 388 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.8663, allocations: 0 / 0.9651 GB, free: 388 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008529/0.8672, allocations: 0.5166 MB / 0.9656 GB, free: 84 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 8.821e-05/0.8673, allocations: 94.52 kB / 0.9656 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.353e-05/0.8673, allocations: 18.97 kB / 0.9657 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001737/0.8675, allocations: 25.38 kB / 0.9657 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.445e-05/0.8676, allocations: 25.75 kB / 0.9657 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.744e-05/0.8677, allocations: 8.375 kB / 0.9657 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001408/0.8678, allocations: 130 kB / 0.9658 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8678, allocations: 0 / 0.9658 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005957/0.8684, allocations: 111.3 kB / 0.966 GB, free: 15.8 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (pyt.uRInt[1],pyt.uRInt[2],pyt.uRInt[3],pyt.uRInt[4]) * Number of discrete variables: 18 (pyt.sampleTrigger,$whenCondition1,pyt.firstTrigger,pyt.yR[1],pyt.yR[2],pyt.uRIntPre[1],pyt.uRIntPre[2],pyt.uRIntPre[3],pyt.uRIntPre[4],pyt.uRWri[1],pyt.uRWri[2],pyt.uRWri[3],pyt.uRWri[4],pyt.uRWri_temp[1],pyt.uRWri_temp[2],pyt.uRWri_temp[3],pyt.uRWri_temp[4],onOffCon.y) * Number of discrete states: 5 (pyt.uR[1],pyt.uR[2],pyt.uR[3],pyt.uR[4],onOffCon.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * 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.0009563/0.8694, allocations: 341.8 kB / 0.9663 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005999/0.87, allocations: 274.2 kB / 0.9665 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.87, allocations: 0.9375 kB / 0.9665 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002274/0.8702, allocations: 112.9 kB / 0.9666 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003497/0.8706, allocations: 25.17 kB / 0.9667 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.872, allocations: 0.5649 MB / 0.9672 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006093/0.8726, allocations: 0.7435 MB / 0.968 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002049/0.8728, allocations: 53.25 kB / 0.968 GB, free: 14.28 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.497e-05/0.8729, allocations: 19.03 kB / 0.968 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of SimCode: time 3.71e-07/0.8729, allocations: 4.969 kB / 0.968 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of Templates: time 0.01047/0.8834, allocations: 3.074 MB / 0.971 GB, free: 12.73 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.sim & ./Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Python_3_8_Examples_SimpleRoom.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches