Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.SimpleRoomTwoElements,fileNamePrefix="IDEAS_dev_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements,fileNamePrefix="IDEAS_dev_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.001465/0.001465, 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.001092/0.001092, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.424/1.424, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9767/0.9767, allocations: 135.1 MB / 425.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 63.34 kB / 0.5054 GB, free: 5.242 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1988/0.2002, allocations: 80.92 MB / 0.5845 GB, free: 4.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements): time 0.5841/0.7843, allocations: 160.8 MB / 0.7415 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.03568/0.82, allocations: 26.77 MB / 0.7676 GB, free: 1.195 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003632/0.8237, allocations: 71.62 kB / 0.7677 GB, free: 1.125 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0022/0.826, allocations: 1.018 MB / 0.7687 GB, free: 104 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004845/0.8308, allocations: 1.667 MB / 0.7703 GB, free: 14.43 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.004014/0.8349, allocations: 1.697 MB / 0.7719 GB, free: 12.75 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.005311/0.8402, allocations: 4.807 MB / 0.7766 GB, free: 7.938 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004759/0.8449, allocations: 4.261 MB / 0.7808 GB, free: 3.633 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003077/0.848, allocations: 2.008 MB / 0.7828 GB, free: 1.621 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003423/0.8515, allocations: 2.441 MB / 0.7851 GB, free: 15.17 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001441/0.8529, allocations: 448 kB / 0.7856 GB, free: 14.73 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003108/0.856, allocations: 1.027 MB / 0.7866 GB, free: 13.71 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001722/0.8578, allocations: 1.188 MB / 0.7877 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.002681/0.8605, allocations: 2.029 MB / 0.7897 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00602/0.8665, allocations: 5.694 MB / 0.7953 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.8665, allocations: 0 / 0.7953 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.483e-06/0.8665, allocations: 0 / 0.7953 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001016/0.8666, allocations: 0 / 0.7953 GB, free: 4.766 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.008616/0.8753, allocations: 4.493 MB / 0.7997 GB, free: 208 kB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.8753, allocations: 12.03 kB / 0.7997 GB, free: 196 kB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005346/0.8759, allocations: 451.1 kB / 0.8001 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01329/0.8892, allocations: 2.768 MB / 0.8028 GB, free: 12.96 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004532/0.8937, allocations: 2.255 MB / 0.805 GB, free: 10.63 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001689/0.8939, allocations: 242.5 kB / 0.8052 GB, free: 10.39 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004925/0.8944, allocations: 315.9 kB / 0.8055 GB, free: 10.08 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01061/0.905, allocations: 5.14 MB / 0.8106 GB, free: 4.863 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.736e-05/0.9051, allocations: 0 / 0.8106 GB, free: 4.863 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003879/0.9055, allocations: 132 kB / 0.8107 GB, free: 4.734 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.288e-05/0.9056, allocations: 87.88 kB / 0.8108 GB, free: 4.648 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0143/0.9199, allocations: 6.284 MB / 0.8169 GB, free: 14.35 MB / 0.6387 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.02672/0.9466, allocations: 14.54 MB / 0.8311 GB, free: 15.29 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01047/0.9571, allocations: 4.509 MB / 0.8355 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005648/0.9628, allocations: 2.454 MB / 0.8379 GB, free: 8.309 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001078/0.964, allocations: 0.6697 MB / 0.8386 GB, free: 7.512 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006013/0.97, allocations: 2.465 MB / 0.841 GB, free: 5.004 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=270): time 1.028e-05/0.97, allocations: 3.984 kB / 0.841 GB, free: 5 MB / 0.6544 GB Notification: Performance of matching and sorting (n=270): time 0.02031/0.9903, allocations: 7.539 MB / 0.8483 GB, free: 13.34 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.9905, allocations: 210 kB / 0.8485 GB, free: 13.09 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004499/0.995, allocations: 2.397 MB / 0.8509 GB, free: 10.66 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0005415/0.9956, allocations: 73.7 kB / 0.8509 GB, free: 10.59 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.001533/0.9971, allocations: 1.357 MB / 0.8523 GB, free: 9.211 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.001281/0.9984, allocations: 0.8893 MB / 0.8531 GB, free: 8.309 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001422/0.9999, allocations: 484.3 kB / 0.8536 GB, free: 7.828 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001133/1, allocations: 309 kB / 0.8539 GB, free: 7.523 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004879/1.005, allocations: 1.948 MB / 0.8558 GB, free: 5.57 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00517/1.01, allocations: 2.264 MB / 0.858 GB, free: 3.219 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3848/1.395, allocations: 4.197 MB / 0.8621 GB, free: 214.4 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-05/1.395, allocations: 3.031 kB / 0.8621 GB, free: 214.4 MB / 0.67 GB Notification: Performance of matching and sorting (n=300) (initialization): time 0.0122/1.407, allocations: 4.912 MB / 0.8669 GB, free: 214 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 3.15e-05/1.407, allocations: 5.812 kB / 0.8669 GB, free: 214 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/1.407, allocations: 5.875 kB / 0.8669 GB, free: 214 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008328/1.408, allocations: 349.9 kB / 0.8673 GB, free: 213.9 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003828/1.412, allocations: 0.7726 MB / 0.868 GB, free: 213.9 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00524/1.417, allocations: 4.248 MB / 0.8722 GB, free: 211.2 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004914/1.422, allocations: 0.5274 MB / 0.8727 GB, free: 211.2 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009636/1.423, allocations: 112.8 kB / 0.8728 GB, free: 211.1 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 (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.002697/1.426, allocations: 0.9194 MB / 0.8737 GB, free: 210.7 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008245/1.427, allocations: 273.1 kB / 0.8739 GB, free: 210.6 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.012/1.439, allocations: 5.552 MB / 0.8794 GB, free: 208.9 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-05/1.439, allocations: 26.47 kB / 0.8794 GB, free: 208.9 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/1.439, allocations: 5.812 kB / 0.8794 GB, free: 208.9 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.702e-05/1.439, allocations: 13.17 kB / 0.8794 GB, free: 208.9 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01784/1.457, allocations: 9.297 MB / 0.8885 GB, free: 205.6 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.849e-06/1.457, allocations: 0 / 0.8885 GB, free: 205.6 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00422/1.461, allocations: 0.7305 MB / 0.8892 GB, free: 205.6 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001276/1.462, allocations: 388.3 kB / 0.8896 GB, free: 205.5 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004348/1.463, allocations: 80.03 kB / 0.8896 GB, free: 205.4 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006238/1.469, allocations: 6.291 MB / 0.8958 GB, free: 200.6 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/1.469, allocations: 1.188 kB / 0.8958 GB, free: 200.6 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02071/1.49, allocations: 7.928 MB / 0.9035 GB, free: 197.8 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002451/1.492, allocations: 0.8069 MB / 0.9043 GB, free: 197.4 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006884/1.493, allocations: 59.72 kB / 0.9044 GB, free: 197.3 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003418/1.496, allocations: 387.6 kB / 0.9047 GB, free: 197.3 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005491/1.497, allocations: 178.6 kB / 0.9049 GB, free: 197.3 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002698/1.497, allocations: 93.23 kB / 0.905 GB, free: 197.2 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002981/1.5, allocations: 1.762 MB / 0.9067 GB, free: 196.6 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.11e-07/1.5, allocations: 0 / 0.9067 GB, free: 196.6 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.004063/1.504, allocations: 1.012 MB / 0.9077 GB, free: 196.4 MB / 0.67 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.02396/1.528, allocations: 9.412 MB / 0.9169 GB, free: 192.9 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.02194/1.55, allocations: 8.1 MB / 0.9248 GB, free: 191.4 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/1.55, allocations: 2.938 kB / 0.9248 GB, free: 191.4 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.006349/1.557, allocations: 2.751 MB / 0.9275 GB, free: 190.4 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003251/1.56, allocations: 0.6822 MB / 0.9282 GB, free: 190.2 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05498/1.615, allocations: 32.05 MB / 0.9595 GB, free: 160.9 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001725/1.617, allocations: 2.448 MB / 0.9619 GB, free: 158.4 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.003905/1.62, allocations: 1.095 MB / 0.9629 GB, free: 157.3 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001954/1.622, allocations: 1.44 MB / 0.9643 GB, free: 155.9 MB / 0.67 GB Notification: Performance of SimCode: time 6.21e-07/1.622, allocations: 0 / 0.9643 GB, free: 155.9 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1154/1.738, allocations: 69.16 MB / 1.032 GB, free: 87.24 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/14.59, allocations: 15.89 kB / 1.032 GB, free: 87.22 MB / 0.67 GB (rm -f IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; mkfifo IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe >> ../files/IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements.fmu > IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe 2>&1)