Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.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.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatPumps_Examples_Carnot_y",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatPumps_Examples_Carnot_y",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.001392/0.001392, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008021/0.008021, allocations: 173.2 kB / 16.26 MB, free: 6.676 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.184/1.184, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6862/0.6862, allocations: 132.3 MB / 423.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002842/0.0002842, allocations: 8 kB / 0.5041 GB, free: 3.816 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3692/0.3695, allocations: 81.58 MB / 0.5837 GB, free: 4.039 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_y): time 0.06275/0.4323, allocations: 73.44 MB / 0.6555 GB, free: 6.797 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.017/0.4494, allocations: 15.01 MB / 0.6701 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001055/0.4505, allocations: 59.62 kB / 0.6702 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001389/0.4519, allocations: 0.6721 MB / 0.6708 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004157/0.456, allocations: 2.383 MB / 0.6732 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002279/0.4583, allocations: 1.267 MB / 0.6744 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.004426/0.4627, allocations: 5.558 MB / 0.6798 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001256/0.464, allocations: 1.167 MB / 0.681 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001673/0.4657, allocations: 1.334 MB / 0.6823 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001092/0.4668, allocations: 1.147 MB / 0.6834 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001137/0.4669, allocations: 56 kB / 0.6834 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001835/0.4688, allocations: 1.236 MB / 0.6847 GB, free: 8.805 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002338/0.469, allocations: 290.5 kB / 0.6849 GB, free: 8.52 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0006191/0.4696, allocations: 0.7984 MB / 0.6857 GB, free: 7.711 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002231/0.4719, allocations: 2.722 MB / 0.6884 GB, free: 4.98 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.4719, allocations: 0 / 0.6884 GB, free: 4.98 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.082e-06/0.4719, allocations: 4 kB / 0.6884 GB, free: 4.977 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.247e-05/0.4719, allocations: 4 kB / 0.6884 GB, free: 4.973 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.002702/0.4746, allocations: 1.787 MB / 0.6901 GB, free: 3.121 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.4747, allocations: 8.031 kB / 0.6901 GB, free: 3.113 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001549/0.4748, allocations: 152.1 kB / 0.6903 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006766/0.4755, allocations: 242.8 kB / 0.6905 GB, free: 2.719 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00198/0.4775, allocations: 1.5 MB / 0.692 GB, free: 1.16 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.351e-05/0.4776, allocations: 74 kB / 0.692 GB, free: 1.09 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.4777, allocations: 104 kB / 0.6921 GB, free: 0.9883 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001745/0.4795, allocations: 1.12 MB / 0.6932 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.146e-05/0.4795, allocations: 0 / 0.6932 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.405e-05/0.4796, allocations: 48 kB / 0.6933 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.696e-05/0.4796, allocations: 27.94 kB / 0.6933 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001754/0.4814, allocations: 0.9368 MB / 0.6942 GB, free: 14.82 MB / 0.5294 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.004753/0.4861, allocations: 4.911 MB / 0.699 GB, free: 9.617 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001288/0.4874, allocations: 0.6389 MB / 0.6996 GB, free: 8.977 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006688/0.4881, allocations: 375 kB / 0.7 GB, free: 8.609 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005094/0.4886, allocations: 0.8277 MB / 0.7008 GB, free: 7.598 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.4887, allocations: 43.06 kB / 0.7009 GB, free: 7.547 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=61): time 1.523e-06/0.4887, allocations: 0 / 0.7009 GB, free: 7.547 MB / 0.5294 GB Notification: Performance of matching and sorting (n=61): time 0.006804/0.4955, allocations: 1.904 MB / 0.7027 GB, free: 5.617 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.245e-05/0.4955, allocations: 55.97 kB / 0.7028 GB, free: 5.547 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.4968, allocations: 1.218 MB / 0.704 GB, free: 4.312 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.356e-05/0.4969, allocations: 37.7 kB / 0.704 GB, free: 4.27 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004279/0.4973, allocations: 0.6026 MB / 0.7046 GB, free: 3.66 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001517/0.4975, allocations: 216.9 kB / 0.7048 GB, free: 3.445 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.652e-05/0.4976, allocations: 65.62 kB / 0.7048 GB, free: 3.375 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.4977, allocations: 341.9 kB / 0.7052 GB, free: 3.035 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006306/0.4983, allocations: 305.8 kB / 0.7055 GB, free: 2.734 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007552/0.4991, allocations: 0.5061 MB / 0.706 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001314/0.5004, allocations: 0.7519 MB / 0.7067 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.5004, allocations: 0 / 0.7067 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004442/0.5049, allocations: 1.41 MB / 0.7081 GB, free: 15.94 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.325e-05/0.505, allocations: 200.4 kB / 0.7083 GB, free: 15.69 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.505, allocations: 4 kB / 0.7083 GB, free: 15.69 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005219/0.5055, allocations: 148.7 kB / 0.7084 GB, free: 15.54 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005511/0.5061, allocations: 167.8 kB / 0.7086 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007431/0.5068, allocations: 0.7201 MB / 0.7093 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009192/0.5078, allocations: 167 kB / 0.7094 GB, free: 14.46 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.573e-05/0.5078, allocations: 31.98 kB / 0.7095 GB, free: 14.43 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.811e-06/0.5078, allocations: 4 kB / 0.7095 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004272/0.5121, allocations: 1.253 MB / 0.7107 GB, free: 13.17 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.299e-06/0.5121, allocations: 4 kB / 0.7107 GB, free: 13.17 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004394/0.5126, allocations: 153 kB / 0.7108 GB, free: 13.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005347/0.5131, allocations: 163.8 kB / 0.711 GB, free: 12.86 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007193/0.5138, allocations: 0.7146 MB / 0.7117 GB, free: 12.12 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008651/0.5147, allocations: 155.2 kB / 0.7118 GB, free: 11.96 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.649e-05/0.5148, allocations: 39.97 kB / 0.7119 GB, free: 11.93 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0004075/0.5152, allocations: 417.5 kB / 0.7123 GB, free: 11.51 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001592/0.5154, allocations: 134.4 kB / 0.7124 GB, free: 11.38 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004555/0.5199, allocations: 1.412 MB / 0.7138 GB, free: 9.949 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.52, allocations: 8 kB / 0.7138 GB, free: 9.941 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.52, allocations: 4 kB / 0.7138 GB, free: 9.938 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004063/0.524, allocations: 1.232 MB / 0.715 GB, free: 8.672 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005822/0.5299, allocations: 2.746 MB / 0.7177 GB, free: 5.816 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.5299, allocations: 0 / 0.7177 GB, free: 5.816 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004289/0.5303, allocations: 119.9 kB / 0.7178 GB, free: 5.699 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004194/0.5307, allocations: 145.1 kB / 0.7179 GB, free: 5.555 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.009e-05/0.5308, allocations: 16 kB / 0.7179 GB, free: 5.539 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004414/0.5352, allocations: 2.497 MB / 0.7204 GB, free: 2.895 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.5352, allocations: 4 kB / 0.7204 GB, free: 2.891 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00495/0.5402, allocations: 1.848 MB / 0.7222 GB, free: 0.9727 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003811/0.5406, allocations: 335.1 kB / 0.7225 GB, free: 0.625 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/0.5407, allocations: 12 kB / 0.7225 GB, free: 0.6133 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00082/0.5415, allocations: 99.81 kB / 0.7226 GB, free: 0.5156 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.5416, allocations: 60.23 kB / 0.7227 GB, free: 468 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.235e-05/0.5417, allocations: 31.98 kB / 0.7227 GB, free: 436 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0009742/0.5427, allocations: 0.874 MB / 0.7236 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5427, allocations: 0 / 0.7236 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001403/0.5441, allocations: 0.7135 MB / 0.7243 GB, free: 14.84 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005817/0.5499, allocations: 2.727 MB / 0.7269 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002216/0.5522, allocations: 1.172 MB / 0.7281 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.5522, allocations: 4.188 kB / 0.7281 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001354/0.5535, allocations: 0.5993 MB / 0.7287 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00366/0.5572, allocations: 0.7855 MB / 0.7294 GB, free: 9.484 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02126/0.5785, allocations: 11.23 MB / 0.7404 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006204/0.5791, allocations: 1.187 MB / 0.7415 GB, free: 12.53 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0009252/0.58, allocations: 299 kB / 0.7418 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006126/0.5807, allocations: 0.5227 MB / 0.7423 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of SimCode: time 3.2e-07/0.5807, allocations: 0 / 0.7423 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.96/4.541, allocations: 42.47 MB / 0.7838 GB, free: 1.785 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002317/4.541, allocations: 251.5 kB / 0.7841 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.231/7.772, allocations: 3.938 kB / 0.7841 GB, free: 1.523 MB / 0.6075 GB (rm -f IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_HeatPumps_Examples_Carnot_y_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_HeatPumps_Examples_Carnot_y.fmu > IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)