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.009173/0.009173, allocations: 95.3 kB / 15.73 MB, free: 6.484 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.002412/0.002413, allocations: 191.4 kB / 16.67 MB, free: 6.391 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.469/1.469, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9926/0.9926, allocations: 135.6 MB / 426.1 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 67.89 kB / 0.5857 GB, free: 3.246 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4307/0.4327, allocations: 81.03 MB / 0.6648 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements): time 0.1954/0.6281, allocations: 160.8 MB / 0.8218 GB, free: 15.54 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.04099/0.6692, allocations: 26.79 MB / 0.848 GB, free: 4.664 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004361/0.6736, allocations: 71.62 kB / 0.8481 GB, free: 4.594 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.002716/0.6763, allocations: 1.014 MB / 0.8491 GB, free: 3.574 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.006253/0.6826, allocations: 1.669 MB / 0.8507 GB, free: 1.898 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.005475/0.6881, allocations: 1.697 MB / 0.8524 GB, free: 216 kB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.0078/0.6959, allocations: 4.831 MB / 0.8571 GB, free: 11.36 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00621/0.7022, allocations: 4.26 MB / 0.8612 GB, free: 7.035 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004223/0.7064, allocations: 2.008 MB / 0.8632 GB, free: 5.023 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004197/0.7106, allocations: 2.44 MB / 0.8656 GB, free: 2.574 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.001086/0.7117, allocations: 456 kB / 0.866 GB, free: 2.129 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00272/0.7145, allocations: 1.058 MB / 0.867 GB, free: 1.07 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.4452/1.16, allocations: 1.158 MB / 0.8682 GB, free: 11.52 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.003563/1.163, allocations: 2.034 MB / 0.8702 GB, free: 11.52 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.008851/1.172, allocations: 5.826 MB / 0.8758 GB, free: 11.21 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/1.172, allocations: 0.75 kB / 0.8758 GB, free: 11.21 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.984e-06/1.172, allocations: 0 / 0.8758 GB, free: 11.21 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0002088/1.172, allocations: 0.7812 kB / 0.8758 GB, free: 11.21 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.01443/1.187, allocations: 4.613 MB / 0.8804 GB, free: 9.355 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 6.232e-05/1.187, allocations: 10.75 kB / 0.8804 GB, free: 9.355 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000992/1.188, allocations: 451.1 kB / 0.8808 GB, free: 9.297 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01482/1.203, allocations: 2.793 MB / 0.8835 GB, free: 9.062 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005747/1.208, allocations: 2.313 MB / 0.8858 GB, free: 8.438 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002355/1.209, allocations: 241.2 kB / 0.886 GB, free: 8.43 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001296/1.21, allocations: 316.8 kB / 0.8863 GB, free: 8.43 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01378/1.224, allocations: 5.142 MB / 0.8913 GB, free: 8.16 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-05/1.224, allocations: 5.281 kB / 0.8913 GB, free: 8.16 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004196/1.224, allocations: 129.9 kB / 0.8915 GB, free: 8.16 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.306e-05/1.224, allocations: 78.69 kB / 0.8915 GB, free: 8.16 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01657/1.241, allocations: 6.297 MB / 0.8977 GB, free: 8.129 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.02582/1.267, allocations: 14.45 MB / 0.9118 GB, free: 4.41 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01013/1.277, allocations: 4.507 MB / 0.9162 GB, free: 4.336 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005423/1.283, allocations: 2.46 MB / 0.9186 GB, free: 4.316 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008182/1.283, allocations: 0.6688 MB / 0.9193 GB, free: 3.656 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005163/1.289, allocations: 2.462 MB / 0.9217 GB, free: 3.438 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=270): time 5.139e-06/1.289, allocations: 0 / 0.9217 GB, free: 3.438 MB / 0.6856 GB Notification: Performance of matching and sorting (n=270): time 0.01852/1.307, allocations: 7.553 MB / 0.929 GB, free: 1.293 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.804e-05/1.307, allocations: 209.7 kB / 0.9292 GB, free: 1.07 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003238/1.31, allocations: 2.396 MB / 0.9316 GB, free: 496 kB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0005908/1.311, allocations: 72.7 kB / 0.9316 GB, free: 464 kB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001201/1.312, allocations: 1.383 MB / 0.933 GB, free: 15.78 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.001333/1.314, allocations: 0.9417 MB / 0.9339 GB, free: 15.09 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009727/1.315, allocations: 482.3 kB / 0.9344 GB, free: 14.98 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001609/1.315, allocations: 303.7 kB / 0.9347 GB, free: 14.69 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004684/1.319, allocations: 1.952 MB / 0.9366 GB, free: 14.23 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005782/1.325, allocations: 2.267 MB / 0.9388 GB, free: 13.51 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009689/1.335, allocations: 4.204 MB / 0.9429 GB, free: 12.51 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.073e-05/1.335, allocations: 0 / 0.9429 GB, free: 12.51 MB / 0.7012 GB Notification: Performance of matching and sorting (n=300) (initialization): time 0.01395/1.349, allocations: 4.923 MB / 0.9477 GB, free: 7.812 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 3.554e-05/1.349, allocations: 8 kB / 0.9477 GB, free: 7.805 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.815e-05/1.349, allocations: 4 kB / 0.9477 GB, free: 7.801 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/1.35, allocations: 346.1 kB / 0.948 GB, free: 7.461 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004338/1.354, allocations: 0.7689 MB / 0.9488 GB, free: 6.719 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006581/1.361, allocations: 4.268 MB / 0.953 GB, free: 2.336 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004917/1.366, allocations: 0.5292 MB / 0.9535 GB, free: 1.805 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009838/1.367, allocations: 107.4 kB / 0.9536 GB, free: 1.703 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.004197/1.371, allocations: 0.9295 MB / 0.9545 GB, free: 0.7891 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001653/1.373, allocations: 290.1 kB / 0.9548 GB, free: 0.5039 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01798/1.391, allocations: 5.543 MB / 0.9602 GB, free: 10.95 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.813e-05/1.391, allocations: 31.94 kB / 0.9602 GB, free: 10.92 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.203e-05/1.391, allocations: 4 kB / 0.9602 GB, free: 10.91 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.764e-05/1.391, allocations: 11.95 kB / 0.9602 GB, free: 10.9 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02765/1.419, allocations: 9.311 MB / 0.9693 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-05/1.419, allocations: 0 / 0.9693 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0044/1.423, allocations: 0.7239 MB / 0.97 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001344/1.424, allocations: 389.6 kB / 0.9704 GB, free: 488 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007516/1.425, allocations: 75.94 kB / 0.9705 GB, free: 412 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008295/1.434, allocations: 6.296 MB / 0.9766 GB, free: 9.828 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/1.434, allocations: 2.625 kB / 0.9766 GB, free: 9.828 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02352/1.457, allocations: 7.936 MB / 0.9844 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003207/1.46, allocations: 0.8186 MB / 0.9852 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001644/1.462, allocations: 59.89 kB / 0.9852 GB, free: 0.9141 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004348/1.466, allocations: 389.5 kB / 0.9856 GB, free: 0.5352 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009425/1.467, allocations: 182 kB / 0.9858 GB, free: 364 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007477/1.468, allocations: 91.94 kB / 0.9859 GB, free: 272 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.004169/1.472, allocations: 1.752 MB / 0.9876 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of sort global known variables: time 4.41e-07/1.472, allocations: 4 kB / 0.9876 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.005529/1.478, allocations: 1.029 MB / 0.9886 GB, free: 13.47 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.02628/1.504, allocations: 9.434 MB / 0.9978 GB, free: 4.383 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.01522/1.519, allocations: 4.78 MB / 1.002 GB, free: 15.59 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/1.52, allocations: 0 / 1.002 GB, free: 15.59 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.008229/1.528, allocations: 2.76 MB / 1.005 GB, free: 12.85 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005831/1.534, allocations: 0.6678 MB / 1.006 GB, free: 12.22 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07389/1.608, allocations: 29.04 MB / 1.034 GB, free: 14.96 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003627/1.611, allocations: 2.448 MB / 1.037 GB, free: 12.48 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.005212/1.616, allocations: 1.115 MB / 1.038 GB, free: 11.37 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003573/1.62, allocations: 1.436 MB / 1.039 GB, free: 9.934 MB / 0.795 GB Notification: Performance of SimCode: time 8.42e-07/1.62, allocations: 8 kB / 1.039 GB, free: 9.926 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1385/1.759, allocations: 70.05 MB / 1.107 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.32/20.08, allocations: 14.38 kB / 1.107 GB, free: 4.484 MB / 0.8575 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)