Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: "" <> buildModelFMU(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements,fileNamePrefix="Buildings_9_Buildings_ThermalZones_ReducedOrder_Examples_SimpleRoomThreeElements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements,fileNamePrefix="Buildings_9_Buildings_ThermalZones_ReducedOrder_Examples_SimpleRoomThreeElements",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005026/0.005026, allocations: 101 kB / 15.73 MB, free: 6.055 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.001186/0.001186, allocations: 196.8 kB / 16.68 MB, free: 5.969 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.358/1.358, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.348/2.348, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 61.5 kB / 0.9504 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2762, allocations: 140.4 MB / 1.087 GB, free: 2.047 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements): time 0.1669/0.4431, allocations: 162.1 MB / 1.246 GB, free: 15.32 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.747/1.19, allocations: 27.19 MB / 1.272 GB, free: 3.047 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00328/1.193, allocations: 80.41 kB / 1.272 GB, free: 3.047 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.002671/1.196, allocations: 1.068 MB / 1.273 GB, free: 3.035 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.006253/1.202, allocations: 1.819 MB / 1.275 GB, free: 2.984 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.004956/1.207, allocations: 1.867 MB / 1.277 GB, free: 2.941 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.008252/1.216, allocations: 5.519 MB / 1.282 GB, free: 2.93 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006714/1.222, allocations: 4.655 MB / 1.287 GB, free: 2.418 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005314/1.228, allocations: 2.242 MB / 1.289 GB, free: 2.414 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005692/1.233, allocations: 2.716 MB / 1.292 GB, free: 2.289 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.001644/1.235, allocations: 0.5063 MB / 1.292 GB, free: 2.289 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003603/1.239, allocations: 1.12 MB / 1.293 GB, free: 2.27 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.001735/1.24, allocations: 1.313 MB / 1.295 GB, free: 2.105 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.003968/1.244, allocations: 2.297 MB / 1.297 GB, free: 1.457 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.009918/1.254, allocations: 6.543 MB / 1.303 GB, free: 0.6055 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/1.254, allocations: 1.094 kB / 1.303 GB, free: 0.6055 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.294e-06/1.254, allocations: 0.75 kB / 1.303 GB, free: 0.6055 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0002481/1.255, allocations: 0 / 1.303 GB, free: 0.6055 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 907 * Number of variables: 907 Notification: Performance of Generate backend data structure: time 0.01812/1.273, allocations: 5.011 MB / 1.308 GB, free: 14.62 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 7.595e-05/1.273, allocations: 9.312 kB / 1.308 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002165/1.275, allocations: 498.5 kB / 1.309 GB, free: 14.56 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01506/1.29, allocations: 2.817 MB / 1.311 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006883/1.297, allocations: 2.504 MB / 1.314 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002863/1.297, allocations: 269 kB / 1.314 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001546/1.299, allocations: 344 kB / 1.314 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01771/1.317, allocations: 5.582 MB / 1.32 GB, free: 13.32 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001519/1.317, allocations: 3.188 kB / 1.32 GB, free: 13.32 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001273/1.318, allocations: 150.5 kB / 1.32 GB, free: 13.31 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.911e-05/1.318, allocations: 86.03 kB / 1.32 GB, free: 13.31 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01846/1.337, allocations: 6.707 MB / 1.327 GB, free: 12.19 MB / 1.029 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.03634/1.373, allocations: 16.07 MB / 1.342 GB, free: 2.383 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01045/1.384, allocations: 4.389 MB / 1.347 GB, free: 176 kB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006188/1.39, allocations: 2.781 MB / 1.349 GB, free: 14.77 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001104/1.391, allocations: 0.679 MB / 1.35 GB, free: 14.05 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007072/1.398, allocations: 2.819 MB / 1.353 GB, free: 12.43 MB / 1.045 GB Notification: Performance of pre-optimization done (n=309): time 8.115e-06/1.398, allocations: 4 kB / 1.353 GB, free: 12.43 MB / 1.045 GB Notification: Performance of matching and sorting (n=309): time 0.02726/1.425, allocations: 8.836 MB / 1.361 GB, free: 7.84 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001338/1.426, allocations: 211 kB / 1.362 GB, free: 7.617 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005658/1.431, allocations: 2.632 MB / 1.364 GB, free: 6.32 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.000904/1.432, allocations: 85.17 kB / 1.364 GB, free: 6.246 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.001731/1.434, allocations: 1.494 MB / 1.366 GB, free: 4.953 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.002066/1.436, allocations: 1.009 MB / 1.367 GB, free: 4.086 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002473/1.438, allocations: 0.5256 MB / 1.367 GB, free: 3.793 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001173/1.439, allocations: 305.1 kB / 1.368 GB, free: 3.492 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005634/1.444, allocations: 2.171 MB / 1.37 GB, free: 1.836 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005868/1.45, allocations: 2.515 MB / 1.372 GB, free: 15.24 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01117/1.461, allocations: 4.608 MB / 1.377 GB, free: 10.57 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/1.461, allocations: 4 kB / 1.377 GB, free: 10.56 MB / 1.061 GB Notification: Performance of matching and sorting (n=347) (initialization): time 0.01463/1.476, allocations: 5.564 MB / 1.382 GB, free: 5 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.614e-05/1.476, allocations: 12.16 kB / 1.382 GB, free: 4.988 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.116e-05/1.476, allocations: 4 kB / 1.382 GB, free: 4.984 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001424/1.477, allocations: 0.5413 MB / 1.383 GB, free: 4.441 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004412/1.482, allocations: 0.8235 MB / 1.383 GB, free: 3.645 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008836/1.491, allocations: 5.725 MB / 1.389 GB, free: 13.8 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005382/1.496, allocations: 0.584 MB / 1.39 GB, free: 13.21 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007779/1.497, allocations: 111.9 kB / 1.39 GB, free: 13.11 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.intGai.nextTimeEvent,$whenCondition1,intGai.nextTimeEventScaled,$PRE.intGai.nextTimeEventScaled,intGai.nextTimeEvent,HDirTil[2].incAng.decAng.tNext,$PRE.HDirTil[2].incAng.decAng.tNext,HDirTil[1].incAng.decAng.tNext,$PRE.HDirTil[1].incAng.decAng.tNext,HDifTil[2].incAng.decAng.tNext,$PRE.HDifTil[2].incAng.decAng.tNext,HDifTil[1].incAng.decAng.tNext,$PRE.HDifTil[1].incAng.decAng.tNext,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (302): * Single equations (assignments): 301 * 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 {(4,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003681/1.501, allocations: 1.028 MB / 1.391 GB, free: 12.1 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001402/1.502, allocations: 300.2 kB / 1.391 GB, free: 11.8 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01783/1.52, allocations: 6.252 MB / 1.397 GB, free: 5.512 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.131e-05/1.52, allocations: 31.94 kB / 1.397 GB, free: 5.48 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.19e-05/1.52, allocations: 11.94 kB / 1.397 GB, free: 5.469 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-05/1.52, allocations: 15.94 kB / 1.397 GB, free: 5.453 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009219/1.529, allocations: 4.086 MB / 1.401 GB, free: 1.383 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.551e-05/1.529, allocations: 0 / 1.401 GB, free: 1.383 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004462/1.534, allocations: 0.7728 MB / 1.402 GB, free: 0.6367 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00162/1.536, allocations: 0.5297 MB / 1.402 GB, free: 100 kB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007358/1.536, allocations: 87.91 kB / 1.402 GB, free: 12 kB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009251/1.546, allocations: 7.545 MB / 1.41 GB, free: 8.191 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/1.546, allocations: 0 / 1.41 GB, free: 8.191 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02182/1.567, allocations: 8.897 MB / 1.419 GB, free: 15.24 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003347/1.571, allocations: 0.9026 MB / 1.419 GB, free: 14.32 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00153/1.572, allocations: 83.83 kB / 1.419 GB, free: 14.23 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004484/1.577, allocations: 417.3 kB / 1.42 GB, free: 13.83 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007989/1.578, allocations: 230.2 kB / 1.42 GB, free: 13.6 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004942/1.578, allocations: 107.9 kB / 1.42 GB, free: 13.5 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.004171/1.582, allocations: 1.923 MB / 1.422 GB, free: 11.57 MB / 1.107 GB Notification: Performance of sort global known variables: time 6.51e-07/1.582, allocations: 4 kB / 1.422 GB, free: 11.56 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.005107/1.588, allocations: 1.157 MB / 1.423 GB, free: 10.4 MB / 1.107 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (thermalZoneThreeElements.volAir.dynBal.U,thermalZoneThreeElements.volAir.dynBal.m,thermalZoneThreeElements.extWallRC.thermCapExt[1].T,thermalZoneThreeElements.intWallRC.thermCapInt[1].T,thermalZoneThreeElements.floorRC.thermCapExt[1].T) * Number of discrete variables: 21 ($whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDifTil[1].incAng.decAng.tNext,HDifTil[2].incAng.decAng.tNext,HDirTil[1].incAng.decAng.tNext,HDirTil[2].incAng.decAng.tNext,intGai.nextTimeEvent,intGai.nextTimeEventScaled) * Number of discrete states: 11 (intGai.nextTimeEventScaled,intGai.nextTimeEvent,HDirTil[2].incAng.decAng.tNext,HDirTil[1].incAng.decAng.tNext,HDifTil[2].incAng.decAng.tNext,HDifTil[1].incAng.decAng.tNext,weaDat.decAng.tNext,weaDat.eqnTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.tNext,weaDat.locTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (285): * Single equations (assignments): 271 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * 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 {(4,36,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.02393/1.611, allocations: 10.41 MB / 1.433 GB, free: 260 kB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.01369/1.625, allocations: 5.387 MB / 1.439 GB, free: 10.87 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/1.625, allocations: 0 / 1.439 GB, free: 10.87 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.007783/1.633, allocations: 3.119 MB / 1.442 GB, free: 7.77 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005383/1.638, allocations: 0.7399 MB / 1.442 GB, free: 7.059 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07512/1.714, allocations: 32.35 MB / 1.474 GB, free: 6.566 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003342/1.717, allocations: 2.629 MB / 1.477 GB, free: 3.914 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.004842/1.722, allocations: 1.184 MB / 1.478 GB, free: 2.73 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003469/1.725, allocations: 1.6 MB / 1.479 GB, free: 1.129 MB / 1.154 GB Notification: Performance of SimCode: time 6.22e-07/1.725, allocations: 0 / 1.479 GB, free: 1.129 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1355/1.861, allocations: 79.37 MB / 1.557 GB, free: 2.293 MB / 1.232 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.42/19.29, allocations: 7.688 kB / 1.557 GB, free: 2.285 MB / 1.232 GB (rm -f Buildings_9_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe ; mkfifo Buildings_9_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe ; head -c 1048576 < Buildings_9_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe >> ../files/Buildings_9_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements_res.mat --tempDir=temp_Buildings_9_Buildings_ThermalZones_ReducedOrder_Examples_SimpleRoomThreeElements_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_ThermalZones_ReducedOrder_Examples_SimpleRoomThreeElements.fmu > Buildings_9_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe 2>&1)