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.004625/0.004625, allocations: 102 kB / 15.73 MB, free: 6.02 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.001121/0.001121, allocations: 194.3 kB / 16.67 MB, free: 5.93 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.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7784/0.7784, allocations: 132.2 MB / 422.7 MB, free: 6.586 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 63.41 kB / 0.5808 GB, free: 24.05 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.1729, allocations: 80.21 MB / 0.6592 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements): time 0.5905/0.7635, allocations: 160.8 MB / 0.8162 GB, free: 10.92 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03278/0.7964, allocations: 26.78 MB / 0.8423 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003749/0.8001, allocations: 77.81 kB / 0.8424 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002305/0.8025, allocations: 1.02 MB / 0.8434 GB, free: 4.773 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005547/0.808, allocations: 1.702 MB / 0.845 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.004367/0.8124, allocations: 1.701 MB / 0.8467 GB, free: 2.152 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.006046/0.8185, allocations: 4.83 MB / 0.8514 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00512/0.8236, allocations: 4.257 MB / 0.8556 GB, free: 12.6 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00391/0.8275, allocations: 2.05 MB / 0.8576 GB, free: 10.95 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003623/0.8312, allocations: 2.437 MB / 0.86 GB, free: 8.508 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0009902/0.8322, allocations: 452 kB / 0.8604 GB, free: 8.066 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002663/0.8349, allocations: 1.058 MB / 0.8614 GB, free: 7.008 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001194/0.8361, allocations: 1.168 MB / 0.8626 GB, free: 5.836 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002948/0.839, allocations: 2.037 MB / 0.8646 GB, free: 3.789 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.008026/0.8471, allocations: 5.836 MB / 0.8703 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.8471, allocations: 4 kB / 0.8703 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.483e-06/0.8471, allocations: 0 / 0.8703 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0001743/0.8473, allocations: 0 / 0.8703 GB, free: 13.93 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01069/0.858, allocations: 4.604 MB / 0.8748 GB, free: 9.25 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.8581, allocations: 8.031 kB / 0.8748 GB, free: 9.242 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007825/0.8589, allocations: 459 kB / 0.8752 GB, free: 8.781 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0138/0.8727, allocations: 2.79 MB / 0.8779 GB, free: 5.984 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005124/0.8778, allocations: 2.308 MB / 0.8802 GB, free: 3.602 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002102/0.8781, allocations: 238.5 kB / 0.8804 GB, free: 3.367 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001011/0.8791, allocations: 312 kB / 0.8807 GB, free: 3.062 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01437/0.8935, allocations: 5.144 MB / 0.8857 GB, free: 13.84 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002003/0.8937, allocations: 3.953 kB / 0.8857 GB, free: 13.84 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001372/0.8951, allocations: 132 kB / 0.8859 GB, free: 13.71 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.25e-05/0.8952, allocations: 83.94 kB / 0.8859 GB, free: 13.62 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01763/0.9129, allocations: 6.292 MB / 0.8921 GB, free: 7.32 MB / 0.6544 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.03246/0.9454, allocations: 14.46 MB / 0.9062 GB, free: 8.34 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01148/0.9569, allocations: 4.52 MB / 0.9106 GB, free: 3.816 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006047/0.963, allocations: 2.454 MB / 0.913 GB, free: 1.352 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001144/0.9642, allocations: 0.6618 MB / 0.9137 GB, free: 0.5586 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006671/0.9709, allocations: 2.473 MB / 0.9161 GB, free: 14.04 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=270): time 6.863e-06/0.9709, allocations: 0 / 0.9161 GB, free: 14.04 MB / 0.6856 GB Notification: Performance of matching and sorting (n=270): time 0.02183/0.9928, allocations: 7.541 MB / 0.9234 GB, free: 6.383 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001348/0.9929, allocations: 221.9 kB / 0.9236 GB, free: 6.121 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004224/0.9972, allocations: 2.397 MB / 0.926 GB, free: 3.695 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0007499/0.998, allocations: 73.7 kB / 0.9261 GB, free: 3.617 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001514/0.9995, allocations: 1.375 MB / 0.9274 GB, free: 2.227 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.001637/1.001, allocations: 0.949 MB / 0.9283 GB, free: 1.27 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002163/1.003, allocations: 476.5 kB / 0.9288 GB, free: 0.7969 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001122/1.003, allocations: 309.1 kB / 0.9291 GB, free: 0.4922 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005341/1.009, allocations: 1.944 MB / 0.931 GB, free: 14.54 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005877/1.015, allocations: 2.271 MB / 0.9332 GB, free: 12.18 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01113/1.026, allocations: 4.199 MB / 0.9373 GB, free: 7.895 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.876e-05/1.026, allocations: 0 / 0.9373 GB, free: 7.895 MB / 0.7012 GB Notification: Performance of matching and sorting (n=300) (initialization): time 0.01584/1.042, allocations: 4.924 MB / 0.9421 GB, free: 2.918 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 3.489e-05/1.042, allocations: 8 kB / 0.9421 GB, free: 2.91 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/1.042, allocations: 7.984 kB / 0.9421 GB, free: 2.902 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009628/1.043, allocations: 342.1 kB / 0.9424 GB, free: 2.566 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004365/1.047, allocations: 0.7722 MB / 0.9432 GB, free: 1.793 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006117/1.053, allocations: 4.251 MB / 0.9473 GB, free: 13.41 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004354/1.058, allocations: 0.5348 MB / 0.9479 GB, free: 12.87 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007855/1.059, allocations: 107.9 kB / 0.948 GB, free: 12.77 MB / 0.7169 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.003014/1.062, allocations: 0.9348 MB / 0.9489 GB, free: 11.82 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001335/1.063, allocations: 282.2 kB / 0.9492 GB, free: 11.54 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01544/1.078, allocations: 5.549 MB / 0.9546 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.824e-05/1.078, allocations: 24 kB / 0.9546 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.261e-05/1.079, allocations: 8 kB / 0.9546 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.506e-05/1.079, allocations: 11.95 kB / 0.9546 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02171/1.1, allocations: 9.302 MB / 0.9637 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.662e-05/1.1, allocations: 0 / 0.9637 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00418/1.105, allocations: 0.7332 MB / 0.9644 GB, free: 11.72 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00127/1.106, allocations: 386.2 kB / 0.9648 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000694/1.107, allocations: 75.94 kB / 0.9649 GB, free: 11.26 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007129/1.114, allocations: 6.294 MB / 0.971 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/1.114, allocations: 4 kB / 0.971 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02098/1.135, allocations: 7.944 MB / 0.9788 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002692/1.137, allocations: 0.8186 MB / 0.9796 GB, free: 11.78 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001153/1.139, allocations: 59.95 kB / 0.9796 GB, free: 11.72 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003694/1.142, allocations: 387.4 kB / 0.98 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007064/1.143, allocations: 173.9 kB / 0.9802 GB, free: 11.17 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005717/1.144, allocations: 103.9 kB / 0.9803 GB, free: 11.07 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.003433/1.147, allocations: 1.753 MB / 0.982 GB, free: 9.305 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.1e-07/1.147, allocations: 0 / 0.982 GB, free: 9.305 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.003949/1.151, allocations: 1.033 MB / 0.983 GB, free: 8.27 MB / 0.7481 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.02184/1.173, allocations: 9.419 MB / 0.9922 GB, free: 15.16 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.01336/1.186, allocations: 4.777 MB / 0.9968 GB, free: 10.34 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/1.186, allocations: 4 kB / 0.9968 GB, free: 10.33 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.007227/1.194, allocations: 2.75 MB / 0.9995 GB, free: 7.551 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004709/1.198, allocations: 0.6747 MB / 1 GB, free: 6.906 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06909/1.268, allocations: 29.05 MB / 1.029 GB, free: 9.496 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00337/1.271, allocations: 2.452 MB / 1.031 GB, free: 7.012 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.004786/1.276, allocations: 1.107 MB / 1.032 GB, free: 5.902 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002981/1.279, allocations: 1.436 MB / 1.033 GB, free: 4.465 MB / 0.795 GB Notification: Performance of SimCode: time 1.282e-06/1.279, allocations: 0 / 1.033 GB, free: 4.465 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4832/1.762, allocations: 70.04 MB / 1.102 GB, free: 285.4 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.1/19.86, allocations: 11.31 kB / 1.102 GB, free: 285.4 MB / 0.8106 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)