Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/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.SimpleRoomThreeElements,fileNamePrefix="IDEAS_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomThreeElements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements,fileNamePrefix="IDEAS_IDEAS_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.002078/0.002078, 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.002746/0.002746, allocations: 193.3 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.425/1.425, 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.7587/0.7587, allocations: 132.2 MB / 422.6 MB, free: 1.816 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 68.92 kB / 0.5019 GB, free: 8.676 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.171/0.1722, allocations: 80.2 MB / 0.5802 GB, free: 8.691 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements): time 0.4935/0.6658, allocations: 161.7 MB / 0.7381 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.03472/0.7005, allocations: 27.05 MB / 0.7645 GB, free: 5.855 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003886/0.7044, allocations: 75.62 kB / 0.7646 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002537/0.707, allocations: 1.064 MB / 0.7657 GB, free: 4.711 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.005241/0.7123, allocations: 1.757 MB / 0.7674 GB, free: 2.949 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004548/0.7169, allocations: 1.789 MB / 0.7691 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00636/0.7232, allocations: 5.19 MB / 0.7742 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005422/0.7287, allocations: 4.508 MB / 0.7786 GB, free: 7.414 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003501/0.7322, allocations: 2.123 MB / 0.7807 GB, free: 5.285 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003772/0.736, allocations: 2.599 MB / 0.7832 GB, free: 2.68 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0009564/0.737, allocations: 484 kB / 0.7837 GB, free: 2.207 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002495/0.7395, allocations: 1.062 MB / 0.7847 GB, free: 1.145 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001128/0.7406, allocations: 1.242 MB / 0.7859 GB, free: 15.9 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.002587/0.7432, allocations: 2.185 MB / 0.788 GB, free: 13.7 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.006709/0.7499, allocations: 6.103 MB / 0.794 GB, free: 7.582 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.75, allocations: 0 / 0.794 GB, free: 7.582 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.024e-06/0.75, allocations: 4 kB / 0.794 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001329/0.7501, allocations: 0 / 0.794 GB, free: 7.578 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 882 * Number of variables: 882 Notification: Performance of Generate backend data structure: time 0.01073/0.7608, allocations: 4.747 MB / 0.7986 GB, free: 2.766 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.7609, allocations: 12.03 kB / 0.7987 GB, free: 2.754 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005906/0.7615, allocations: 484.5 kB / 0.7991 GB, free: 2.27 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01388/0.7754, allocations: 2.795 MB / 0.8018 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004972/0.7804, allocations: 2.354 MB / 0.8041 GB, free: 13.04 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001853/0.7806, allocations: 254.9 kB / 0.8044 GB, free: 12.79 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008167/0.7814, allocations: 340 kB / 0.8047 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01255/0.794, allocations: 5.389 MB / 0.81 GB, free: 6.992 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000104/0.7941, allocations: 7.938 kB / 0.81 GB, free: 6.984 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006104/0.7948, allocations: 139.9 kB / 0.8101 GB, free: 6.848 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.78e-05/0.7949, allocations: 84 kB / 0.8102 GB, free: 6.766 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01596/0.8108, allocations: 6.524 MB / 0.8166 GB, free: 236 kB / 0.6231 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.03043/0.8413, allocations: 15.74 MB / 0.8319 GB, free: 15.87 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008918/0.8503, allocations: 4.083 MB / 0.8359 GB, free: 11.77 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005402/0.8557, allocations: 2.659 MB / 0.8385 GB, free: 9.102 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009404/0.8566, allocations: 0.6736 MB / 0.8392 GB, free: 8.301 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005817/0.8625, allocations: 2.573 MB / 0.8417 GB, free: 5.688 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=288): time 6.382e-06/0.8625, allocations: 0 / 0.8417 GB, free: 5.688 MB / 0.6544 GB Notification: Performance of matching and sorting (n=288): time 0.02226/0.8848, allocations: 8.386 MB / 0.8499 GB, free: 13.18 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.8849, allocations: 214.2 kB / 0.8501 GB, free: 12.93 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003898/0.8888, allocations: 2.513 MB / 0.8525 GB, free: 10.39 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0004255/0.8893, allocations: 73.7 kB / 0.8526 GB, free: 10.32 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.001459/0.8907, allocations: 1.443 MB / 0.854 GB, free: 8.855 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.001319/0.8921, allocations: 0.9548 MB / 0.855 GB, free: 7.887 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001299/0.8934, allocations: 0.493 MB / 0.8554 GB, free: 7.387 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.8935, allocations: 301.1 kB / 0.8557 GB, free: 7.09 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004837/0.8984, allocations: 2.042 MB / 0.8577 GB, free: 5.043 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005117/0.9035, allocations: 2.363 MB / 0.86 GB, free: 2.594 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3069/1.21, allocations: 4.403 MB / 0.8643 GB, free: 217.6 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.474e-05/1.21, allocations: 6.781 kB / 0.8643 GB, free: 217.6 MB / 0.67 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.01153/1.222, allocations: 5.272 MB / 0.8695 GB, free: 216.8 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 3.477e-05/1.222, allocations: 5.844 kB / 0.8695 GB, free: 216.8 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.687e-05/1.222, allocations: 2.875 kB / 0.8695 GB, free: 216.8 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001287/1.223, allocations: 0.557 MB / 0.87 GB, free: 216.6 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003782/1.227, allocations: 0.782 MB / 0.8708 GB, free: 216.6 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006499/1.234, allocations: 5.726 MB / 0.8764 GB, free: 213.3 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003636/1.237, allocations: 0.5421 MB / 0.8769 GB, free: 213.3 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002889/1.238, allocations: 110.3 kB / 0.877 GB, free: 213.2 MB / 0.67 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 (274): * Single equations (assignments): 273 * 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.001697/1.239, allocations: 0.9761 MB / 0.878 GB, free: 212.8 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006207/1.24, allocations: 283.3 kB / 0.8782 GB, free: 212.7 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01195/1.252, allocations: 5.89 MB / 0.884 GB, free: 210.8 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.146e-05/1.252, allocations: 31.62 kB / 0.884 GB, free: 210.8 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/1.252, allocations: 13.28 kB / 0.884 GB, free: 210.8 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-05/1.252, allocations: 14.58 kB / 0.8841 GB, free: 210.8 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0174/1.269, allocations: 9.892 MB / 0.8937 GB, free: 207.3 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/1.269, allocations: 1.406 kB / 0.8937 GB, free: 207.3 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003777/1.273, allocations: 0.7574 MB / 0.8945 GB, free: 207.2 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001355/1.275, allocations: 0.5344 MB / 0.895 GB, free: 207.1 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002707/1.275, allocations: 81.33 kB / 0.8951 GB, free: 207 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007221/1.282, allocations: 7.544 MB / 0.9024 GB, free: 201.6 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/1.282, allocations: 5.719 kB / 0.9024 GB, free: 201.6 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01779/1.3, allocations: 8.391 MB / 0.9106 GB, free: 198.6 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001727/1.302, allocations: 0.8382 MB / 0.9114 GB, free: 198.2 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005046/1.302, allocations: 64.25 kB / 0.9115 GB, free: 198.1 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003029/1.305, allocations: 404.5 kB / 0.9119 GB, free: 198.1 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005319/1.306, allocations: 184.1 kB / 0.9121 GB, free: 198 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002574/1.306, allocations: 104.5 kB / 0.9122 GB, free: 198 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002407/1.308, allocations: 1.833 MB / 0.914 GB, free: 197.4 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.4e-07/1.308, allocations: 0 / 0.914 GB, free: 197.4 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.002865/1.311, allocations: 1.098 MB / 0.915 GB, free: 197.1 MB / 0.67 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: 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 (260): * Single equations (assignments): 253 * 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 {(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.019/1.33, allocations: 9.9 MB / 0.9247 GB, free: 193.5 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01766/1.348, allocations: 8.598 MB / 0.9331 GB, free: 191.8 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/1.348, allocations: 0 / 0.9331 GB, free: 191.8 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.005193/1.353, allocations: 2.942 MB / 0.936 GB, free: 190 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003087/1.356, allocations: 0.7235 MB / 0.9367 GB, free: 189.5 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04593/1.402, allocations: 34.37 MB / 0.9702 GB, free: 154.1 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001544/1.404, allocations: 2.554 MB / 0.9727 GB, free: 151.5 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.003658/1.408, allocations: 1.128 MB / 0.9738 GB, free: 150.4 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001836/1.409, allocations: 1.514 MB / 0.9753 GB, free: 148.9 MB / 0.67 GB Notification: Performance of SimCode: time 1.082e-06/1.409, allocations: 0 / 0.9753 GB, free: 148.9 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09744/1.507, allocations: 74.22 MB / 1.048 GB, free: 75.3 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/14.93, allocations: 6.75 kB / 1.048 GB, free: 75.29 MB / 0.67 GB (rm -f IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe ; mkfifo IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe ; head -c 1048576 < IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe >> ../files/IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements_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_SimpleRoomThreeElements.fmu > IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe 2>&1)