Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.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_10_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_10_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.001281/0.001281, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.001779/0.00178, allocations: 172.7 kB / 15.95 MB, free: 192 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 223.3 MB / 240 MB, free: 5.281 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.739/2.739, allocations: 437.7 MB / 0.7117 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000399/0.0003991, allocations: 8 kB / 0.8722 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8581/0.8586, allocations: 153.8 MB / 1.022 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.002632/0.8613, allocations: 1.465 MB / 1.024 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002822/0.8641, allocations: 1.503 MB / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001421/0.8643, allocations: 4 kB / 1.025 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001915/0.8645, allocations: 23.84 kB / 1.025 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001415/0.8647, allocations: 11.88 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007714/0.8654, allocations: 191.5 kB / 1.026 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003497/0.8658, allocations: 211.5 kB / 1.026 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.866, allocations: 49.89 kB / 1.026 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002626/0.8663, allocations: 75.69 kB / 1.026 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001734/0.8665, allocations: 63.73 kB / 1.026 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.262e-05/0.8665, allocations: 8 kB / 1.026 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004485/0.8669, allocations: 171.7 kB / 1.026 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.8671, allocations: 67.86 kB / 1.026 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.43e-05/0.8671, allocations: 53.58 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004412/0.8676, allocations: 269.5 kB / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.8676, allocations: 0 / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.815e-06/0.8676, allocations: 0 / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.166e-06/0.8676, allocations: 3.938 kB / 1.026 GB, free: 11.8 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001074/0.8687, allocations: 0.5417 MB / 1.027 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.8688, allocations: 8.031 kB / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.315e-05/0.8689, allocations: 27.72 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003326/0.8692, allocations: 244.1 kB / 1.027 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.344e-05/0.8692, allocations: 24.31 kB / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.405e-05/0.8693, allocations: 24 kB / 1.027 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000403/0.8697, allocations: 196.2 kB / 1.027 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.8697, allocations: 0 / 1.027 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.5e-05/0.8698, allocations: 8 kB / 1.027 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.8698, allocations: 11.98 kB / 1.027 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002593/0.8701, allocations: 124.5 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001362/0.8714, allocations: 0.5977 MB / 1.028 GB, free: 9.867 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007653/0.8722, allocations: 298.4 kB / 1.028 GB, free: 9.566 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.8724, allocations: 96.8 kB / 1.029 GB, free: 9.469 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.8724, allocations: 4 kB / 1.029 GB, free: 9.465 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000343/0.8728, allocations: 171.3 kB / 1.029 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=26): time 1.803e-06/0.8728, allocations: 0 / 1.029 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of matching and sorting (n=26): time 0.0007781/0.8736, allocations: 389.5 kB / 1.029 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.817e-05/0.8736, allocations: 71.38 kB / 1.029 GB, free: 8.82 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001872/0.8738, allocations: 182.2 kB / 1.029 GB, free: 8.633 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.513e-05/0.8739, allocations: 45.7 kB / 1.029 GB, free: 8.582 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.544e-05/0.874, allocations: 120.7 kB / 1.029 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.112e-05/0.8741, allocations: 83 kB / 1.03 GB, free: 8.379 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.35e-05/0.8741, allocations: 4 kB / 1.03 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.8743, allocations: 338.8 kB / 1.03 GB, free: 8.035 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.8745, allocations: 112.8 kB / 1.03 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003003/0.8748, allocations: 254.4 kB / 1.03 GB, free: 7.621 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002678/0.875, allocations: 155.9 kB / 1.03 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.8751, allocations: 4 kB / 1.03 GB, free: 7.465 MB / 0.7794 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006859/0.8758, allocations: 417.2 kB / 1.031 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.8758, allocations: 4 kB / 1.031 GB, free: 7.047 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.8758, allocations: 4 kB / 1.031 GB, free: 7.043 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.8758, allocations: 8 kB / 1.031 GB, free: 7.035 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002058/0.876, allocations: 71.78 kB / 1.031 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/0.8761, allocations: 7.938 kB / 1.031 GB, free: 6.957 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001965/0.8763, allocations: 51.77 kB / 1.031 GB, free: 6.906 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.512e-05/0.8763, allocations: 16 kB / 1.031 GB, free: 6.891 MB / 0.7794 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 ($PRE.pyt.firstTrigger,pyt.firstTrigger,$PRE.pyt.yR[2],pyt.yR[2],$PRE.pyt.uRIntPre[1],pyt.uRIntPre[1],$PRE.pyt.uRIntPre[2],pyt.uRIntPre[2],$PRE.pyt.uRIntPre[3],pyt.uRIntPre[3],$PRE.pyt.uRIntPre[4],pyt.uRIntPre[4],$PRE.pyt.uRWri[1],pyt.uRWri[1],$PRE.pyt.uRWri_temp[1],pyt.uRWri_temp[1],$PRE.pyt.uRWri[4],pyt.uRWri[4],$PRE.pyt.uRWri_temp[4],pyt.uRWri_temp[4],$whenCondition1,pyt.sampleTrigger,$PRE.pyt.yR[1],pyt.yR[1],$PRE.pyt.uRWri[3],pyt.uRWri[3],$PRE.pyt.uRWri_temp[3],pyt.uRWri_temp[3],$PRE.onOffCon.y,onOffCon.y,$PRE.pyt.uRWri[2],pyt.uRWri[2],$PRE.pyt.uRWri_temp[2],pyt.uRWri_temp[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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001893/0.8765, allocations: 176.3 kB / 1.031 GB, free: 6.711 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.371e-05/0.8765, allocations: 23.8 kB / 1.031 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.536e-05/0.8766, allocations: 21.88 kB / 1.031 GB, free: 6.672 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.8766, allocations: 0 / 1.031 GB, free: 6.672 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.8766, allocations: 0 / 1.031 GB, free: 6.672 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.8766, allocations: 7.984 kB / 1.031 GB, free: 6.664 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.8777, allocations: 0.6815 MB / 1.032 GB, free: 5.926 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.8777, allocations: 7.984 kB / 1.032 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.8778, allocations: 15.94 kB / 1.032 GB, free: 5.902 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.672e-06/0.8778, allocations: 4 kB / 1.032 GB, free: 5.898 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.058e-05/0.8779, allocations: 11.98 kB / 1.032 GB, free: 5.887 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.8779, allocations: 4 kB / 1.032 GB, free: 5.883 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.8779, allocations: 0 / 1.032 GB, free: 5.883 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007638/0.8787, allocations: 0.5125 MB / 1.032 GB, free: 5.355 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.522e-05/0.8787, allocations: 97.05 kB / 1.032 GB, free: 5.242 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.385e-05/0.8788, allocations: 20.03 kB / 1.033 GB, free: 5.223 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001538/0.879, allocations: 23.97 kB / 1.033 GB, free: 5.199 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.999e-05/0.879, allocations: 23.97 kB / 1.033 GB, free: 5.176 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.264e-05/0.8791, allocations: 11.98 kB / 1.033 GB, free: 5.164 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001138/0.8792, allocations: 124.3 kB / 1.033 GB, free: 5.043 MB / 0.7794 GB Notification: Performance of sort global known variables: time 4.91e-07/0.8792, allocations: 4 kB / 1.033 GB, free: 5.039 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005342/0.8798, allocations: 111.8 kB / 1.033 GB, free: 4.93 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008732/0.8806, allocations: 327.9 kB / 1.033 GB, free: 4.66 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005771/0.8812, allocations: 278.4 kB / 1.033 GB, free: 4.391 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.8812, allocations: 256 / 1.033 GB, free: 4.391 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001961/0.8814, allocations: 107.9 kB / 1.033 GB, free: 4.285 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.8818, allocations: 27.92 kB / 1.033 GB, free: 4.258 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009919/0.8828, allocations: 0.5345 MB / 1.034 GB, free: 3.695 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003423/0.8831, allocations: 0.7523 MB / 1.035 GB, free: 2.918 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001539/0.8833, allocations: 54.19 kB / 1.035 GB, free: 2.863 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.751e-05/0.8834, allocations: 19.44 kB / 1.035 GB, free: 2.844 MB / 0.7794 GB Notification: Performance of SimCode: time 4.81e-07/0.8834, allocations: 0 / 1.035 GB, free: 2.844 MB / 0.7794 GB Notification: Performance of Templates: time 0.007874/0.8913, allocations: 3.021 MB / 1.038 GB, free: 15.82 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.sim & ./Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Python_3_8_Examples_SimpleRoom.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches