Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.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.SimpleRoomFourElements,fileNamePrefix="IDEAS_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomFourElements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements,fileNamePrefix="IDEAS_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomFourElements",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.001323/0.001323, allocations: 108 kB / 15.6 MB, free: 132 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.001326/0.001326, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.39/1.39, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.78/0.78, allocations: 132.2 MB / 422.6 MB, free: 1.789 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 64.27 kB / 0.5019 GB, free: 3.805 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4902/0.4915, allocations: 80.2 MB / 0.5802 GB, free: 4.57 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements): time 0.2023/0.6939, allocations: 163.1 MB / 0.7395 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.03883/0.7328, allocations: 27.46 MB / 0.7663 GB, free: 2.32 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004664/0.7375, allocations: 87.56 kB / 0.7664 GB, free: 2.234 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.003467/0.741, allocations: 1.126 MB / 0.7675 GB, free: 1.102 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.006605/0.7476, allocations: 1.892 MB / 0.7693 GB, free: 15.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.005459/0.7531, allocations: 1.97 MB / 0.7712 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.008925/0.762, allocations: 5.825 MB / 0.7769 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00686/0.7689, allocations: 4.881 MB / 0.7817 GB, free: 2.445 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004735/0.7737, allocations: 2.311 MB / 0.7839 GB, free: 136 kB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004624/0.7784, allocations: 2.806 MB / 0.7867 GB, free: 13.32 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001979/0.7804, allocations: 0.5234 MB / 0.7872 GB, free: 12.79 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003964/0.7843, allocations: 1.109 MB / 0.7883 GB, free: 11.68 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001719/0.7861, allocations: 1.367 MB / 0.7896 GB, free: 10.31 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.003456/0.7895, allocations: 2.391 MB / 0.7919 GB, free: 7.906 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.008075/0.7976, allocations: 6.645 MB / 0.7984 GB, free: 1.242 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 6.443e-06/0.7977, allocations: 0 / 0.7984 GB, free: 1.242 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.904e-06/0.7977, allocations: 0 / 0.7984 GB, free: 1.242 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.000185/0.7979, allocations: 0 / 0.7984 GB, free: 1.242 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: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.01134/0.8092, allocations: 5.098 MB / 0.8034 GB, free: 12.07 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.8093, allocations: 12.03 kB / 0.8034 GB, free: 12.05 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006831/0.81, allocations: 0.522 MB / 0.8039 GB, free: 11.52 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01398/0.824, allocations: 2.826 MB / 0.8067 GB, free: 8.688 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005223/0.8292, allocations: 2.51 MB / 0.8091 GB, free: 6.105 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001938/0.8294, allocations: 279.5 kB / 0.8094 GB, free: 5.832 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008371/0.8303, allocations: 368 kB / 0.8098 GB, free: 5.473 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.287/1.117, allocations: 5.727 MB / 0.8154 GB, free: 213 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000107/1.117, allocations: 1.906 kB / 0.8154 GB, free: 213 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005131/1.118, allocations: 159.2 kB / 0.8155 GB, free: 213 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001316/1.118, allocations: 91.12 kB / 0.8156 GB, free: 213 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01815/1.136, allocations: 6.854 MB / 0.8223 GB, free: 211.4 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.03045/1.167, allocations: 17.41 MB / 0.8393 GB, free: 200.5 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01046/1.177, allocations: 4.489 MB / 0.8437 GB, free: 198.3 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005589/1.183, allocations: 2.938 MB / 0.8465 GB, free: 196.8 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008241/1.184, allocations: 0.6741 MB / 0.8472 GB, free: 196.1 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005625/1.189, allocations: 2.718 MB / 0.8499 GB, free: 194.5 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=315): time 6.242e-06/1.189, allocations: 3.75 kB / 0.8499 GB, free: 194.5 MB / 0.6387 GB Notification: Performance of matching and sorting (n=315): time 0.02337/1.213, allocations: 9.693 MB / 0.8593 GB, free: 187.2 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.352e-05/1.213, allocations: 218.4 kB / 0.8595 GB, free: 186.9 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002972/1.216, allocations: 2.654 MB / 0.8621 GB, free: 184.3 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0006324/1.217, allocations: 81.7 kB / 0.8622 GB, free: 184.2 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.00108/1.218, allocations: 1.549 MB / 0.8637 GB, free: 182.6 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.001067/1.219, allocations: 1.046 MB / 0.8647 GB, free: 181.6 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008441/1.22, allocations: 0.525 MB / 0.8652 GB, free: 181 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 4.291e-05/1.22, allocations: 305.1 kB / 0.8655 GB, free: 180.7 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004298/1.224, allocations: 2.16 MB / 0.8676 GB, free: 178.6 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004561/1.228, allocations: 2.525 MB / 0.8701 GB, free: 176 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009165/1.238, allocations: 4.684 MB / 0.8747 GB, free: 171.2 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.211e-05/1.238, allocations: 0 / 0.8747 GB, free: 171.2 MB / 0.6387 GB Notification: Performance of matching and sorting (n=347) (initialization): time 0.01171/1.249, allocations: 5.756 MB / 0.8803 GB, free: 165.4 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/1.249, allocations: 8 kB / 0.8803 GB, free: 165.4 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/1.249, allocations: 4 kB / 0.8803 GB, free: 165.4 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001608/1.251, allocations: 0.8278 MB / 0.8811 GB, free: 164.6 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004133/1.255, allocations: 0.8073 MB / 0.8819 GB, free: 163.8 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008445/1.264, allocations: 7.575 MB / 0.8893 GB, free: 156.1 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004323/1.268, allocations: 0.5555 MB / 0.8899 GB, free: 155.5 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000649/1.269, allocations: 117.4 kB / 0.89 GB, free: 155.4 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 (283): * Single equations (assignments): 282 * 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 {(5,60,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003022/1.272, allocations: 1.02 MB / 0.891 GB, free: 154.3 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00104/1.273, allocations: 312.2 kB / 0.8913 GB, free: 154 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0128/1.286, allocations: 6.38 MB / 0.8975 GB, free: 147.6 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.999e-05/1.286, allocations: 32 kB / 0.8975 GB, free: 147.6 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/1.286, allocations: 16 kB / 0.8975 GB, free: 147.5 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.092e-05/1.286, allocations: 19.88 kB / 0.8976 GB, free: 147.5 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01883/1.305, allocations: 10.73 MB / 0.908 GB, free: 136.8 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.028e-05/1.305, allocations: 4 kB / 0.908 GB, free: 136.7 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003837/1.308, allocations: 0.7644 MB / 0.9088 GB, free: 136 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001669/1.31, allocations: 0.7496 MB / 0.9095 GB, free: 135.2 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003986/1.311, allocations: 79.94 kB / 0.9096 GB, free: 135.1 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009026/1.32, allocations: 10.67 MB / 0.92 GB, free: 124 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/1.32, allocations: 0 / 0.92 GB, free: 124 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01796/1.338, allocations: 9.064 MB / 0.9289 GB, free: 114.9 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002107/1.34, allocations: 0.9024 MB / 0.9297 GB, free: 114 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006453/1.34, allocations: 72.39 kB / 0.9298 GB, free: 113.9 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003243/1.344, allocations: 399.4 kB / 0.9302 GB, free: 113.5 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005297/1.344, allocations: 214.3 kB / 0.9304 GB, free: 113.3 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002387/1.344, allocations: 107.9 kB / 0.9305 GB, free: 113.2 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.002334/1.347, allocations: 1.928 MB / 0.9324 GB, free: 111.2 MB / 0.6387 GB Notification: Performance of sort global known variables: time 4.71e-07/1.347, allocations: 4 kB / 0.9324 GB, free: 111.2 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.00313/1.35, allocations: 1.21 MB / 0.9336 GB, free: 110.1 MB / 0.6387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (thermalZoneFourElements.volAir.dynBal.U,thermalZoneFourElements.volAir.dynBal.m,thermalZoneFourElements.extWallRC.thermCapExt[1].T,thermalZoneFourElements.intWallRC.thermCapInt[1].T,thermalZoneFourElements.floorRC.thermCapExt[1].T,thermalZoneFourElements.roofRC.thermCapExt[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 (270): * Single equations (assignments): 262 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,49,100.0%), (1,3,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.01949/1.369, allocations: 10.59 MB / 0.9439 GB, free: 99.85 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.02111/1.391, allocations: 9.288 MB / 0.953 GB, free: 90.55 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/1.391, allocations: 8.125 kB / 0.953 GB, free: 90.55 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.006704/1.397, allocations: 3.327 MB / 0.9562 GB, free: 87.18 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003883/1.401, allocations: 0.7604 MB / 0.957 GB, free: 86.47 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06152/1.463, allocations: 37.41 MB / 0.9935 GB, free: 47.41 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002027/1.465, allocations: 2.691 MB / 0.9961 GB, free: 44.7 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.004463/1.469, allocations: 1.165 MB / 0.9973 GB, free: 43.53 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002319/1.472, allocations: 1.639 MB / 0.9989 GB, free: 41.89 MB / 0.6387 GB Notification: Performance of SimCode: time 1.593e-06/1.472, allocations: 0 / 0.9989 GB, free: 41.89 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3771/1.849, allocations: 80.82 MB / 1.078 GB, free: 229 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.52/15.37, allocations: 2.281 kB / 1.078 GB, free: 229 MB / 0.67 GB (rm -f IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe ; mkfifo IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe ; head -c 1048576 < IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe >> ../files/IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements_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_SimpleRoomFourElements.fmu > IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe 2>&1)