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.001071/0.001071, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001276/0.001276, allocations: 177.3 kB / 15.94 MB, free: 228 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.519/1.519, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.687/2.687, allocations: 436.5 MB / 0.7104 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004081/0.0004083, allocations: 8 kB / 0.8708 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9763/0.9767, allocations: 153.6 MB / 1.021 GB, free: 1.094 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.002514/0.9793, allocations: 1.454 MB / 1.022 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00249/0.9818, allocations: 1.503 MB / 1.024 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.9819, allocations: 3.938 kB / 1.024 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002232/0.9822, allocations: 27.78 kB / 1.024 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001486/0.9823, allocations: 11.98 kB / 1.024 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007758/0.9831, allocations: 191.5 kB / 1.024 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002827/0.9834, allocations: 163.7 kB / 1.024 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.9836, allocations: 45.84 kB / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001577/0.9838, allocations: 79.73 kB / 1.024 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001639/0.9839, allocations: 63.75 kB / 1.024 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.053e-05/0.984, allocations: 7.938 kB / 1.024 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003808/0.9843, allocations: 147.7 kB / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.9845, allocations: 63.88 kB / 1.024 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.98e-05/0.9846, allocations: 61.58 kB / 1.025 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004327/0.985, allocations: 277.4 kB / 1.025 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.985, allocations: 0 / 1.025 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of FrontEnd: time 4.047e-06/0.985, allocations: 0 / 1.025 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.9851, allocations: 0 / 1.025 GB, free: 12.98 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.001062/0.9861, allocations: 0.53 MB / 1.025 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.9862, allocations: 15.98 kB / 1.025 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.365e-05/0.9863, allocations: 19.81 kB / 1.025 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004815/0.9867, allocations: 258.4 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.394e-05/0.9868, allocations: 24.31 kB / 1.026 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.108e-05/0.9869, allocations: 24 kB / 1.026 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004416/0.9873, allocations: 200.2 kB / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.9873, allocations: 3.938 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.817e-05/0.9874, allocations: 8 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.9874, allocations: 4 kB / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002579/0.9877, allocations: 120.5 kB / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001537/0.9892, allocations: 0.5977 MB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008288/0.99, allocations: 306.3 kB / 1.027 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.112e-05/0.9901, allocations: 4 kB / 1.027 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003929/0.9905, allocations: 163.3 kB / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=26): time 1.783e-06/0.9905, allocations: 0 / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of matching and sorting (n=26): time 0.0009757/0.9915, allocations: 478.1 kB / 1.027 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001798/0.9917, allocations: 67.39 kB / 1.027 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.9919, allocations: 178.3 kB / 1.028 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.586e-05/0.992, allocations: 49.69 kB / 1.028 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.9921, allocations: 116.7 kB / 1.028 GB, free: 9.641 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.643e-05/0.9922, allocations: 78.98 kB / 1.028 GB, free: 9.562 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.809e-05/0.9922, allocations: 8 kB / 1.028 GB, free: 9.555 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001874/0.9924, allocations: 338.8 kB / 1.028 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/0.9926, allocations: 120.8 kB / 1.028 GB, free: 9.098 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003707/0.993, allocations: 246.1 kB / 1.029 GB, free: 8.801 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002657/0.9933, allocations: 151.8 kB / 1.029 GB, free: 8.652 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/0.9933, allocations: 4 kB / 1.029 GB, free: 8.648 MB / 0.7794 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005891/0.9939, allocations: 412.9 kB / 1.029 GB, free: 8.238 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.9939, allocations: 4 kB / 1.029 GB, free: 8.234 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.9939, allocations: 4 kB / 1.029 GB, free: 8.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.994, allocations: 8.094 kB / 1.029 GB, free: 8.223 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001954/0.9942, allocations: 72.25 kB / 1.029 GB, free: 8.152 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.465e-05/0.9942, allocations: 11.94 kB / 1.029 GB, free: 8.141 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001768/0.9944, allocations: 51.61 kB / 1.029 GB, free: 8.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.388e-05/0.9944, allocations: 12 kB / 1.029 GB, free: 8.078 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.000188/0.9946, allocations: 188.2 kB / 1.029 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.841e-05/0.9946, allocations: 23.8 kB / 1.029 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.538e-05/0.9947, allocations: 17.88 kB / 1.029 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.9947, allocations: 0 / 1.029 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.9947, allocations: 192 / 1.029 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.9947, allocations: 7.984 kB / 1.03 GB, free: 7.836 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001164/0.9959, allocations: 0.6855 MB / 1.03 GB, free: 7.094 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.9959, allocations: 4 kB / 1.03 GB, free: 7.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.949e-05/0.996, allocations: 15.94 kB / 1.03 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.996, allocations: 0 / 1.03 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.936e-05/0.996, allocations: 11.98 kB / 1.03 GB, free: 7.062 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.996, allocations: 4 kB / 1.03 GB, free: 7.059 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.9961, allocations: 3.984 kB / 1.03 GB, free: 7.055 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008084/0.9969, allocations: 0.518 MB / 1.031 GB, free: 6.523 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.399e-05/0.9969, allocations: 92.86 kB / 1.031 GB, free: 6.414 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.886e-05/0.997, allocations: 16.03 kB / 1.031 GB, free: 6.398 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.9972, allocations: 23.97 kB / 1.031 GB, free: 6.375 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.645e-05/0.9973, allocations: 23.97 kB / 1.031 GB, free: 6.352 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.67e-05/0.9973, allocations: 15.98 kB / 1.031 GB, free: 6.336 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.601e-05/0.9974, allocations: 128.3 kB / 1.031 GB, free: 6.211 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9974, allocations: 0 / 1.031 GB, free: 6.211 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004778/0.9979, allocations: 111.8 kB / 1.031 GB, free: 6.102 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.000742/0.9986, allocations: 331.2 kB / 1.031 GB, free: 5.832 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004685/0.9991, allocations: 271.8 kB / 1.032 GB, free: 5.566 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.9991, allocations: 0 / 1.032 GB, free: 5.566 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001844/0.9993, allocations: 111.8 kB / 1.032 GB, free: 5.457 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002361/0.9996, allocations: 23.94 kB / 1.032 GB, free: 5.434 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008732/1, allocations: 0.5365 MB / 1.032 GB, free: 4.875 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003464/1.001, allocations: 0.7523 MB / 1.033 GB, free: 4.098 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001371/1.001, allocations: 58.17 kB / 1.033 GB, free: 4.039 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.223e-05/1.001, allocations: 19.44 kB / 1.033 GB, free: 4.02 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/1.001, allocations: 192 / 1.033 GB, free: 4.02 MB / 0.7794 GB Notification: Performance of Templates: time 0.006532/1.008, allocations: 3.003 MB / 1.036 GB, free: 1.023 MB / 0.7794 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","../files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches