Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements,fileNamePrefix="IDEAS_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements,fileNamePrefix="IDEAS_IDEAS_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.001122/0.001122, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.371/1.371, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7971/0.7971, allocations: 132.2 MB / 422.6 MB, free: 1.793 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 64.8 kB / 0.5019 GB, free: 3.777 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.436/0.4373, allocations: 80.21 MB / 0.5802 GB, free: 4.562 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements): time 0.1804/0.6178, allocations: 160.8 MB / 0.7372 GB, free: 200 kB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.03979/0.6576, allocations: 26.78 MB / 0.7633 GB, free: 5.332 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003197/0.6608, allocations: 71.62 kB / 0.7634 GB, free: 5.262 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002754/0.6637, allocations: 1.018 MB / 0.7644 GB, free: 4.238 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005217/0.6689, allocations: 1.671 MB / 0.766 GB, free: 2.562 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.004352/0.6733, allocations: 1.688 MB / 0.7677 GB, free: 0.8867 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.005888/0.6792, allocations: 4.812 MB / 0.7724 GB, free: 12.06 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005506/0.6847, allocations: 4.268 MB / 0.7765 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003361/0.6881, allocations: 2.012 MB / 0.7785 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003385/0.6915, allocations: 2.434 MB / 0.7809 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001208/0.6927, allocations: 452 kB / 0.7813 GB, free: 2.828 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002635/0.6953, allocations: 1.023 MB / 0.7823 GB, free: 1.805 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.00164/0.697, allocations: 1.176 MB / 0.7835 GB, free: 0.625 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.002801/0.6998, allocations: 2.029 MB / 0.7854 GB, free: 14.58 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.005982/0.7058, allocations: 5.698 MB / 0.791 GB, free: 8.867 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.7058, allocations: 0 / 0.791 GB, free: 8.867 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.834e-06/0.7058, allocations: 0 / 0.791 GB, free: 8.867 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001413/0.706, allocations: 0 / 0.791 GB, free: 8.867 MB / 0.6231 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.009629/0.7156, allocations: 4.482 MB / 0.7954 GB, free: 4.312 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.7157, allocations: 12.03 kB / 0.7954 GB, free: 4.301 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005539/0.7162, allocations: 459 kB / 0.7958 GB, free: 3.84 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01425/0.7305, allocations: 2.772 MB / 0.7985 GB, free: 1.059 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004557/0.7351, allocations: 2.243 MB / 0.8007 GB, free: 14.73 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000188/0.7353, allocations: 242.5 kB / 0.801 GB, free: 14.5 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007561/0.7361, allocations: 312 kB / 0.8013 GB, free: 14.19 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01171/0.7478, allocations: 5.144 MB / 0.8063 GB, free: 8.969 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.985e-05/0.7479, allocations: 0 / 0.8063 GB, free: 8.969 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003803/0.7483, allocations: 135.9 kB / 0.8064 GB, free: 8.836 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.732e-05/0.7483, allocations: 80 kB / 0.8065 GB, free: 8.758 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01538/0.7637, allocations: 6.288 MB / 0.8126 GB, free: 2.457 MB / 0.6387 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.3303/1.094, allocations: 14.55 MB / 0.8268 GB, free: 209.3 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01034/1.104, allocations: 4.514 MB / 0.8313 GB, free: 207.9 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005536/1.11, allocations: 2.453 MB / 0.8336 GB, free: 206.8 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009098/1.111, allocations: 0.6685 MB / 0.8343 GB, free: 206.1 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006162/1.117, allocations: 2.465 MB / 0.8367 GB, free: 204.7 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=270): time 5.39e-06/1.117, allocations: 0 / 0.8367 GB, free: 204.7 MB / 0.6387 GB Notification: Performance of matching and sorting (n=270): time 0.0195/1.137, allocations: 7.531 MB / 0.8441 GB, free: 200.7 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.357e-05/1.137, allocations: 221.7 kB / 0.8443 GB, free: 200.5 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002839/1.14, allocations: 2.389 MB / 0.8466 GB, free: 199.3 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0005351/1.14, allocations: 73.3 kB / 0.8467 GB, free: 199.2 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009357/1.141, allocations: 1.361 MB / 0.848 GB, free: 198.1 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008372/1.142, allocations: 0.8934 MB / 0.8489 GB, free: 197.3 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008621/1.143, allocations: 481.4 kB / 0.8493 GB, free: 197.1 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 4.314e-05/1.143, allocations: 305.1 kB / 0.8496 GB, free: 196.8 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004167/1.147, allocations: 1.95 MB / 0.8515 GB, free: 195.8 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004406/1.152, allocations: 2.266 MB / 0.8537 GB, free: 194 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008399/1.16, allocations: 4.199 MB / 0.8578 GB, free: 189.7 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/1.16, allocations: 4 kB / 0.8578 GB, free: 189.7 MB / 0.6387 GB Notification: Performance of matching and sorting (n=300) (initialization): time 0.0102/1.17, allocations: 4.907 MB / 0.8626 GB, free: 184.7 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 4.042e-05/1.17, allocations: 4.156 kB / 0.8626 GB, free: 184.7 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/1.17, allocations: 8 kB / 0.8627 GB, free: 184.7 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008119/1.171, allocations: 350 kB / 0.863 GB, free: 184.4 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003728/1.175, allocations: 0.7683 MB / 0.8637 GB, free: 183.6 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004496/1.179, allocations: 4.259 MB / 0.8679 GB, free: 179.2 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003975/1.183, allocations: 0.5285 MB / 0.8684 GB, free: 178.7 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004511/1.184, allocations: 103.9 kB / 0.8685 GB, free: 178.6 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.intGai.nextTimeEvent,$whenCondition1,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 (270): * Single equations (assignments): 269 * 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.002037/1.186, allocations: 0.9311 MB / 0.8694 GB, free: 177.6 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007274/1.187, allocations: 272.6 kB / 0.8697 GB, free: 177.4 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01181/1.198, allocations: 5.544 MB / 0.8751 GB, free: 171.8 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.022e-05/1.198, allocations: 32 kB / 0.8751 GB, free: 171.7 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.978e-06/1.198, allocations: 4 kB / 0.8751 GB, free: 171.7 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.994e-05/1.199, allocations: 11.95 kB / 0.8751 GB, free: 171.7 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01763/1.216, allocations: 9.305 MB / 0.8842 GB, free: 162.4 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.107e-05/1.216, allocations: 0 / 0.8842 GB, free: 162.4 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003559/1.22, allocations: 0.7332 MB / 0.8849 GB, free: 161.6 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009636/1.221, allocations: 388.6 kB / 0.8853 GB, free: 161.2 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002754/1.221, allocations: 71.94 kB / 0.8854 GB, free: 161.2 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005097/1.226, allocations: 6.292 MB / 0.8915 GB, free: 154.6 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/1.226, allocations: 0 / 0.8915 GB, free: 154.6 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0157/1.242, allocations: 7.923 MB / 0.8993 GB, free: 146.6 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001652/1.244, allocations: 0.8054 MB / 0.9 GB, free: 145.7 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000593/1.244, allocations: 59.91 kB / 0.9001 GB, free: 145.7 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003097/1.247, allocations: 388.8 kB / 0.9005 GB, free: 145.3 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003811/1.248, allocations: 170 kB / 0.9006 GB, free: 145.1 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002091/1.248, allocations: 99.92 kB / 0.9007 GB, free: 145 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.00185/1.25, allocations: 1.753 MB / 0.9024 GB, free: 143.3 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.5e-07/1.25, allocations: 0 / 0.9024 GB, free: 143.3 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.002547/1.252, allocations: 1.032 MB / 0.9035 GB, free: 142.3 MB / 0.6387 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.01785/1.27, allocations: 9.406 MB / 0.9126 GB, free: 133.2 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.01806/1.288, allocations: 8.093 MB / 0.9205 GB, free: 125.1 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/1.288, allocations: 4.188 kB / 0.9205 GB, free: 125.1 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.005369/1.294, allocations: 2.749 MB / 0.9232 GB, free: 122.3 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003088/1.297, allocations: 0.6637 MB / 0.9239 GB, free: 121.7 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05135/1.348, allocations: 32.06 MB / 0.9552 GB, free: 87.99 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001537/1.35, allocations: 2.451 MB / 0.9576 GB, free: 85.51 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.004014/1.354, allocations: 1.1 MB / 0.9587 GB, free: 84.41 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002028/1.356, allocations: 1.436 MB / 0.9601 GB, free: 82.97 MB / 0.6387 GB Notification: Performance of SimCode: time 2.084e-06/1.356, allocations: 0 / 0.9601 GB, free: 82.97 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1101/1.466, allocations: 69.16 MB / 1.028 GB, free: 14.37 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.97/14.44, allocations: 11.88 kB / 1.028 GB, free: 14.36 MB / 0.6387 GB (rm -f IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; mkfifo IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; head -c 1048576 < IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe >> ../files/IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3600 IDEAS_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements.fmu > IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe 2>&1)