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.005276/0.005276, allocations: 105 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.001083/0.001083, allocations: 191.3 kB / 16.67 MB, free: 5.977 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8756/0.8756, allocations: 135.1 MB / 425.7 MB, free: 4.066 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 65.62 kB / 0.5851 GB, free: 21.78 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1819/0.1832, allocations: 80.91 MB / 0.6641 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements): time 0.5991/0.7824, allocations: 160.8 MB / 0.8211 GB, free: 5.582 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03617/0.8186, allocations: 26.78 MB / 0.8473 GB, free: 15.67 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003548/0.8222, allocations: 74 kB / 0.8474 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002042/0.8243, allocations: 1.02 MB / 0.8484 GB, free: 14.92 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.004479/0.8288, allocations: 1.704 MB / 0.85 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003905/0.8327, allocations: 1.694 MB / 0.8517 GB, free: 12.3 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.005243/0.838, allocations: 4.841 MB / 0.8564 GB, free: 9.363 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005549/0.8435, allocations: 4.258 MB / 0.8606 GB, free: 6.074 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003785/0.8473, allocations: 2.037 MB / 0.8625 GB, free: 4.031 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004093/0.8514, allocations: 2.45 MB / 0.8649 GB, free: 1.574 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001378/0.8528, allocations: 448 kB / 0.8654 GB, free: 1.137 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003014/0.8558, allocations: 1.054 MB / 0.8664 GB, free: 84 kB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001811/0.8577, allocations: 1.172 MB / 0.8675 GB, free: 14.9 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.00281/0.8605, allocations: 2.033 MB / 0.8695 GB, free: 12.86 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.007215/0.8677, allocations: 5.832 MB / 0.8752 GB, free: 7.012 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.8677, allocations: 0 / 0.8752 GB, free: 7.012 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.232e-06/0.8677, allocations: 0 / 0.8752 GB, free: 7.012 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 7.28e-05/0.8678, allocations: 7.938 kB / 0.8752 GB, free: 7.004 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.00841/0.8762, allocations: 4.602 MB / 0.8797 GB, free: 2.324 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.8763, allocations: 9.109 kB / 0.8797 GB, free: 2.316 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005447/0.8768, allocations: 459.1 kB / 0.8802 GB, free: 1.855 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01302/0.8899, allocations: 2.794 MB / 0.8829 GB, free: 15.05 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004529/0.8944, allocations: 2.309 MB / 0.8852 GB, free: 12.67 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001825/0.8946, allocations: 246.4 kB / 0.8854 GB, free: 12.43 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005193/0.8951, allocations: 312 kB / 0.8857 GB, free: 12.12 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01058/0.9057, allocations: 5.14 MB / 0.8907 GB, free: 6.906 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.428e-05/0.9058, allocations: 3.984 kB / 0.8907 GB, free: 6.902 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003622/0.9062, allocations: 132 kB / 0.8908 GB, free: 6.773 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.912e-05/0.9062, allocations: 87.94 kB / 0.8909 GB, free: 6.688 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01398/0.9202, allocations: 6.284 MB / 0.8971 GB, free: 400 kB / 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.03035/0.9506, allocations: 14.46 MB / 0.9112 GB, free: 1.41 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01123/0.9619, allocations: 4.52 MB / 0.9156 GB, free: 12.89 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0054/0.9673, allocations: 2.454 MB / 0.918 GB, free: 10.43 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001021/0.9684, allocations: 0.6697 MB / 0.9186 GB, free: 9.625 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006219/0.9746, allocations: 2.462 MB / 0.921 GB, free: 7.121 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=270): time 6.061e-06/0.9746, allocations: 3.938 kB / 0.921 GB, free: 7.117 MB / 0.6856 GB Notification: Performance of matching and sorting (n=270): time 0.01994/0.9946, allocations: 7.549 MB / 0.9284 GB, free: 15.45 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.9948, allocations: 214 kB / 0.9286 GB, free: 15.2 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00443/0.9992, allocations: 2.405 MB / 0.931 GB, free: 12.76 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0004972/0.9997, allocations: 73.7 kB / 0.931 GB, free: 12.68 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.001518/1.001, allocations: 1.379 MB / 0.9324 GB, free: 11.29 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.001293/1.003, allocations: 0.9334 MB / 0.9333 GB, free: 10.35 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001455/1.004, allocations: 480.5 kB / 0.9338 GB, free: 9.871 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001008/1.004, allocations: 301.1 kB / 0.934 GB, free: 9.574 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004904/1.009, allocations: 1.948 MB / 0.9359 GB, free: 7.621 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005256/1.014, allocations: 2.271 MB / 0.9382 GB, free: 5.262 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009965/1.024, allocations: 4.199 MB / 0.9423 GB, free: 0.9727 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.256e-05/1.024, allocations: 0 / 0.9423 GB, free: 0.9727 MB / 0.7012 GB Notification: Performance of matching and sorting (n=300) (initialization): time 0.01249/1.037, allocations: 4.924 MB / 0.9471 GB, free: 11.99 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.342e-05/1.037, allocations: 8 kB / 0.9471 GB, free: 11.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.915e-05/1.037, allocations: 8.156 kB / 0.9471 GB, free: 11.98 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009427/1.038, allocations: 342 kB / 0.9474 GB, free: 11.64 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003922/1.042, allocations: 0.7761 MB / 0.9482 GB, free: 10.86 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006184/1.048, allocations: 4.259 MB / 0.9523 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004347/1.052, allocations: 0.5331 MB / 0.9529 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004705/1.053, allocations: 99.92 kB / 0.953 GB, free: 5.836 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.002501/1.055, allocations: 0.9343 MB / 0.9539 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001125/1.057, allocations: 282.2 kB / 0.9541 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0146/1.071, allocations: 5.545 MB / 0.9595 GB, free: 15 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.502e-05/1.071, allocations: 28 kB / 0.9596 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.667e-05/1.071, allocations: 4 kB / 0.9596 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.403e-05/1.071, allocations: 19.88 kB / 0.9596 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02289/1.094, allocations: 9.287 MB / 0.9687 GB, free: 5.539 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-05/1.094, allocations: 8 kB / 0.9687 GB, free: 5.531 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003923/1.098, allocations: 0.7293 MB / 0.9694 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/1.099, allocations: 378.3 kB / 0.9697 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003532/1.1, allocations: 83.92 kB / 0.9698 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007454/1.107, allocations: 6.305 MB / 0.976 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/1.107, allocations: 7.938 kB / 0.976 GB, free: 13.72 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01983/1.127, allocations: 7.933 MB / 0.9837 GB, free: 5.695 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00305/1.13, allocations: 0.8187 MB / 0.9845 GB, free: 4.855 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001291/1.132, allocations: 59.94 kB / 0.9846 GB, free: 4.797 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003805/1.135, allocations: 393.3 kB / 0.985 GB, free: 4.414 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006521/1.136, allocations: 185.9 kB / 0.9851 GB, free: 4.23 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000451/1.137, allocations: 99.92 kB / 0.9852 GB, free: 4.133 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.003609/1.14, allocations: 1.745 MB / 0.9869 GB, free: 2.375 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.3e-07/1.14, allocations: 0 / 0.9869 GB, free: 2.375 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.004804/1.145, allocations: 1.033 MB / 0.988 GB, free: 1.34 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.02239/1.167, allocations: 9.422 MB / 0.9972 GB, free: 8.16 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.01298/1.18, allocations: 4.773 MB / 1.002 GB, free: 3.344 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/1.181, allocations: 0 / 1.002 GB, free: 3.344 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.007355/1.188, allocations: 2.762 MB / 1.005 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00504/1.193, allocations: 0.6739 MB / 1.005 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07186/1.265, allocations: 29.04 MB / 1.034 GB, free: 2.504 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003828/1.269, allocations: 2.452 MB / 1.036 GB, free: 20 kB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.005672/1.274, allocations: 1.107 MB / 1.037 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003413/1.278, allocations: 1.44 MB / 1.038 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of SimCode: time 1.282e-06/1.278, allocations: 4 kB / 1.038 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5583/1.836, allocations: 70.03 MB / 1.107 GB, free: 307 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.94/19.78, allocations: 17.42 kB / 1.107 GB, free: 306.9 MB / 0.8262 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)