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.007708/0.007708, allocations: 97.41 kB / 15.73 MB, free: 6.047 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.00189/0.00189, allocations: 197 kB / 16.67 MB, free: 5.973 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.511/1.511, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8303/0.8303, allocations: 132.2 MB / 422.7 MB, free: 1.613 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 59.91 kB / 0.5808 GB, free: 8.059 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4871/0.489, allocations: 80.21 MB / 0.6592 GB, free: 9.809 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements): time 0.2031/0.6922, allocations: 160.8 MB / 0.8162 GB, free: 4.805 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.0415/0.7338, allocations: 26.78 MB / 0.8423 GB, free: 9.941 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004267/0.7381, allocations: 79.56 kB / 0.8424 GB, free: 9.863 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.003481/0.7417, allocations: 1.01 MB / 0.8434 GB, free: 8.848 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.007149/0.7489, allocations: 1.669 MB / 0.845 GB, free: 7.172 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.00567/0.7546, allocations: 1.707 MB / 0.8467 GB, free: 5.48 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.008023/0.7626, allocations: 4.832 MB / 0.8514 GB, free: 0.6406 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007323/0.77, allocations: 4.252 MB / 0.8556 GB, free: 12.32 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004851/0.7749, allocations: 2.019 MB / 0.8575 GB, free: 10.3 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004368/0.7792, allocations: 2.437 MB / 0.8599 GB, free: 7.855 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.001708/0.781, allocations: 448 kB / 0.8603 GB, free: 7.418 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003476/0.7845, allocations: 1.062 MB / 0.8614 GB, free: 6.355 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.00208/0.7866, allocations: 1.165 MB / 0.8625 GB, free: 5.188 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.004208/0.7908, allocations: 2.037 MB / 0.8645 GB, free: 3.141 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.4447/1.235, allocations: 5.82 MB / 0.8702 GB, free: 16.84 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/1.236, allocations: 0.9062 kB / 0.8702 GB, free: 16.84 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.513e-06/1.236, allocations: 0 / 0.8702 GB, free: 16.84 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.000195/1.236, allocations: 0 / 0.8702 GB, free: 16.84 MB / 0.6856 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.01141/1.247, allocations: 4.619 MB / 0.8747 GB, free: 14.98 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/1.247, allocations: 9.812 kB / 0.8747 GB, free: 14.98 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007613/1.248, allocations: 455.4 kB / 0.8751 GB, free: 14.92 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01425/1.262, allocations: 2.783 MB / 0.8779 GB, free: 14.69 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006238/1.269, allocations: 2.318 MB / 0.8801 GB, free: 14.06 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002531/1.269, allocations: 242.2 kB / 0.8803 GB, free: 14.05 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001148/1.27, allocations: 309.7 kB / 0.8806 GB, free: 14.05 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01357/1.284, allocations: 5.142 MB / 0.8857 GB, free: 13.79 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.881e-05/1.284, allocations: 2.859 kB / 0.8857 GB, free: 13.79 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000432/1.284, allocations: 133.7 kB / 0.8858 GB, free: 13.79 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.111e-05/1.284, allocations: 79.22 kB / 0.8859 GB, free: 13.79 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0166/1.301, allocations: 6.288 MB / 0.892 GB, free: 13.75 MB / 0.6856 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.02907/1.33, allocations: 14.44 MB / 0.9061 GB, free: 10.05 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01023/1.34, allocations: 4.517 MB / 0.9105 GB, free: 9.973 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005344/1.346, allocations: 2.452 MB / 0.9129 GB, free: 9.949 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008983/1.346, allocations: 0.6722 MB / 0.9136 GB, free: 9.289 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006108/1.353, allocations: 2.46 MB / 0.916 GB, free: 9.184 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=270): time 5.209e-06/1.353, allocations: 1.938 kB / 0.916 GB, free: 9.184 MB / 0.6856 GB Notification: Performance of matching and sorting (n=270): time 0.02014/1.373, allocations: 7.554 MB / 0.9234 GB, free: 7.535 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.543e-05/1.373, allocations: 209.6 kB / 0.9236 GB, free: 7.312 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003713/1.377, allocations: 2.389 MB / 0.9259 GB, free: 6.73 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0006974/1.377, allocations: 79.44 kB / 0.926 GB, free: 6.695 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.00131/1.379, allocations: 1.385 MB / 0.9273 GB, free: 6.027 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.00119/1.38, allocations: 0.9424 MB / 0.9282 GB, free: 5.336 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001447/1.381, allocations: 483.5 kB / 0.9287 GB, free: 5.23 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 4.151e-05/1.381, allocations: 301.7 kB / 0.929 GB, free: 4.934 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004328/1.386, allocations: 1.946 MB / 0.9309 GB, free: 4.48 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004582/1.39, allocations: 2.271 MB / 0.9331 GB, free: 3.754 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00954/1.4, allocations: 4.21 MB / 0.9372 GB, free: 2.758 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.414e-05/1.4, allocations: 0 / 0.9372 GB, free: 2.758 MB / 0.6856 GB Notification: Performance of matching and sorting (n=300) (initialization): time 0.01294/1.413, allocations: 4.916 MB / 0.942 GB, free: 15.44 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 4.588e-05/1.413, allocations: 7.938 kB / 0.942 GB, free: 15.43 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.047e-05/1.413, allocations: 6.5 kB / 0.942 GB, free: 15.43 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009927/1.414, allocations: 350.3 kB / 0.9424 GB, free: 15.16 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004385/1.418, allocations: 0.7739 MB / 0.9431 GB, free: 14.43 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007508/1.426, allocations: 4.257 MB / 0.9473 GB, free: 10.21 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005633/1.432, allocations: 0.5292 MB / 0.9478 GB, free: 9.68 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00125/1.433, allocations: 111.9 kB / 0.9479 GB, free: 9.57 MB / 0.7012 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.004188/1.437, allocations: 0.9217 MB / 0.9488 GB, free: 8.668 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001702/1.439, allocations: 282.2 kB / 0.9491 GB, free: 8.391 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01541/1.454, allocations: 5.547 MB / 0.9545 GB, free: 2.797 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-05/1.454, allocations: 35.69 kB / 0.9545 GB, free: 2.766 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.58e-05/1.454, allocations: 8 kB / 0.9545 GB, free: 2.758 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.271e-05/1.454, allocations: 11.95 kB / 0.9545 GB, free: 2.746 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02348/1.478, allocations: 9.303 MB / 0.9636 GB, free: 9.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/1.478, allocations: 0 / 0.9636 GB, free: 9.422 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004439/1.482, allocations: 0.741 MB / 0.9644 GB, free: 8.703 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001235/1.484, allocations: 379.9 kB / 0.9647 GB, free: 8.324 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009425/1.485, allocations: 75.94 kB / 0.9648 GB, free: 8.25 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007712/1.492, allocations: 6.287 MB / 0.9709 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/1.492, allocations: 1.484 kB / 0.9709 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02202/1.514, allocations: 7.945 MB / 0.9787 GB, free: 9.672 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00302/1.517, allocations: 0.8187 MB / 0.9795 GB, free: 8.832 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001132/1.519, allocations: 59.89 kB / 0.9795 GB, free: 8.773 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003904/1.522, allocations: 391.4 kB / 0.9799 GB, free: 8.391 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006664/1.523, allocations: 178 kB / 0.9801 GB, free: 8.215 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000353/1.524, allocations: 103.1 kB / 0.9802 GB, free: 8.117 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.003287/1.527, allocations: 1.753 MB / 0.9819 GB, free: 6.352 MB / 0.7325 GB Notification: Performance of sort global known variables: time 4.1e-07/1.527, allocations: 0 / 0.9819 GB, free: 6.352 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004616/1.531, allocations: 1.022 MB / 0.9829 GB, free: 5.328 MB / 0.7325 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.02605/1.558, allocations: 9.424 MB / 0.9921 GB, free: 12.3 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.01514/1.573, allocations: 4.783 MB / 0.9968 GB, free: 7.512 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/1.573, allocations: 0 / 0.9968 GB, free: 7.512 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.008715/1.582, allocations: 2.761 MB / 0.9995 GB, free: 4.766 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006395/1.588, allocations: 0.6716 MB / 1 GB, free: 4.148 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08447/1.672, allocations: 29.04 MB / 1.028 GB, free: 6.879 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004321/1.677, allocations: 2.452 MB / 1.031 GB, free: 4.395 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.006283/1.683, allocations: 1.103 MB / 1.032 GB, free: 3.289 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004861/1.688, allocations: 1.44 MB / 1.033 GB, free: 1.848 MB / 0.7794 GB Notification: Performance of SimCode: time 1.783e-06/1.688, allocations: 0 / 1.033 GB, free: 1.848 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1555/1.844, allocations: 70.05 MB / 1.102 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.61/20.46, allocations: 18.31 kB / 1.102 GB, free: 12.45 MB / 0.8575 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)