Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements,fileNamePrefix="Buildings_latest_Buildings_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements,fileNamePrefix="Buildings_latest_Buildings_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements",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.003883/0.003883, allocations: 102.8 kB / 15.74 MB, free: 6.5 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.00117/0.00117, allocations: 195.5 kB / 16.68 MB, free: 6.375 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.615/2.615, allocations: 482.6 MB / 0.755 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002581/0.002581, allocations: 71.88 kB / 1.083 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2909/0.2935, allocations: 162.3 MB / 1.242 GB, free: 9.852 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements): time 0.7198/1.013, allocations: 162.7 MB / 1.401 GB, free: 12.09 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.0366/1.05, allocations: 27.12 MB / 1.427 GB, free: 5.875 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001901/1.052, allocations: 78.5 kB / 1.427 GB, free: 5.848 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.001799/1.054, allocations: 1.076 MB / 1.428 GB, free: 5.07 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.003618/1.057, allocations: 1.861 MB / 1.43 GB, free: 3.648 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.003382/1.061, allocations: 1.785 MB / 1.432 GB, free: 2.23 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.004933/1.066, allocations: 5.553 MB / 1.437 GB, free: 14.86 MB / 1.139 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00548/1.071, allocations: 4.34 MB / 1.442 GB, free: 10.55 MB / 1.139 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004086/1.075, allocations: 2.185 MB / 1.444 GB, free: 8.355 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004517/1.08, allocations: 2.631 MB / 1.446 GB, free: 5.715 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.000958/1.081, allocations: 484 kB / 1.447 GB, free: 5.242 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002968/1.084, allocations: 1.085 MB / 1.448 GB, free: 4.156 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.001232/1.085, allocations: 1.235 MB / 1.449 GB, free: 2.918 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.002106/1.087, allocations: 2.228 MB / 1.451 GB, free: 0.6797 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.00605/1.093, allocations: 6.295 MB / 1.457 GB, free: 10.36 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/1.093, allocations: 0 / 1.457 GB, free: 10.36 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.122e-06/1.093, allocations: 0 / 1.457 GB, free: 10.36 MB / 1.154 GB Notification: Performance of Transformations before backend: time 4.044e-05/1.093, allocations: 0 / 1.457 GB, free: 10.36 MB / 1.154 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.008378/1.102, allocations: 4.948 MB / 1.462 GB, free: 5.324 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/1.102, allocations: 15.97 kB / 1.462 GB, free: 5.309 MB / 1.154 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005608/1.102, allocations: 467.9 kB / 1.463 GB, free: 4.84 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01698/1.119, allocations: 2.818 MB / 1.465 GB, free: 2.016 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005656/1.125, allocations: 2.418 MB / 1.468 GB, free: 15.52 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001934/1.125, allocations: 250.7 kB / 1.468 GB, free: 15.28 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004828/1.126, allocations: 324 kB / 1.468 GB, free: 14.96 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009937/1.136, allocations: 5.342 MB / 1.473 GB, free: 9.543 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.738e-05/1.136, allocations: 0 / 1.473 GB, free: 9.543 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003505/1.136, allocations: 136 kB / 1.474 GB, free: 9.41 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.784e-05/1.136, allocations: 87.94 kB / 1.474 GB, free: 9.324 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01464/1.151, allocations: 6.472 MB / 1.48 GB, free: 2.84 MB / 1.17 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.02779/1.178, allocations: 15.47 MB / 1.495 GB, free: 2.723 MB / 1.186 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0101/1.189, allocations: 4.858 MB / 1.5 GB, free: 13.86 MB / 1.201 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005675/1.194, allocations: 2.572 MB / 1.502 GB, free: 11.28 MB / 1.201 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001357/1.196, allocations: 0.6738 MB / 1.503 GB, free: 10.48 MB / 1.201 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008997/1.205, allocations: 2.715 MB / 1.506 GB, free: 7.723 MB / 1.201 GB Notification: Performance of pre-optimization done (n=291): time 7.073e-06/1.205, allocations: 0 / 1.506 GB, free: 7.723 MB / 1.201 GB Notification: Performance of matching and sorting (n=291): time 0.02003/1.225, allocations: 8.024 MB / 1.514 GB, free: 15.59 MB / 1.217 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000129/1.225, allocations: 210.2 kB / 1.514 GB, free: 15.34 MB / 1.217 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003119/1.228, allocations: 2.532 MB / 1.516 GB, free: 12.78 MB / 1.217 GB Notification: Performance of collectPreVariables (initialization): time 0.0002106/1.228, allocations: 77.7 kB / 1.516 GB, free: 12.7 MB / 1.217 GB Notification: Performance of collectInitialEqns (initialization): time 0.00118/1.229, allocations: 1.423 MB / 1.518 GB, free: 11.26 MB / 1.217 GB Notification: Performance of collectInitialBindings (initialization): time 0.000887/1.23, allocations: 0.9993 MB / 1.519 GB, free: 10.25 MB / 1.217 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009384/1.231, allocations: 0.5012 MB / 1.519 GB, free: 9.746 MB / 1.217 GB Notification: Performance of setup shared object (initialization): time 0.0001205/1.231, allocations: 301.2 kB / 1.519 GB, free: 9.449 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004652/1.236, allocations: 2.089 MB / 1.521 GB, free: 7.355 MB / 1.217 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005251/1.241, allocations: 2.411 MB / 1.524 GB, free: 4.859 MB / 1.217 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01585/1.257, allocations: 4.426 MB / 1.528 GB, free: 356 kB / 1.217 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/1.257, allocations: 4 kB / 1.528 GB, free: 352 kB / 1.217 GB Notification: Performance of matching and sorting (n=328) (initialization): time 0.01126/1.268, allocations: 5.226 MB / 1.533 GB, free: 11.07 MB / 1.232 GB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/1.268, allocations: 4 kB / 1.533 GB, free: 11.06 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.608e-05/1.269, allocations: 4 kB / 1.533 GB, free: 11.06 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007975/1.269, allocations: 357.3 kB / 1.534 GB, free: 10.71 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003599/1.273, allocations: 0.8112 MB / 1.534 GB, free: 9.895 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005351/1.278, allocations: 4.217 MB / 1.538 GB, free: 5.543 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003122/1.281, allocations: 0.5667 MB / 1.539 GB, free: 4.977 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002755/1.282, allocations: 119.9 kB / 1.539 GB, free: 4.859 MB / 1.232 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 (298): * Single equations (assignments): 297 * 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.001489/1.283, allocations: 0.9774 MB / 1.54 GB, free: 3.871 MB / 1.232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000548/1.284, allocations: 310 kB / 1.54 GB, free: 3.566 MB / 1.232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01837/1.302, allocations: 5.901 MB / 1.546 GB, free: 13.61 MB / 1.248 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.019e-05/1.302, allocations: 28 kB / 1.546 GB, free: 13.58 MB / 1.248 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.725e-05/1.302, allocations: 11.94 kB / 1.546 GB, free: 13.57 MB / 1.248 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.953e-05/1.302, allocations: 15.94 kB / 1.546 GB, free: 13.55 MB / 1.248 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005576/1.308, allocations: 3.881 MB / 1.55 GB, free: 9.617 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.718e-06/1.308, allocations: 0 / 1.55 GB, free: 9.617 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003421/1.311, allocations: 0.7489 MB / 1.551 GB, free: 8.867 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009455/1.312, allocations: 382.5 kB / 1.551 GB, free: 8.484 MB / 1.248 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002596/1.313, allocations: 87.92 kB / 1.551 GB, free: 8.398 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006573/1.319, allocations: 6.297 MB / 1.557 GB, free: 1.797 MB / 1.248 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/1.319, allocations: 11.86 kB / 1.557 GB, free: 1.785 MB / 1.248 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01687/1.336, allocations: 8.434 MB / 1.566 GB, free: 9.266 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001948/1.338, allocations: 0.8771 MB / 1.566 GB, free: 8.367 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00071/1.339, allocations: 71.88 kB / 1.567 GB, free: 8.297 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004784/1.343, allocations: 419.4 kB / 1.567 GB, free: 7.887 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006599/1.344, allocations: 210.1 kB / 1.567 GB, free: 7.68 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004404/1.345, allocations: 111.9 kB / 1.567 GB, free: 7.57 MB / 1.264 GB Notification: Performance of sorting global known variables: time 0.00379/1.348, allocations: 1.846 MB / 1.569 GB, free: 5.715 MB / 1.264 GB Notification: Performance of sort global known variables: time 2.9e-07/1.348, allocations: 0 / 1.569 GB, free: 5.715 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.003674/1.352, allocations: 1.126 MB / 1.57 GB, free: 4.586 MB / 1.264 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: 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 (279): * Single equations (assignments): 265 * 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 {(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.02036/1.372, allocations: 9.955 MB / 1.58 GB, free: 10.88 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.01062/1.383, allocations: 5.109 MB / 1.585 GB, free: 5.73 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/1.383, allocations: 0.6875 kB / 1.585 GB, free: 5.73 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.008688/1.392, allocations: 2.926 MB / 1.588 GB, free: 2.773 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004305/1.396, allocations: 0.7299 MB / 1.588 GB, free: 2.078 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06108/1.457, allocations: 30.62 MB / 1.618 GB, free: 3.121 MB / 1.311 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002355/1.46, allocations: 2.534 MB / 1.621 GB, free: 0.5586 MB / 1.311 GB Notification: Performance of simCode: alias equations: time 0.003246/1.463, allocations: 1.167 MB / 1.622 GB, free: 15.39 MB / 1.326 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002342/1.465, allocations: 1.515 MB / 1.623 GB, free: 13.87 MB / 1.326 GB Notification: Performance of SimCode: time 5.3e-07/1.465, allocations: 0 / 1.623 GB, free: 13.87 MB / 1.326 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.18/2.645, allocations: 75.27 MB / 1.697 GB, free: 3.168 MB / 1.389 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.17/19.82, allocations: 3.984 kB / 1.697 GB, free: 3.164 MB / 1.389 GB (rm -f Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; mkfifo Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; head -c 1048576 < Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe >> ../files/Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements_res.mat --tempDir=temp_Buildings_latest_Buildings_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements.fmu > Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe 2>&1)