Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.009025/0.009025, allocations: 101.8 kB / 15.73 MB, free: 6.441 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.002024/0.002024, allocations: 196.2 kB / 16.67 MB, free: 6.352 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.757/2.757, allocations: 472.6 MB / 0.7453 GB, free: 4.566 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 71.83 kB / 1.069 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3311/0.3325, allocations: 159.9 MB / 1.226 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.003092/0.3356, allocations: 1.826 MB / 1.227 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002381/0.338, allocations: 1.607 MB / 1.229 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.707e-05/0.3381, allocations: 7.938 kB / 1.229 GB, free: 5.758 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001889/0.3384, allocations: 23.78 kB / 1.229 GB, free: 5.734 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001117/0.3385, allocations: 27.8 kB / 1.229 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006894/0.3392, allocations: 231.2 kB / 1.229 GB, free: 5.48 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002879/0.3395, allocations: 251.5 kB / 1.229 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.3396, allocations: 61.53 kB / 1.23 GB, free: 5.172 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001469/0.3398, allocations: 99.67 kB / 1.23 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001472/0.34, allocations: 83.66 kB / 1.23 GB, free: 4.992 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.2e-05/0.34, allocations: 16 kB / 1.23 GB, free: 4.977 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004093/0.3404, allocations: 211.6 kB / 1.23 GB, free: 4.77 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.3405, allocations: 79.78 kB / 1.23 GB, free: 4.691 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.3406, allocations: 95.48 kB / 1.23 GB, free: 4.598 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004797/0.3411, allocations: 390.6 kB / 1.23 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3412, allocations: 0 / 1.23 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3412, allocations: 0 / 1.23 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.3412, allocations: 0 / 1.23 GB, free: 4.215 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0008306/0.342, allocations: 0.5604 MB / 1.231 GB, free: 3.605 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.342, allocations: 11.97 kB / 1.231 GB, free: 3.594 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.025e-05/0.3421, allocations: 32.8 kB / 1.231 GB, free: 3.562 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000305/0.3424, allocations: 254 kB / 1.231 GB, free: 3.273 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.815e-05/0.3425, allocations: 20.36 kB / 1.231 GB, free: 3.254 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.051e-05/0.3425, allocations: 27.94 kB / 1.231 GB, free: 3.227 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003663/0.3429, allocations: 209.2 kB / 1.232 GB, free: 3.016 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.3429, allocations: 0 / 1.232 GB, free: 3.016 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.55e-05/0.343, allocations: 7.984 kB / 1.232 GB, free: 3.008 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.343, allocations: 4 kB / 1.232 GB, free: 3.004 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002482/0.3432, allocations: 123.7 kB / 1.232 GB, free: 2.883 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.3444, allocations: 0.5822 MB / 1.232 GB, free: 2.25 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003455/0.3448, allocations: 211.3 kB / 1.232 GB, free: 2.035 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.345, allocations: 96.81 kB / 1.233 GB, free: 1.938 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.345, allocations: 4 kB / 1.233 GB, free: 1.934 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003344/0.3453, allocations: 172.7 kB / 1.233 GB, free: 1.754 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=27): time 1.623e-06/0.3454, allocations: 0 / 1.233 GB, free: 1.754 MB / 0.9825 GB Notification: Performance of matching and sorting (n=27): time 0.000708/0.3461, allocations: 405.2 kB / 1.233 GB, free: 1.355 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.3461, allocations: 71.33 kB / 1.233 GB, free: 1.273 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001594/0.3463, allocations: 186.6 kB / 1.233 GB, free: 1.078 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.102e-05/0.3464, allocations: 45.7 kB / 1.233 GB, free: 1.027 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.071e-05/0.3465, allocations: 129 kB / 1.233 GB, free: 0.8945 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.865e-05/0.3465, allocations: 87.36 kB / 1.234 GB, free: 0.8086 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.3467, allocations: 82.12 kB / 1.234 GB, free: 0.7227 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.3468, allocations: 334.8 kB / 1.234 GB, free: 396 kB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002147/0.347, allocations: 120.8 kB / 1.234 GB, free: 276 kB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002954/0.3473, allocations: 253.4 kB / 1.234 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004755/0.3478, allocations: 368 kB / 1.235 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.3478, allocations: 3.938 kB / 1.235 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006571/0.3485, allocations: 429.1 kB / 1.235 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.3485, allocations: 4 kB / 1.235 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.3485, allocations: 4 kB / 1.235 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.3485, allocations: 8 kB / 1.235 GB, free: 15.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002053/0.3488, allocations: 63.84 kB / 1.235 GB, free: 15.04 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/0.3488, allocations: 7.938 kB / 1.235 GB, free: 15.03 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.3489, allocations: 39.77 kB / 1.235 GB, free: 14.99 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.349, allocations: 20.25 kB / 1.235 GB, free: 14.97 MB / 0.9981 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,pyt.uRWri_temp[2],$PRE.pyt.uRWri_temp[2],pyt.uRWri[2],$PRE.pyt.uRWri[2],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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 51 * 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.0001787/0.3492, allocations: 180.3 kB / 1.235 GB, free: 14.79 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.189e-05/0.3492, allocations: 19.86 kB / 1.235 GB, free: 14.77 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.499e-05/0.3493, allocations: 22.55 kB / 1.235 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.3493, allocations: 4 kB / 1.235 GB, free: 14.74 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3493, allocations: 7.938 kB / 1.235 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.3493, allocations: 0 / 1.235 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.3503, allocations: 0.686 MB / 1.236 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3503, allocations: 0 / 1.236 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.3504, allocations: 15.94 kB / 1.236 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.3504, allocations: 4 kB / 1.236 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.854e-05/0.3505, allocations: 11.98 kB / 1.236 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.3505, allocations: 3.984 kB / 1.236 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3505, allocations: 0 / 1.236 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007218/0.3512, allocations: 0.5124 MB / 1.237 GB, free: 13.43 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.873e-05/0.3513, allocations: 92.95 kB / 1.237 GB, free: 13.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.994e-05/0.3513, allocations: 24.02 kB / 1.237 GB, free: 13.29 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001222/0.3515, allocations: 8 kB / 1.237 GB, free: 13.29 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.625e-05/0.3515, allocations: 19.97 kB / 1.237 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.987e-05/0.3516, allocations: 12.17 kB / 1.237 GB, free: 13.25 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001086/0.3517, allocations: 144.2 kB / 1.237 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3517, allocations: 0 / 1.237 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004589/0.3522, allocations: 111.6 kB / 1.237 GB, free: 13 MB / 0.9981 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 (26): * Single equations (assignments): 12 * 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.0007195/0.3529, allocations: 331.4 kB / 1.237 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0005153/0.3534, allocations: 291.5 kB / 1.238 GB, free: 12.45 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3534, allocations: 256 / 1.238 GB, free: 12.45 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001895/0.3536, allocations: 111.9 kB / 1.238 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003022/0.3539, allocations: 19.98 kB / 1.238 GB, free: 12.32 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008729/0.3548, allocations: 499.7 kB / 1.238 GB, free: 11.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003448/0.3552, allocations: 0.7519 MB / 1.239 GB, free: 11.03 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001259/0.3553, allocations: 50.25 kB / 1.239 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.562e-05/0.3554, allocations: 19.44 kB / 1.239 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of SimCode: time 3.1e-07/0.3554, allocations: 0 / 1.239 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of Templates: time 0.006919/0.3623, allocations: 3.328 MB / 1.242 GB, free: 7.633 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.sim & ./Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Python_3_8_Examples_SimpleRoom.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches