Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.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.SimpleRoomThreeElements,fileNamePrefix="IDEAS_dev_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomThreeElements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements,fileNamePrefix="IDEAS_dev_IDEAS_ThermalZones_ReducedOrder_Examples_SimpleRoomThreeElements",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.006493/0.006493, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.001248/0.001248, allocations: 186.7 kB / 16.67 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8261/0.8261, allocations: 135.1 MB / 425.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 66.14 kB / 0.5851 GB, free: 21.95 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1885/0.1898, allocations: 80.92 MB / 0.6641 GB, free: 6.309 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements): time 0.6918/0.8816, allocations: 161.7 MB / 0.8221 GB, free: 4.934 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.04143/0.9231, allocations: 27.05 MB / 0.8485 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005013/0.9281, allocations: 79.06 kB / 0.8486 GB, free: 14.75 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.004092/0.9323, allocations: 1.076 MB / 0.8496 GB, free: 13.97 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.007605/0.9399, allocations: 1.783 MB / 0.8514 GB, free: 12.62 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.006854/0.9468, allocations: 1.806 MB / 0.8531 GB, free: 11.19 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.0106/0.9574, allocations: 5.224 MB / 0.8582 GB, free: 8.027 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008414/0.9659, allocations: 4.506 MB / 0.8626 GB, free: 4.02 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005684/0.9716, allocations: 2.172 MB / 0.8647 GB, free: 1.844 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005885/0.9775, allocations: 2.594 MB / 0.8673 GB, free: 15.24 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.002318/0.9799, allocations: 487.9 kB / 0.8677 GB, free: 14.76 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004896/0.9848, allocations: 1.085 MB / 0.8688 GB, free: 13.68 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.002831/0.9876, allocations: 1.246 MB / 0.87 GB, free: 12.43 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.005532/0.9932, allocations: 2.188 MB / 0.8722 GB, free: 10.23 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.01375/1.007, allocations: 6.231 MB / 0.8782 GB, free: 3.977 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 1.003e-05/1.007, allocations: 4 kB / 0.8782 GB, free: 3.973 MB / 0.6387 GB Notification: Performance of FrontEnd: time 4.949e-06/1.007, allocations: 3.984 kB / 0.8783 GB, free: 3.969 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0002685/1.007, allocations: 0 / 0.8783 GB, free: 3.969 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: 882 * Number of variables: 882 Notification: Performance of Generate backend data structure: time 0.01742/1.025, allocations: 4.873 MB / 0.883 GB, free: 15.01 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/1.025, allocations: 9.109 kB / 0.883 GB, free: 15 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001793/1.027, allocations: 484.5 kB / 0.8835 GB, free: 14.52 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01484/1.041, allocations: 2.817 MB / 0.8862 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005632/1.047, allocations: 2.414 MB / 0.8886 GB, free: 9.207 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002266/1.047, allocations: 258.9 kB / 0.8888 GB, free: 8.953 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005523/1.048, allocations: 336 kB / 0.8892 GB, free: 8.625 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01105/1.059, allocations: 5.385 MB / 0.8944 GB, free: 3.172 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.345e-05/1.059, allocations: 3.938 kB / 0.8944 GB, free: 3.168 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004044/1.06, allocations: 144 kB / 0.8946 GB, free: 3.027 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.345e-05/1.06, allocations: 80 kB / 0.8946 GB, free: 2.949 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01432/1.074, allocations: 6.524 MB / 0.901 GB, free: 12.41 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.02771/1.102, allocations: 15.64 MB / 0.9163 GB, free: 12.16 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009934/1.112, allocations: 4.088 MB / 0.9203 GB, free: 8.066 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005946/1.118, allocations: 2.655 MB / 0.9229 GB, free: 5.398 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009664/1.119, allocations: 0.6736 MB / 0.9235 GB, free: 4.594 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005641/1.124, allocations: 2.573 MB / 0.926 GB, free: 1.98 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=288): time 4.829e-06/1.124, allocations: 0 / 0.926 GB, free: 1.98 MB / 0.6856 GB Notification: Performance of matching and sorting (n=288): time 0.0205/1.145, allocations: 8.4 MB / 0.9342 GB, free: 9.465 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/1.145, allocations: 214.2 kB / 0.9344 GB, free: 9.211 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003505/1.148, allocations: 2.517 MB / 0.9369 GB, free: 6.672 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0004176/1.149, allocations: 81.7 kB / 0.937 GB, free: 6.586 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.001366/1.15, allocations: 1.458 MB / 0.9384 GB, free: 5.113 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.001332/1.152, allocations: 1.007 MB / 0.9394 GB, free: 4.098 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001258/1.153, allocations: 0.497 MB / 0.9399 GB, free: 3.594 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001396/1.153, allocations: 305.1 kB / 0.9402 GB, free: 3.293 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006619/1.16, allocations: 2.038 MB / 0.9422 GB, free: 1.25 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007326/1.167, allocations: 2.363 MB / 0.9445 GB, free: 14.8 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01497/1.182, allocations: 4.405 MB / 0.9488 GB, free: 10.3 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-05/1.182, allocations: 0 / 0.9488 GB, free: 10.3 MB / 0.7169 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.02066/1.203, allocations: 5.287 MB / 0.9539 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.414e-05/1.203, allocations: 11.98 kB / 0.9539 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.348e-05/1.203, allocations: 4 kB / 0.9539 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001898/1.205, allocations: 0.549 MB / 0.9545 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005887/1.211, allocations: 0.784 MB / 0.9552 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008583/1.219, allocations: 5.737 MB / 0.9608 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004246/1.224, allocations: 0.5505 MB / 0.9614 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008061/1.224, allocations: 115.9 kB / 0.9615 GB, free: 13.08 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 (274): * Single equations (assignments): 273 * 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 {(4,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002885/1.227, allocations: 0.9671 MB / 0.9624 GB, free: 12.1 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001242/1.229, allocations: 306 kB / 0.9627 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01462/1.243, allocations: 5.881 MB / 0.9685 GB, free: 5.859 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-05/1.243, allocations: 28 kB / 0.9685 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.344e-05/1.243, allocations: 12 kB / 0.9685 GB, free: 5.82 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-05/1.243, allocations: 19.88 kB / 0.9685 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02083/1.264, allocations: 9.894 MB / 0.9782 GB, free: 11.79 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.949e-06/1.264, allocations: 0 / 0.9782 GB, free: 11.79 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003855/1.268, allocations: 0.7449 MB / 0.9789 GB, free: 11.04 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001389/1.269, allocations: 0.5255 MB / 0.9794 GB, free: 10.51 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003188/1.27, allocations: 79.94 kB / 0.9795 GB, free: 10.43 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008466/1.278, allocations: 7.578 MB / 0.9869 GB, free: 2.547 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/1.278, allocations: 0 / 0.9869 GB, free: 2.547 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01817/1.297, allocations: 8.411 MB / 0.9951 GB, free: 10.05 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002295/1.299, allocations: 0.8576 MB / 0.996 GB, free: 9.168 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008219/1.3, allocations: 59.89 kB / 0.996 GB, free: 9.109 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003499/1.303, allocations: 411.4 kB / 0.9964 GB, free: 8.707 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005272/1.304, allocations: 186.1 kB / 0.9966 GB, free: 8.523 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002668/1.304, allocations: 99.94 kB / 0.9967 GB, free: 8.426 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.002706/1.307, allocations: 1.834 MB / 0.9985 GB, free: 6.582 MB / 0.7637 GB Notification: Performance of sort global known variables: time 3.3e-07/1.307, allocations: 0 / 0.9985 GB, free: 6.582 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003325/1.31, allocations: 1.103 MB / 0.9996 GB, free: 5.477 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (thermalZoneThreeElements.volAir.dynBal.U,thermalZoneThreeElements.volAir.dynBal.m,thermalZoneThreeElements.extWallRC.thermCapExt[1].T,thermalZoneThreeElements.intWallRC.thermCapInt[1].T,thermalZoneThreeElements.floorRC.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 (260): * Single equations (assignments): 253 * 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 {(4,36,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.02042/1.331, allocations: 9.923 MB / 1.009 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0125/1.343, allocations: 5.077 MB / 1.014 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.343, allocations: 3.938 kB / 1.014 GB, free: 6.684 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.006584/1.35, allocations: 2.956 MB / 1.017 GB, free: 3.695 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00407/1.354, allocations: 0.7199 MB / 1.018 GB, free: 3.008 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06286/1.417, allocations: 30.91 MB / 1.048 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003114/1.42, allocations: 2.551 MB / 1.05 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.004265/1.424, allocations: 1.124 MB / 1.052 GB, free: 56 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002629/1.427, allocations: 1.522 MB / 1.053 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of SimCode: time 7.92e-07/1.427, allocations: 4 kB / 1.053 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5549/1.982, allocations: 75.19 MB / 1.126 GB, free: 285.6 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.91/20.89, allocations: 15.77 kB / 1.127 GB, free: 285.6 MB / 0.8262 GB (rm -f IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe ; mkfifo IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe >> ../files/IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements_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_SimpleRoomThreeElements.fmu > IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe 2>&1)