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.007968/0.007968, allocations: 99.64 kB / 15.73 MB, free: 6.039 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.001905/0.001905, allocations: 192.1 kB / 16.67 MB, free: 5.961 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.366/1.366, 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/package.mo): time 0.8286/0.8286, allocations: 132.2 MB / 422.7 MB, free: 6.566 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 57.94 kB / 0.5808 GB, free: 24.17 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1596/0.1608, allocations: 80.22 MB / 0.6592 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements): time 0.5969/0.7577, allocations: 160.8 MB / 0.8162 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03565/0.7935, allocations: 26.78 MB / 0.8423 GB, free: 5.469 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004316/0.7978, allocations: 78.47 kB / 0.8424 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002143/0.8, allocations: 1.022 MB / 0.8434 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.004781/0.8048, allocations: 1.695 MB / 0.845 GB, free: 3.438 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.003849/0.8087, allocations: 1.703 MB / 0.8467 GB, free: 2.098 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.005782/0.8145, allocations: 4.827 MB / 0.8514 GB, free: 15.18 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005211/0.8197, allocations: 4.266 MB / 0.8556 GB, free: 12.54 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003972/0.8237, allocations: 2.045 MB / 0.8576 GB, free: 10.83 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005131/0.8289, allocations: 2.442 MB / 0.86 GB, free: 8.379 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001614/0.8305, allocations: 452 kB / 0.8604 GB, free: 7.938 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003441/0.834, allocations: 1.054 MB / 0.8614 GB, free: 6.883 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001291/0.8353, allocations: 1.168 MB / 0.8626 GB, free: 5.711 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002611/0.8379, allocations: 2.029 MB / 0.8646 GB, free: 3.672 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.007501/0.8454, allocations: 5.84 MB / 0.8703 GB, free: 13.81 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.8454, allocations: 4 kB / 0.8703 GB, free: 13.81 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.934e-06/0.8454, allocations: 0 / 0.8703 GB, free: 13.81 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0001562/0.8456, allocations: 0 / 0.8703 GB, free: 13.81 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.01022/0.8558, allocations: 4.606 MB / 0.8748 GB, free: 9.125 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.8559, allocations: 11.97 kB / 0.8748 GB, free: 9.113 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00055/0.8565, allocations: 451.1 kB / 0.8752 GB, free: 8.66 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01278/0.8692, allocations: 2.794 MB / 0.8779 GB, free: 5.859 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004727/0.874, allocations: 2.307 MB / 0.8802 GB, free: 3.477 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001825/0.8742, allocations: 238.5 kB / 0.8804 GB, free: 3.242 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007147/0.8749, allocations: 316 kB / 0.8807 GB, free: 2.934 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01104/0.886, allocations: 5.136 MB / 0.8857 GB, free: 13.71 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.845e-05/0.8861, allocations: 11.95 kB / 0.8857 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003281/0.8864, allocations: 128 kB / 0.8859 GB, free: 13.58 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-05/0.8865, allocations: 79.94 kB / 0.8859 GB, free: 13.5 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01409/0.9006, allocations: 6.295 MB / 0.8921 GB, free: 7.191 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.02765/0.9283, allocations: 14.46 MB / 0.9062 GB, free: 8.211 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01065/0.939, allocations: 4.516 MB / 0.9106 GB, free: 3.691 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005579/0.9446, allocations: 2.458 MB / 0.913 GB, free: 1.223 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001083/0.9457, allocations: 0.6695 MB / 0.9137 GB, free: 432 kB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006042/0.9517, allocations: 2.466 MB / 0.9161 GB, free: 13.91 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=270): time 5.28e-06/0.9518, allocations: 0 / 0.9161 GB, free: 13.91 MB / 0.6856 GB Notification: Performance of matching and sorting (n=270): time 0.02078/0.9726, allocations: 7.541 MB / 0.9234 GB, free: 6.254 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/0.9727, allocations: 218 kB / 0.9236 GB, free: 5.996 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004456/0.9772, allocations: 2.397 MB / 0.926 GB, free: 3.57 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0006098/0.9778, allocations: 73.7 kB / 0.9261 GB, free: 3.492 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001424/0.9793, allocations: 1.379 MB / 0.9274 GB, free: 2.098 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.001341/0.9806, allocations: 0.9451 MB / 0.9283 GB, free: 1.145 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001665/0.9823, allocations: 476.5 kB / 0.9288 GB, free: 0.6719 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.9824, allocations: 305.1 kB / 0.9291 GB, free: 380 kB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004902/0.9873, allocations: 1.948 MB / 0.931 GB, free: 14.41 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005252/0.9926, allocations: 2.271 MB / 0.9332 GB, free: 12.05 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009644/1.002, allocations: 4.199 MB / 0.9373 GB, free: 7.766 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.889e-06/1.002, allocations: 4 kB / 0.9373 GB, free: 7.762 MB / 0.7012 GB Notification: Performance of matching and sorting (n=300) (initialization): time 0.01214/1.014, allocations: 4.92 MB / 0.9421 GB, free: 2.789 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/1.015, allocations: 8 kB / 0.9421 GB, free: 2.781 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/1.015, allocations: 0 / 0.9421 GB, free: 2.781 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008892/1.015, allocations: 350.1 kB / 0.9424 GB, free: 2.438 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003923/1.019, allocations: 0.7722 MB / 0.9432 GB, free: 1.664 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005828/1.025, allocations: 4.251 MB / 0.9474 GB, free: 13.28 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003969/1.029, allocations: 0.533 MB / 0.9479 GB, free: 12.75 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006614/1.03, allocations: 103.9 kB / 0.948 GB, free: 12.64 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.002637/1.033, allocations: 0.9348 MB / 0.9489 GB, free: 11.7 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001217/1.034, allocations: 282.2 kB / 0.9492 GB, free: 11.42 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01541/1.049, allocations: 5.544 MB / 0.9546 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.938e-05/1.049, allocations: 31.94 kB / 0.9546 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.948e-05/1.049, allocations: 4 kB / 0.9546 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.703e-05/1.049, allocations: 11.95 kB / 0.9546 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02178/1.071, allocations: 9.298 MB / 0.9637 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.467e-05/1.071, allocations: 0 / 0.9637 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003775/1.075, allocations: 0.7332 MB / 0.9644 GB, free: 11.6 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001102/1.076, allocations: 394.2 kB / 0.9648 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004543/1.077, allocations: 71.94 kB / 0.9649 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00659/1.083, allocations: 6.299 MB / 0.971 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/1.083, allocations: 4 kB / 0.971 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01794/1.101, allocations: 7.94 MB / 0.9788 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001901/1.103, allocations: 0.8186 MB / 0.9796 GB, free: 11.65 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007813/1.104, allocations: 55.95 kB / 0.9796 GB, free: 11.6 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003292/1.107, allocations: 389.6 kB / 0.98 GB, free: 11.22 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005945/1.108, allocations: 177.9 kB / 0.9802 GB, free: 11.04 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004037/1.108, allocations: 103.9 kB / 0.9803 GB, free: 10.94 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.003803/1.112, allocations: 1.753 MB / 0.982 GB, free: 9.176 MB / 0.7481 GB Notification: Performance of sort global known variables: time 5.21e-07/1.112, allocations: 0 / 0.982 GB, free: 9.176 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.003869/1.116, allocations: 1.029 MB / 0.983 GB, free: 8.145 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.0203/1.136, allocations: 9.414 MB / 0.9922 GB, free: 15.04 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.01135/1.148, allocations: 4.777 MB / 0.9968 GB, free: 10.21 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/1.148, allocations: 0 / 0.9968 GB, free: 10.21 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.006178/1.154, allocations: 2.766 MB / 0.9995 GB, free: 7.418 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003984/1.158, allocations: 0.6705 MB / 1 GB, free: 6.781 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06289/1.221, allocations: 29.05 MB / 1.029 GB, free: 9.363 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003733/1.225, allocations: 2.448 MB / 1.031 GB, free: 6.883 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.00465/1.229, allocations: 1.099 MB / 1.032 GB, free: 5.781 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002863/1.232, allocations: 1.44 MB / 1.033 GB, free: 4.34 MB / 0.795 GB Notification: Performance of SimCode: time 1.243e-06/1.232, allocations: 0 / 1.033 GB, free: 4.34 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4634/1.696, allocations: 70.05 MB / 1.102 GB, free: 285.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.19/18.88, allocations: 14.34 kB / 1.102 GB, free: 285.1 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)