Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements,fileNamePrefix="IDEAS_dev_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomThreeElements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements,fileNamePrefix="IDEAS_dev_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.006557/0.006557, allocations: 100.8 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.001662/0.001662, allocations: 195.2 kB / 16.67 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8491/0.8491, allocations: 135.6 MB / 426.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 66.39 kB / 0.5857 GB, free: 21.36 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1668, allocations: 81.02 MB / 0.6648 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements): time 0.5662/0.733, allocations: 161.7 MB / 0.8228 GB, free: 4.07 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03854/0.7716, allocations: 27.05 MB / 0.8492 GB, free: 13.91 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003413/0.775, allocations: 82.41 kB / 0.8493 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.003045/0.7781, allocations: 1.062 MB / 0.8503 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.006356/0.7845, allocations: 1.755 MB / 0.852 GB, free: 11.79 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.005501/0.79, allocations: 1.794 MB / 0.8538 GB, free: 10.36 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.008156/0.7982, allocations: 5.223 MB / 0.8589 GB, free: 7.191 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007815/0.8061, allocations: 4.503 MB / 0.8633 GB, free: 3.105 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005086/0.8112, allocations: 2.139 MB / 0.8654 GB, free: 0.9648 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005105/0.8163, allocations: 2.6 MB / 0.8679 GB, free: 14.36 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.002067/0.8184, allocations: 484 kB / 0.8684 GB, free: 13.88 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003958/0.8224, allocations: 1.093 MB / 0.8694 GB, free: 12.79 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.002405/0.8248, allocations: 1.239 MB / 0.8706 GB, free: 11.55 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.004446/0.8293, allocations: 2.181 MB / 0.8728 GB, free: 9.355 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.01149/0.8408, allocations: 6.238 MB / 0.8789 GB, free: 3.098 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.8408, allocations: 0 / 0.8789 GB, free: 3.098 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.804e-06/0.8409, allocations: 0 / 0.8789 GB, free: 3.098 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0001657/0.841, allocations: 0 / 0.8789 GB, free: 3.098 MB / 0.6387 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.01087/0.8519, allocations: 4.881 MB / 0.8836 GB, free: 14.14 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/0.852, allocations: 9.109 kB / 0.8836 GB, free: 14.13 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007053/0.8527, allocations: 484.5 kB / 0.8841 GB, free: 13.64 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01386/0.8665, allocations: 2.813 MB / 0.8868 GB, free: 10.82 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005708/0.8723, allocations: 2.418 MB / 0.8892 GB, free: 8.332 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002402/0.8726, allocations: 258.9 kB / 0.8895 GB, free: 8.078 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006823/0.8733, allocations: 336 kB / 0.8898 GB, free: 7.75 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01218/0.8854, allocations: 5.389 MB / 0.895 GB, free: 2.289 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.673e-05/0.8856, allocations: 3.953 kB / 0.895 GB, free: 2.285 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004027/0.886, allocations: 144 kB / 0.8952 GB, free: 2.145 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.541e-05/0.886, allocations: 84 kB / 0.8953 GB, free: 2.062 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01754/0.9036, allocations: 6.524 MB / 0.9016 GB, free: 11.52 MB / 0.67 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.03331/0.937, allocations: 15.64 MB / 0.9169 GB, free: 11.27 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009692/0.9467, allocations: 4.08 MB / 0.9209 GB, free: 7.184 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006132/0.9529, allocations: 2.655 MB / 0.9235 GB, free: 4.512 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001066/0.954, allocations: 0.6736 MB / 0.9241 GB, free: 3.707 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006279/0.9602, allocations: 2.565 MB / 0.9266 GB, free: 1.102 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=288): time 5.71e-06/0.9603, allocations: 0 / 0.9266 GB, free: 1.102 MB / 0.6856 GB Notification: Performance of matching and sorting (n=288): time 0.02365/0.9839, allocations: 8.407 MB / 0.9349 GB, free: 8.578 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001649/0.9841, allocations: 210.2 kB / 0.9351 GB, free: 8.328 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00385/0.988, allocations: 2.521 MB / 0.9375 GB, free: 5.785 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0005746/0.9886, allocations: 81.7 kB / 0.9376 GB, free: 5.699 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.001611/0.9902, allocations: 1.462 MB / 0.939 GB, free: 4.223 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.001365/0.9916, allocations: 1.011 MB / 0.94 GB, free: 3.203 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001015/0.9926, allocations: 0.4892 MB / 0.9405 GB, free: 2.707 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001632/0.9928, allocations: 305.1 kB / 0.9408 GB, free: 2.406 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005003/0.9978, allocations: 2.034 MB / 0.9428 GB, free: 376 kB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00538/1.003, allocations: 2.363 MB / 0.9451 GB, free: 13.91 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01044/1.014, allocations: 4.409 MB / 0.9494 GB, free: 9.418 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/1.014, allocations: 0 / 0.9494 GB, free: 9.418 MB / 0.7169 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.01299/1.027, allocations: 5.288 MB / 0.9545 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.669e-05/1.027, allocations: 9.875 kB / 0.9546 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-05/1.027, allocations: 11.88 kB / 0.9546 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00137/1.028, allocations: 0.5452 MB / 0.9551 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003825/1.032, allocations: 0.78 MB / 0.9559 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008317/1.04, allocations: 5.738 MB / 0.9615 GB, free: 12.86 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003864/1.044, allocations: 0.5485 MB / 0.962 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003834/1.045, allocations: 111.9 kB / 0.9621 GB, free: 12.2 MB / 0.7325 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.00204/1.047, allocations: 0.967 MB / 0.9631 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007246/1.047, allocations: 306 kB / 0.9633 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01405/1.061, allocations: 5.883 MB / 0.9691 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.748e-05/1.061, allocations: 28 kB / 0.9691 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/1.062, allocations: 12 kB / 0.9691 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.161e-05/1.062, allocations: 19.83 kB / 0.9691 GB, free: 4.922 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01973/1.081, allocations: 9.902 MB / 0.9788 GB, free: 10.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.287e-06/1.081, allocations: 0 / 0.9788 GB, free: 10.9 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003805/1.085, allocations: 0.7449 MB / 0.9795 GB, free: 10.16 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001441/1.087, allocations: 0.5255 MB / 0.9801 GB, free: 9.621 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003164/1.087, allocations: 79.94 kB / 0.9801 GB, free: 9.543 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009235/1.096, allocations: 7.575 MB / 0.9875 GB, free: 1.664 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/1.096, allocations: 3.984 kB / 0.9875 GB, free: 1.66 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01946/1.116, allocations: 8.423 MB / 0.9958 GB, free: 9.148 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001845/1.118, allocations: 0.8575 MB / 0.9966 GB, free: 8.27 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005125/1.118, allocations: 63.89 kB / 0.9967 GB, free: 8.207 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003035/1.121, allocations: 405.1 kB / 0.997 GB, free: 7.812 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004807/1.122, allocations: 182.1 kB / 0.9972 GB, free: 7.633 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002678/1.122, allocations: 103.9 kB / 0.9973 GB, free: 7.531 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.002721/1.125, allocations: 1.834 MB / 0.9991 GB, free: 5.688 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.9e-07/1.125, allocations: 0 / 0.9991 GB, free: 5.688 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.002897/1.128, allocations: 1.107 MB / 1 GB, free: 4.578 MB / 0.7637 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.02401/1.152, allocations: 9.909 MB / 1.01 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.01271/1.164, allocations: 5.081 MB / 1.015 GB, free: 5.797 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/1.164, allocations: 3.938 kB / 1.015 GB, free: 5.793 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.00678/1.171, allocations: 2.952 MB / 1.018 GB, free: 2.809 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003457/1.175, allocations: 0.7182 MB / 1.018 GB, free: 2.125 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06515/1.24, allocations: 30.92 MB / 1.049 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002859/1.243, allocations: 2.547 MB / 1.051 GB, free: 312 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.004164/1.247, allocations: 1.121 MB / 1.052 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00283/1.25, allocations: 1.522 MB / 1.054 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of SimCode: time 5.91e-07/1.25, allocations: 0 / 1.054 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4786/1.728, allocations: 75.2 MB / 1.127 GB, free: 284.4 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.88/20.61, allocations: 5.828 kB / 1.127 GB, free: 284.4 MB / 0.8262 GB (rm -f IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe ; mkfifo IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe >> ../files/IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomThreeElements.fmu > IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe 2>&1)