Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements") translateModel(BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.794/0.794, allocations: 143.4 MB / 159.2 MB, free: 4.871 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001644/0.001644, allocations: 186.7 kB / 191.9 MB, free: 5.719 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 447.3 MB, free: 5.859 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 103.7 kB / 0.517 GB, free: 3.695 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001885/0.001885, allocations: 274.3 kB / 0.5973 GB, free: 49.36 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.0014, allocations: 83.86 kB / 0.6885 GB, free: 3.82 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3822/0.3837, allocations: 81.28 MB / 0.7679 GB, free: 27.64 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements): time 0.5396/0.9233, allocations: 158.4 MB / 0.9226 GB, free: 1.289 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.03318/0.9565, allocations: 26.58 MB / 0.9485 GB, free: 0.8281 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004374/0.9609, allocations: 63.81 kB / 0.9486 GB, free: 0.8281 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.002389/0.9634, allocations: 0.9044 MB / 0.9495 GB, free: 0.8086 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.005718/0.9691, allocations: 1.509 MB / 0.951 GB, free: 0.7422 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.004236/0.9734, allocations: 1.501 MB / 0.9524 GB, free: 0.6914 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.005868/0.9793, allocations: 5.074 MB / 0.9574 GB, free: 0.6719 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005149/0.9844, allocations: 3.827 MB / 0.9611 GB, free: 15.61 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002892/0.9873, allocations: 1.672 MB / 0.9628 GB, free: 15.04 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003001/0.9903, allocations: 2.278 MB / 0.965 GB, free: 14.21 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.000511/0.9909, allocations: 242.8 kB / 0.9652 GB, free: 14.21 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002235/0.9931, allocations: 0.8348 MB / 0.966 GB, free: 14.06 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0008799/0.994, allocations: 0.9516 MB / 0.967 GB, free: 13.61 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.002067/0.9961, allocations: 1.803 MB / 0.9687 GB, free: 12.48 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.005621/1.002, allocations: 5.507 MB / 0.9741 GB, free: 9.445 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/1.002, allocations: 0 / 0.9741 GB, free: 9.445 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.323e-06/1.002, allocations: 0 / 0.9741 GB, free: 9.445 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0001251/1.002, allocations: 0 / 0.9741 GB, free: 9.445 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009305/1.011, allocations: 4.474 MB / 0.9785 GB, free: 6.426 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/1.011, allocations: 12.44 kB / 0.9785 GB, free: 6.422 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01256/1.024, allocations: 2.771 MB / 0.9812 GB, free: 5.098 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005679/1.03, allocations: 2.25 MB / 0.9834 GB, free: 3.621 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001816/1.03, allocations: 245.4 kB / 0.9836 GB, free: 3.508 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005372/1.03, allocations: 317.8 kB / 0.9839 GB, free: 3.406 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01076/1.041, allocations: 5.139 MB / 0.9889 GB, free: 14.65 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.373e-05/1.041, allocations: 3.984 kB / 0.9889 GB, free: 14.64 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003129/1.041, allocations: 132 kB / 0.9891 GB, free: 14.52 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-05/1.042, allocations: 80 kB / 0.9891 GB, free: 14.44 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01379/1.055, allocations: 6.292 MB / 0.9953 GB, free: 8.141 MB / 0.5886 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02551/1.081, allocations: 14.52 MB / 1.009 GB, free: 9.371 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009595/1.09, allocations: 4.517 MB / 1.014 GB, free: 4.863 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005046/1.096, allocations: 2.461 MB / 1.016 GB, free: 2.398 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009336/1.097, allocations: 0.6664 MB / 1.017 GB, free: 1.617 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005244/1.102, allocations: 2.457 MB / 1.019 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=270): time 5.421e-06/1.102, allocations: 0 / 1.019 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of matching and sorting (n=270): time 0.01958/1.121, allocations: 7.543 MB / 1.027 GB, free: 7.48 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001319/1.122, allocations: 206 kB / 1.027 GB, free: 7.234 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003401/1.125, allocations: 2.393 MB / 1.029 GB, free: 4.812 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0003448/1.125, allocations: 73.7 kB / 1.029 GB, free: 4.734 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.001248/1.127, allocations: 1.341 MB / 1.031 GB, free: 3.375 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009103/1.128, allocations: 0.8964 MB / 1.031 GB, free: 2.488 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008834/1.128, allocations: 0.4888 MB / 1.032 GB, free: 1.992 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001018/1.129, allocations: 305.1 kB / 1.032 GB, free: 1.691 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004424/1.133, allocations: 1.968 MB / 1.034 GB, free: 15.72 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004807/1.138, allocations: 2.268 MB / 1.036 GB, free: 13.38 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01/1.148, allocations: 4.235 MB / 1.041 GB, free: 9.07 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/1.148, allocations: 0 / 1.041 GB, free: 9.07 MB / 0.6355 GB Notification: Performance of matching and sorting (n=308) (initialization): time 0.01359/1.161, allocations: 4.955 MB / 1.045 GB, free: 4.098 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 6.499e-05/1.162, allocations: 9.672 kB / 1.045 GB, free: 4.09 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.945e-05/1.162, allocations: 10.84 kB / 1.045 GB, free: 4.082 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/1.163, allocations: 345.3 kB / 1.046 GB, free: 3.742 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004306/1.167, allocations: 0.7827 MB / 1.046 GB, free: 2.984 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005791/1.173, allocations: 3.925 MB / 1.05 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004457/1.177, allocations: 0.5402 MB / 1.051 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008815/1.178, allocations: 107.9 kB / 1.051 GB, free: 14.29 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.intGai.nextTimeEvent,$whenCondition1,weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,intGai.nextTimeEventScaled,$PRE.intGai.nextTimeEventScaled,intGai.nextTimeEvent,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (278): * Single equations (assignments): 277 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,28,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003271/1.182, allocations: 0.9255 MB / 1.052 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001454/1.183, allocations: 276.6 kB / 1.052 GB, free: 13.11 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01623/1.199, allocations: 5.545 MB / 1.058 GB, free: 7.52 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-05/1.199, allocations: 27.94 kB / 1.058 GB, free: 7.492 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.041e-05/1.199, allocations: 8 kB / 1.058 GB, free: 7.484 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.148e-05/1.199, allocations: 15.94 kB / 1.058 GB, free: 7.469 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02494/1.224, allocations: 9.295 MB / 1.067 GB, free: 14.13 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.979e-05/1.224, allocations: 0 / 1.067 GB, free: 14.13 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004469/1.229, allocations: 0.7252 MB / 1.067 GB, free: 13.43 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001333/1.23, allocations: 382.3 kB / 1.068 GB, free: 13.05 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000738/1.231, allocations: 75.92 kB / 1.068 GB, free: 12.97 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008136/1.239, allocations: 5.789 MB / 1.073 GB, free: 6.91 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/1.239, allocations: 0 / 1.073 GB, free: 6.91 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.7113/1.951, allocations: 125.4 MB / 1.196 GB, free: 327.6 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002247/1.953, allocations: 0.7984 MB / 1.197 GB, free: 327.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005172/1.953, allocations: 66.28 kB / 1.197 GB, free: 327.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003184/1.957, allocations: 405.2 kB / 1.197 GB, free: 327.5 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005218/1.957, allocations: 175.2 kB / 1.197 GB, free: 327.5 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002535/1.957, allocations: 98.61 kB / 1.197 GB, free: 327.5 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.002126/1.96, allocations: 1.743 MB / 1.199 GB, free: 327.4 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.3e-07/1.96, allocations: 3.172 kB / 1.199 GB, free: 327.4 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.004875/1.964, allocations: 1.586 MB / 1.201 GB, free: 327.3 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (thermalZoneTwoElements.volAir.dynBal.U,thermalZoneTwoElements.volAir.dynBal.m,thermalZoneTwoElements.extWallRC.thermCapExt[1].T,thermalZoneTwoElements.intWallRC.thermCapInt[1].T) * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext,intGai.nextTimeEvent,intGai.nextTimeEventScaled) * Number of discrete states: 4 (intGai.nextTimeEvent,intGai.nextTimeEventScaled,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,25,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002345/1.967, allocations: 1.083 MB / 1.202 GB, free: 327.1 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.01031/1.977, allocations: 4.792 MB / 1.206 GB, free: 326.9 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/1.977, allocations: 0 / 1.206 GB, free: 326.9 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.005242/1.982, allocations: 2.754 MB / 1.209 GB, free: 326.1 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003138/1.986, allocations: 0.6362 MB / 1.21 GB, free: 325.8 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01649/2.002, allocations: 11.65 MB / 1.221 GB, free: 319.9 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002054/2.004, allocations: 2.527 MB / 1.224 GB, free: 318.9 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.006417/2.011, allocations: 1.421 MB / 1.225 GB, free: 318.6 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002561/2.013, allocations: 330.2 kB / 1.225 GB, free: 318.5 MB / 0.7761 GB Notification: Performance of SimCode: time 5.92e-07/2.013, allocations: 0 / 1.225 GB, free: 318.5 MB / 0.7761 GB Notification: Performance of Templates: time 0.1103/2.124, allocations: 94.87 MB / 1.318 GB, free: 227.4 MB / 0.7761 GB make -j1 -f BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.makefile (rm -f BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; mkfifo BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe >> ../files/BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.sim & ./BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe 2>&1)