Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 79.73 kB / 19.76 MB, free: 1.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002154/0.002154, allocations: 155.6 kB / 23.01 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.405/1.405, allocations: 177.2 MB / 203.4 MB, free: 8.934 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.75/2.75, allocations: 377.9 MB / 0.6228 GB, free: 12.6 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3361,variableFilter="time|TAmb.y|onOffCon.u|pyt.yR.2.",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom") translateModel(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3361,variableFilter="time|TAmb.y|onOffCon.u|pyt.yR.2.",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00206/0.00206, allocations: 67.91 kB / 0.9819 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7656/0.7676, allocations: 176.1 MB / 1.154 GB, free: 33.29 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.002469/0.7701, allocations: 1.813 MB / 1.156 GB, free: 32.06 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001712/0.7718, allocations: 1.71 MB / 1.157 GB, free: 30.89 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.01e-05/0.7719, allocations: 3.938 kB / 1.157 GB, free: 30.89 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001532/0.772, allocations: 29.31 kB / 1.157 GB, free: 30.87 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 8.661e-05/0.7721, allocations: 25.94 kB / 1.157 GB, free: 30.85 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005423/0.7727, allocations: 261.7 kB / 1.158 GB, free: 30.73 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0002197/0.7729, allocations: 248.2 kB / 1.158 GB, free: 30.63 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.773, allocations: 42.47 kB / 1.158 GB, free: 30.61 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001492/0.7731, allocations: 97.97 kB / 1.158 GB, free: 30.57 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/0.7732, allocations: 84.23 kB / 1.158 GB, free: 30.54 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 2.668e-05/0.7733, allocations: 15.91 kB / 1.158 GB, free: 30.54 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002981/0.7736, allocations: 235.1 kB / 1.158 GB, free: 30.46 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 8.01e-05/0.7736, allocations: 85.72 kB / 1.158 GB, free: 30.42 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 6.562e-05/0.7737, allocations: 78.05 kB / 1.158 GB, free: 30.38 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0003454/0.774, allocations: 398.4 kB / 1.159 GB, free: 30.23 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.774, allocations: 0 / 1.159 GB, free: 30.23 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.142e-06/0.774, allocations: 0 / 1.159 GB, free: 30.23 MB / 1.076 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.7741, allocations: 0 / 1.159 GB, free: 30.23 MB / 1.076 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.0006257/0.7747, allocations: 0.4889 MB / 1.159 GB, free: 29.84 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 2.553e-05/0.7747, allocations: 7.719 kB / 1.159 GB, free: 29.84 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/0.7749, allocations: 45.38 kB / 1.159 GB, free: 29.82 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002774/0.7751, allocations: 200.4 kB / 1.16 GB, free: 29.65 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.7752, allocations: 19.61 kB / 1.16 GB, free: 29.64 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.933e-05/0.7752, allocations: 27.12 kB / 1.16 GB, free: 29.64 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002972/0.7755, allocations: 206.9 kB / 1.16 GB, free: 29.55 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.7755, allocations: 0 / 1.16 GB, free: 29.55 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.859e-05/0.7755, allocations: 10.06 kB / 1.16 GB, free: 29.55 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.7755, allocations: 2.938 kB / 1.16 GB, free: 29.55 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002045/0.7757, allocations: 124.2 kB / 1.16 GB, free: 29.51 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009533/0.7767, allocations: 489.3 kB / 1.16 GB, free: 29.21 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002695/0.777, allocations: 191.3 kB / 1.161 GB, free: 29.13 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.7771, allocations: 88.55 kB / 1.161 GB, free: 29.1 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.129e-05/0.7771, allocations: 6.844 kB / 1.161 GB, free: 29.1 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002131/0.7773, allocations: 178.5 kB / 1.161 GB, free: 29.01 MB / 1.076 GB Notification: Performance of pre-optimization done (n=27): time 1.593e-06/0.7773, allocations: 0 / 1.161 GB, free: 29.01 MB / 1.076 GB Notification: Performance of matching and sorting (n=27): time 0.000564/0.7779, allocations: 378.4 kB / 1.161 GB, free: 28.89 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.291e-05/0.7779, allocations: 67.69 kB / 1.161 GB, free: 28.82 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.683e-05/0.778, allocations: 172 kB / 1.161 GB, free: 28.7 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/0.7781, allocations: 47.5 kB / 1.162 GB, free: 28.66 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 4.464e-05/0.7781, allocations: 131.5 kB / 1.162 GB, free: 28.55 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 4.713e-05/0.7781, allocations: 85.73 kB / 1.162 GB, free: 28.48 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.598e-05/0.7782, allocations: 82.06 kB / 1.162 GB, free: 28.43 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.215e-05/0.7783, allocations: 340.9 kB / 1.162 GB, free: 28.11 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001612/0.7784, allocations: 123.2 kB / 1.162 GB, free: 28.07 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.7786, allocations: 278.5 kB / 1.162 GB, free: 27.84 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003432/0.779, allocations: 364.6 kB / 1.163 GB, free: 27.59 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.779, allocations: 0 / 1.163 GB, free: 27.59 MB / 1.076 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004946/0.7795, allocations: 438.3 kB / 1.163 GB, free: 27.4 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.7795, allocations: 7.469 kB / 1.163 GB, free: 27.4 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.7795, allocations: 5.469 kB / 1.163 GB, free: 27.4 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.7795, allocations: 5.219 kB / 1.163 GB, free: 27.4 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001913/0.7797, allocations: 58.59 kB / 1.163 GB, free: 27.4 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.7797, allocations: 17.48 kB / 1.163 GB, free: 27.39 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/0.7798, allocations: 35.56 kB / 1.163 GB, free: 27.37 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.7799, allocations: 17.91 kB / 1.163 GB, free: 27.36 MB / 1.076 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.0001184/0.78, allocations: 186 kB / 1.164 GB, free: 27.21 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.957e-05/0.78, allocations: 20.16 kB / 1.164 GB, free: 27.2 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.68e-05/0.78, allocations: 27.02 kB / 1.164 GB, free: 27.18 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.78, allocations: 2.562 kB / 1.164 GB, free: 27.18 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.7801, allocations: 0 / 1.164 GB, free: 27.18 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.7801, allocations: 3.938 kB / 1.164 GB, free: 27.18 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007405/0.7808, allocations: 0.6107 MB / 1.164 GB, free: 26.83 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.7808, allocations: 0 / 1.164 GB, free: 26.83 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.7809, allocations: 22.88 kB / 1.164 GB, free: 26.83 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.7809, allocations: 0 / 1.164 GB, free: 26.83 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.7809, allocations: 12.78 kB / 1.164 GB, free: 26.82 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.7809, allocations: 0 / 1.164 GB, free: 26.82 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.7809, allocations: 4 kB / 1.164 GB, free: 26.82 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005606/0.7815, allocations: 0.5185 MB / 1.165 GB, free: 26.57 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.685e-05/0.7815, allocations: 25.36 kB / 1.165 GB, free: 26.55 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.874e-05/0.7815, allocations: 15.47 kB / 1.165 GB, free: 26.55 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.7817, allocations: 10.41 kB / 1.165 GB, free: 26.55 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.117e-05/0.7817, allocations: 22.17 kB / 1.165 GB, free: 26.54 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.7817, allocations: 20.3 kB / 1.165 GB, free: 26.54 MB / 1.076 GB Notification: Performance of sorting global known variables: time 5.625e-05/0.7818, allocations: 125.6 kB / 1.165 GB, free: 26.45 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/0.7818, allocations: 3.938 kB / 1.165 GB, free: 26.44 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003899/0.7822, allocations: 107.8 kB / 1.165 GB, free: 26.41 MB / 1.076 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.0007109/0.7829, allocations: 351.2 kB / 1.165 GB, free: 26.24 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0003941/0.7833, allocations: 272.5 kB / 1.166 GB, free: 26.16 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.7833, allocations: 0 / 1.166 GB, free: 26.16 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.00016/0.7834, allocations: 101.2 kB / 1.166 GB, free: 26.13 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.7837, allocations: 30.58 kB / 1.166 GB, free: 26.12 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006404/0.7844, allocations: 0.4966 MB / 1.166 GB, free: 25.83 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.757e-05/0.7845, allocations: 136.3 kB / 1.166 GB, free: 25.75 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001036/0.7846, allocations: 56.36 kB / 1.166 GB, free: 25.74 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.827e-05/0.7846, allocations: 24.81 kB / 1.167 GB, free: 25.73 MB / 1.076 GB Notification: Performance of SimCode: time 4.21e-07/0.7846, allocations: 0 / 1.167 GB, free: 25.73 MB / 1.076 GB Notification: Performance of Templates: time 0.006247/0.7908, allocations: 3.272 MB / 1.17 GB, free: 25.39 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.sim & ./Buildings_12_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Python_3_8_Examples_SimpleRoom.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.445950417080894]