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.007929/0.007929, allocations: 98.14 kB / 15.73 MB, free: 6.062 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.001721/0.001721, allocations: 194.5 kB / 16.68 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.371/1.371, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7881/0.7881, allocations: 132.2 MB / 422.7 MB, free: 6.551 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 69.55 kB / 0.5808 GB, free: 24.01 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1723/0.1736, allocations: 80.21 MB / 0.6592 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements): time 0.511/0.6846, allocations: 163.1 MB / 0.8184 GB, free: 9.293 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03793/0.7226, allocations: 27.45 MB / 0.8452 GB, free: 3.004 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00423/0.7269, allocations: 88.38 kB / 0.8453 GB, free: 2.977 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.00347/0.7304, allocations: 1.127 MB / 0.8464 GB, free: 2.152 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.007528/0.7379, allocations: 1.933 MB / 0.8483 GB, free: 0.6719 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.006418/0.7444, allocations: 1.98 MB / 0.8503 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.008473/0.7529, allocations: 5.87 MB / 0.856 GB, free: 11.54 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0072/0.7601, allocations: 4.869 MB / 0.8607 GB, free: 7.539 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004791/0.7649, allocations: 2.351 MB / 0.863 GB, free: 5.184 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004479/0.7694, allocations: 2.821 MB / 0.8658 GB, free: 2.355 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001644/0.7711, allocations: 0.5234 MB / 0.8663 GB, free: 1.832 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003384/0.7745, allocations: 1.128 MB / 0.8674 GB, free: 0.7031 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.002074/0.7766, allocations: 1.367 MB / 0.8687 GB, free: 15.33 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.004452/0.781, allocations: 2.391 MB / 0.8711 GB, free: 12.93 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.008866/0.7899, allocations: 6.787 MB / 0.8777 GB, free: 6.117 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.7899, allocations: 4 kB / 0.8777 GB, free: 6.113 MB / 0.6387 GB Notification: Performance of FrontEnd: time 3.847e-06/0.79, allocations: 4 kB / 0.8777 GB, free: 6.109 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.000145/0.7901, allocations: 0 / 0.8777 GB, free: 6.109 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: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.0107/0.8008, allocations: 5.229 MB / 0.8828 GB, free: 0.7969 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.8009, allocations: 12.03 kB / 0.8828 GB, free: 0.7852 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000664/0.8015, allocations: 0.5181 MB / 0.8833 GB, free: 264 kB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01397/0.8155, allocations: 2.852 MB / 0.8861 GB, free: 13.4 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005491/0.8211, allocations: 2.553 MB / 0.8886 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002096/0.8213, allocations: 291.5 kB / 0.8889 GB, free: 10.49 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008643/0.8222, allocations: 368 kB / 0.8892 GB, free: 10.13 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01355/0.8357, allocations: 5.728 MB / 0.8948 GB, free: 4.34 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.892e-05/0.8359, allocations: 11.89 kB / 0.8948 GB, free: 4.328 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004723/0.8363, allocations: 152 kB / 0.895 GB, free: 4.18 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.742e-05/0.8364, allocations: 95.94 kB / 0.8951 GB, free: 4.086 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01784/0.8543, allocations: 6.85 MB / 0.9018 GB, free: 13.23 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.03824/0.8925, allocations: 17.3 MB / 0.9187 GB, free: 11.16 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01143/0.904, allocations: 4.488 MB / 0.923 GB, free: 6.676 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006463/0.9106, allocations: 2.943 MB / 0.9259 GB, free: 3.727 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001114/0.9117, allocations: 0.6777 MB / 0.9266 GB, free: 2.918 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006575/0.9183, allocations: 2.729 MB / 0.9293 GB, free: 156 kB / 0.6856 GB Notification: Performance of pre-optimization done (n=315): time 6.382e-06/0.9183, allocations: 0 / 0.9293 GB, free: 156 kB / 0.6856 GB Notification: Performance of matching and sorting (n=315): time 0.02759/0.9459, allocations: 9.708 MB / 0.9387 GB, free: 6.309 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001382/0.9461, allocations: 214.4 kB / 0.9389 GB, free: 6.055 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004407/0.9505, allocations: 2.666 MB / 0.9415 GB, free: 3.375 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0006516/0.9512, allocations: 77.7 kB / 0.9416 GB, free: 3.293 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.001529/0.9527, allocations: 1.572 MB / 0.9431 GB, free: 1.707 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.001514/0.9543, allocations: 1.104 MB / 0.9442 GB, free: 0.5938 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001753/0.956, allocations: 0.5173 MB / 0.9447 GB, free: 72 kB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001252/0.9562, allocations: 309.1 kB / 0.945 GB, free: 15.77 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005727/0.9619, allocations: 2.156 MB / 0.9471 GB, free: 13.61 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00606/0.968, allocations: 2.521 MB / 0.9496 GB, free: 11 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01194/0.98, allocations: 4.687 MB / 0.9542 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-05/0.9801, allocations: 0 / 0.9542 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of matching and sorting (n=347) (initialization): time 0.01657/0.9966, allocations: 5.769 MB / 0.9598 GB, free: 420 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.327e-05/0.9967, allocations: 12.16 kB / 0.9598 GB, free: 408 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.846e-05/0.9967, allocations: 4 kB / 0.9598 GB, free: 404 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001957/0.9987, allocations: 0.8278 MB / 0.9606 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004596/1.003, allocations: 0.7956 MB / 0.9614 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01169/1.015, allocations: 7.579 MB / 0.9688 GB, free: 7.043 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004378/1.019, allocations: 0.566 MB / 0.9694 GB, free: 6.477 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007592/1.02, allocations: 115.9 kB / 0.9695 GB, free: 6.363 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 (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.003085/1.023, allocations: 1.04 MB / 0.9705 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001314/1.025, allocations: 325.9 kB / 0.9708 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01649/1.041, allocations: 6.37 MB / 0.977 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-05/1.041, allocations: 32 kB / 0.977 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.814e-05/1.041, allocations: 8 kB / 0.9771 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.979e-05/1.041, allocations: 15.94 kB / 0.9771 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02621/1.068, allocations: 10.74 MB / 0.9876 GB, free: 3.648 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.8e-05/1.068, allocations: 0 / 0.9876 GB, free: 3.648 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004426/1.072, allocations: 0.7722 MB / 0.9883 GB, free: 2.875 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002077/1.074, allocations: 0.7379 MB / 0.989 GB, free: 2.125 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006792/1.075, allocations: 87.92 kB / 0.9891 GB, free: 2.039 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01239/1.087, allocations: 10.66 MB / 0.9995 GB, free: 6.93 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/1.087, allocations: 7.938 kB / 0.9995 GB, free: 6.922 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02218/1.11, allocations: 9.09 MB / 1.008 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003032/1.113, allocations: 0.9158 MB / 1.009 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001249/1.114, allocations: 68.14 kB / 1.009 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003956/1.118, allocations: 411.4 kB / 1.01 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008343/1.119, allocations: 214.2 kB / 1.01 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005855/1.119, allocations: 107.9 kB / 1.01 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.003577/1.123, allocations: 1.932 MB / 1.012 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.91e-07/1.123, allocations: 0 / 1.012 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.004749/1.128, allocations: 1.224 MB / 1.013 GB, free: 8.863 MB / 0.7794 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.02468/1.152, allocations: 10.6 MB / 1.023 GB, free: 14.58 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0141/1.166, allocations: 5.489 MB / 1.029 GB, free: 9.055 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/1.167, allocations: 0.6875 kB / 1.029 GB, free: 9.055 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.00803/1.175, allocations: 3.336 MB / 1.032 GB, free: 5.676 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005268/1.18, allocations: 0.7672 MB / 1.033 GB, free: 4.941 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4048/1.585, allocations: 33.31 MB / 1.065 GB, free: 302.2 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00288/1.588, allocations: 2.698 MB / 1.068 GB, free: 301.3 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.00399/1.592, allocations: 1.155 MB / 1.069 GB, free: 301.2 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002307/1.594, allocations: 1.641 MB / 1.071 GB, free: 299.9 MB / 0.8106 GB Notification: Performance of SimCode: time 9.81e-07/1.594, allocations: 0.875 kB / 1.071 GB, free: 299.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1156/1.71, allocations: 81.9 MB / 1.151 GB, free: 234.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.98/19.69, allocations: 8.75 kB / 1.151 GB, free: 234.9 MB / 0.8106 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)