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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001214/0.001214, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.001473/0.001473, allocations: 168.7 kB / 15.95 MB, free: 204 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.543/1.543, allocations: 223.3 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.9/2.9, allocations: 462.6 MB / 0.736 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004603/0.0004607, allocations: 7.25 kB / 0.9021 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3987/0.3992, allocations: 159.6 MB / 1.058 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.002501/0.4018, allocations: 1.499 MB / 1.059 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002341/0.4041, allocations: 1.507 MB / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001184/0.4043, allocations: 3.938 kB / 1.061 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001863/0.4045, allocations: 19.86 kB / 1.061 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000129/0.4046, allocations: 23.78 kB / 1.061 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006039/0.4052, allocations: 191.6 kB / 1.061 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002798/0.4055, allocations: 207.5 kB / 1.061 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.4057, allocations: 53.72 kB / 1.061 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001968/0.4059, allocations: 75.75 kB / 1.062 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.406, allocations: 67.67 kB / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.16e-05/0.406, allocations: 8 kB / 1.062 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00034/0.4064, allocations: 171.7 kB / 1.062 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.653e-05/0.4065, allocations: 63.81 kB / 1.062 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.269e-05/0.4066, allocations: 61.56 kB / 1.062 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004634/0.407, allocations: 283.7 kB / 1.062 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4071, allocations: 0 / 1.062 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.443e-06/0.4071, allocations: 4 kB / 1.062 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.4071, allocations: 0 / 1.062 GB, free: 1.113 MB / 0.8106 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.0007791/0.4079, allocations: 0.5064 MB / 1.063 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.4079, allocations: 8.031 kB / 1.063 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.717e-05/0.408, allocations: 23.72 kB / 1.063 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003271/0.4083, allocations: 256.1 kB / 1.063 GB, free: 240 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.214e-05/0.4084, allocations: 23.98 kB / 1.063 GB, free: 216 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.563e-05/0.4084, allocations: 20 kB / 1.063 GB, free: 196 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003828/0.4088, allocations: 205.3 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.4088, allocations: 0 / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.4089, allocations: 8 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.4089, allocations: 4 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002462/0.4091, allocations: 135.6 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001264/0.4104, allocations: 0.5898 MB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003672/0.4108, allocations: 202.5 kB / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001657/0.411, allocations: 104.8 kB / 1.064 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.068e-05/0.411, allocations: 0 / 1.064 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003566/0.4114, allocations: 176.4 kB / 1.064 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=27): time 2.905e-06/0.4114, allocations: 3.984 kB / 1.064 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of matching and sorting (n=27): time 0.0007662/0.4122, allocations: 395.8 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.621e-05/0.4122, allocations: 71.39 kB / 1.065 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002078/0.4125, allocations: 179.1 kB / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.014e-05/0.4125, allocations: 49.69 kB / 1.065 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.4127, allocations: 132.9 kB / 1.065 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.318e-05/0.4128, allocations: 83 kB / 1.065 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.713e-05/0.4128, allocations: 4 kB / 1.065 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.00018/0.413, allocations: 346.8 kB / 1.066 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002268/0.4132, allocations: 112.8 kB / 1.066 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003196/0.4135, allocations: 257.4 kB / 1.066 GB, free: 13 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003137/0.4139, allocations: 159.9 kB / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.697e-06/0.4139, allocations: 4 kB / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007475/0.4146, allocations: 416.8 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.86e-05/0.4147, allocations: 8 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.4147, allocations: 4.469 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.514e-05/0.4147, allocations: 12 kB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/0.415, allocations: 67.84 kB / 1.067 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.415, allocations: 4 kB / 1.067 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001873/0.4152, allocations: 43.58 kB / 1.067 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.947e-05/0.4152, allocations: 16 kB / 1.067 GB, free: 12.27 MB / 0.8262 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.uRWri[2],pyt.uRWri[2],$PRE.pyt.uRWri_temp[2],pyt.uRWri_temp[2],$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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001999/0.4154, allocations: 190.2 kB / 1.067 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.083e-05/0.4155, allocations: 15.81 kB / 1.067 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.901e-05/0.4155, allocations: 22.55 kB / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.4156, allocations: 4 kB / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.4156, allocations: 0 / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.4156, allocations: 0 / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.4166, allocations: 0.6973 MB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.4166, allocations: 0 / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001042/0.4167, allocations: 16 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.67e-06/0.4168, allocations: 4 kB / 1.068 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.787e-05/0.4168, allocations: 11.98 kB / 1.068 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.4168, allocations: 0 / 1.068 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/0.4168, allocations: 3.984 kB / 1.068 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007415/0.4176, allocations: 0.5269 MB / 1.068 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.732e-05/0.4177, allocations: 92.86 kB / 1.068 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.322e-05/0.4177, allocations: 20.02 kB / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001255/0.4178, allocations: 12.19 kB / 1.068 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.237e-05/0.4179, allocations: 23.95 kB / 1.068 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.469e-05/0.418, allocations: 15.98 kB / 1.068 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001333/0.4181, allocations: 128.3 kB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.21e-07/0.4181, allocations: 0 / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005398/0.4187, allocations: 115.8 kB / 1.068 GB, free: 10.29 MB / 0.8262 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 (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.0009258/0.4196, allocations: 342.9 kB / 1.069 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005548/0.4202, allocations: 280.3 kB / 1.069 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4202, allocations: 0 / 1.069 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001937/0.4204, allocations: 99.89 kB / 1.069 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003394/0.4207, allocations: 21.2 kB / 1.069 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.4217, allocations: 0.5607 MB / 1.07 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003644/0.4221, allocations: 0.7523 MB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001634/0.4223, allocations: 54.25 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.791e-05/0.4224, allocations: 23.44 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of SimCode: time 5.81e-07/0.4224, allocations: 0 / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of Templates: time 0.007418/0.4298, allocations: 3.029 MB / 1.073 GB, free: 5.152 MB / 0.8262 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