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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.006745/0.006745, allocations: 101.4 kB / 15.73 MB, free: 6.012 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.001399/0.001399, allocations: 195.8 kB / 16.67 MB, free: 5.949 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.38/1.38, 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 11.0.1-master/package.mo): time 2.734/2.734, allocations: 461.9 MB / 0.7348 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 64.12 kB / 1.054 GB, free: 7.117 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.3172, allocations: 157.4 MB / 1.208 GB, free: 9.613 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.003769/0.321, allocations: 1.818 MB / 1.209 GB, free: 7.781 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002722/0.3238, allocations: 1.604 MB / 1.211 GB, free: 6.168 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.3239, allocations: 3.938 kB / 1.211 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002159/0.3241, allocations: 35.78 kB / 1.211 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001427/0.3243, allocations: 15.8 kB / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007799/0.3251, allocations: 235.2 kB / 1.211 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003463/0.3255, allocations: 251.5 kB / 1.212 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001673/0.3257, allocations: 65.52 kB / 1.212 GB, free: 5.574 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002002/0.3259, allocations: 95.67 kB / 1.212 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001609/0.326, allocations: 83.67 kB / 1.212 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.233e-05/0.3261, allocations: 12 kB / 1.212 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004286/0.3265, allocations: 215.6 kB / 1.212 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.3266, allocations: 79.81 kB / 1.212 GB, free: 5.098 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.3268, allocations: 95.52 kB / 1.212 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0005374/0.3273, allocations: 386.9 kB / 1.213 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3273, allocations: 0 / 1.213 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3273, allocations: 4 kB / 1.213 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.765e-06/0.3273, allocations: 4 kB / 1.213 GB, free: 4.617 MB / 0.9669 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.0009485/0.3283, allocations: 0.5493 MB / 1.213 GB, free: 4.02 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.3284, allocations: 8.625 kB / 1.213 GB, free: 4.012 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.273e-05/0.3284, allocations: 24.66 kB / 1.213 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003644/0.3288, allocations: 252.8 kB / 1.213 GB, free: 3.699 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.68e-05/0.3289, allocations: 20.38 kB / 1.213 GB, free: 3.68 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.476e-05/0.3289, allocations: 31.94 kB / 1.213 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003926/0.3293, allocations: 213.2 kB / 1.214 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.3294, allocations: 3.938 kB / 1.214 GB, free: 3.43 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.302e-05/0.3294, allocations: 8 kB / 1.214 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.3294, allocations: 4 kB / 1.214 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002502/0.3296, allocations: 111.9 kB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.331, allocations: 0.5858 MB / 1.214 GB, free: 2.672 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003718/0.3314, allocations: 206.5 kB / 1.215 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.3316, allocations: 101.2 kB / 1.215 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.3316, allocations: 7.938 kB / 1.215 GB, free: 2.352 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003364/0.332, allocations: 168 kB / 1.215 GB, free: 2.176 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=27): time 2.264e-06/0.332, allocations: 0 / 1.215 GB, free: 2.176 MB / 0.9669 GB Notification: Performance of matching and sorting (n=27): time 0.0007418/0.3327, allocations: 393.4 kB / 1.215 GB, free: 1.789 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.104e-05/0.3328, allocations: 71.39 kB / 1.215 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001863/0.333, allocations: 179.2 kB / 1.215 GB, free: 1.516 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.363e-05/0.333, allocations: 49.69 kB / 1.215 GB, free: 1.461 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.3332, allocations: 140.8 kB / 1.216 GB, free: 1.32 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.646e-05/0.3333, allocations: 75 kB / 1.216 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.3334, allocations: 78.12 kB / 1.216 GB, free: 1.164 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.3335, allocations: 338.8 kB / 1.216 GB, free: 0.8242 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.3337, allocations: 116.8 kB / 1.216 GB, free: 0.707 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002973/0.334, allocations: 257.4 kB / 1.216 GB, free: 408 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004872/0.3345, allocations: 368 kB / 1.217 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/0.3345, allocations: 7.938 kB / 1.217 GB, free: 15.97 MB / 0.9825 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006365/0.3352, allocations: 404.8 kB / 1.217 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.3352, allocations: 8.469 kB / 1.217 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.3352, allocations: 12.12 kB / 1.217 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.3352, allocations: 8 kB / 1.217 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002256/0.3355, allocations: 67.84 kB / 1.217 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.3355, allocations: 11.98 kB / 1.217 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001411/0.3356, allocations: 31.69 kB / 1.217 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.3357, allocations: 19.94 kB / 1.217 GB, free: 15.41 MB / 0.9825 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.0001902/0.3359, allocations: 188.2 kB / 1.217 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.747e-05/0.3359, allocations: 27.7 kB / 1.217 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.416e-05/0.336, allocations: 18.56 kB / 1.218 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.336, allocations: 0 / 1.218 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.336, allocations: 0 / 1.218 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.336, allocations: 7.984 kB / 1.218 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009907/0.337, allocations: 0.6937 MB / 1.218 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.337, allocations: 4 kB / 1.218 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.3371, allocations: 19.98 kB / 1.218 GB, free: 14.4 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.3371, allocations: 0 / 1.218 GB, free: 14.4 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.79e-05/0.3372, allocations: 15.92 kB / 1.218 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.417e-05/0.3372, allocations: 7.938 kB / 1.218 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3372, allocations: 0 / 1.218 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007458/0.338, allocations: 0.5077 MB / 1.219 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.502e-05/0.338, allocations: 96.86 kB / 1.219 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.481e-05/0.3381, allocations: 16.03 kB / 1.219 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.3382, allocations: 11.98 kB / 1.219 GB, free: 13.71 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.745e-05/0.3383, allocations: 15.97 kB / 1.219 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.121e-05/0.3383, allocations: 19.98 kB / 1.219 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.315e-05/0.3384, allocations: 127.2 kB / 1.219 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3384, allocations: 4 kB / 1.219 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004678/0.3389, allocations: 111.9 kB / 1.219 GB, free: 13.44 MB / 0.9825 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.0007215/0.3396, allocations: 339.2 kB / 1.219 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004952/0.3401, allocations: 272.9 kB / 1.22 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.3401, allocations: 0 / 1.22 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001891/0.3403, allocations: 108.8 kB / 1.22 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003022/0.3407, allocations: 29.64 kB / 1.22 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009075/0.3416, allocations: 493 kB / 1.22 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.342, allocations: 0.748 MB / 1.221 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001312/0.3421, allocations: 54.25 kB / 1.221 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.848e-05/0.3422, allocations: 19.44 kB / 1.221 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of SimCode: time 3.51e-07/0.3422, allocations: 0 / 1.221 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of Templates: time 0.007492/0.3497, allocations: 3.386 MB / 1.224 GB, free: 8.027 MB / 0.9825 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