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.007141/0.007141, allocations: 95.36 kB / 15.73 MB, free: 6.039 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.001798/0.001798, allocations: 197.3 kB / 16.68 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.27/1.27, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7173/0.7173, allocations: 132.2 MB / 422.7 MB, free: 1.691 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 71.66 kB / 0.5809 GB, free: 1.125 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.139, allocations: 80.21 MB / 0.6592 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_y): time 0.06668/0.2057, allocations: 75.18 MB / 0.7326 GB, free: 2.602 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01838/0.2242, allocations: 15.13 MB / 0.7474 GB, free: 3.418 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002526/0.2267, allocations: 63.62 kB / 0.7474 GB, free: 3.355 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002225/0.229, allocations: 0.8541 MB / 0.7483 GB, free: 2.496 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.007125/0.2362, allocations: 2.72 MB / 0.7509 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003803/0.24, allocations: 1.391 MB / 0.7523 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.006281/0.2463, allocations: 4.415 MB / 0.7566 GB, free: 9.961 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001958/0.2483, allocations: 1.445 MB / 0.758 GB, free: 8.484 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00343/0.2517, allocations: 1.679 MB / 0.7597 GB, free: 6.805 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002097/0.2538, allocations: 1.225 MB / 0.7609 GB, free: 5.574 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003399/0.2542, allocations: 164 kB / 0.761 GB, free: 5.414 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003016/0.2572, allocations: 1.4 MB / 0.7624 GB, free: 4.012 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004486/0.2577, allocations: 394.6 kB / 0.7628 GB, free: 3.625 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001077/0.2588, allocations: 0.9099 MB / 0.7636 GB, free: 2.711 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00391/0.2627, allocations: 2.889 MB / 0.7665 GB, free: 15.81 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2627, allocations: 0 / 0.7665 GB, free: 15.81 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.482e-06/0.2627, allocations: 0 / 0.7665 GB, free: 15.81 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.118e-05/0.2628, allocations: 3.938 kB / 0.7665 GB, free: 15.81 MB / 0.6075 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.003461/0.2662, allocations: 2.151 MB / 0.7686 GB, free: 13.59 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.2663, allocations: 12.03 kB / 0.7686 GB, free: 13.58 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001563/0.2664, allocations: 148.1 kB / 0.7687 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007575/0.2672, allocations: 239.5 kB / 0.769 GB, free: 13.19 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002365/0.2696, allocations: 1.544 MB / 0.7705 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.907e-05/0.2696, allocations: 74 kB / 0.7705 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001364/0.2698, allocations: 100 kB / 0.7706 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001862/0.2717, allocations: 1.1 MB / 0.7717 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.632e-05/0.2717, allocations: 4 kB / 0.7717 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.265e-05/0.2718, allocations: 36 kB / 0.7717 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.36e-05/0.2718, allocations: 28 kB / 0.7718 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001822/0.2737, allocations: 0.8938 MB / 0.7726 GB, free: 9.328 MB / 0.6075 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.005772/0.2794, allocations: 4.928 MB / 0.7774 GB, free: 4.113 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/0.2808, allocations: 0.6165 MB / 0.7781 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007071/0.2816, allocations: 353 kB / 0.7784 GB, free: 3.148 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006112/0.2822, allocations: 0.8238 MB / 0.7792 GB, free: 2.137 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.2822, allocations: 39.12 kB / 0.7792 GB, free: 2.09 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=61): time 2.544e-06/0.2822, allocations: 0 / 0.7792 GB, free: 2.09 MB / 0.6075 GB Notification: Performance of matching and sorting (n=61): time 0.007064/0.2893, allocations: 1.706 MB / 0.7809 GB, free: 368 kB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.2894, allocations: 59.91 kB / 0.781 GB, free: 296 kB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.2911, allocations: 1.226 MB / 0.7822 GB, free: 15.04 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 8.763e-05/0.2912, allocations: 41.7 kB / 0.7822 GB, free: 15 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005205/0.2917, allocations: 0.6113 MB / 0.7828 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002028/0.2919, allocations: 225.9 kB / 0.783 GB, free: 14.16 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002357/0.2922, allocations: 158.5 kB / 0.7832 GB, free: 14 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.2923, allocations: 337.9 kB / 0.7835 GB, free: 13.66 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000659/0.2929, allocations: 288.7 kB / 0.7838 GB, free: 13.38 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008291/0.2938, allocations: 0.4896 MB / 0.7842 GB, free: 12.82 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001384/0.2952, allocations: 0.7051 MB / 0.7849 GB, free: 12.07 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.2952, allocations: 4 kB / 0.7849 GB, free: 12.06 MB / 0.6231 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004571/0.2998, allocations: 1.274 MB / 0.7862 GB, free: 10.77 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.2998, allocations: 7.938 kB / 0.7862 GB, free: 10.77 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.2998, allocations: 8.359 kB / 0.7862 GB, free: 10.76 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005707/0.3004, allocations: 148.7 kB / 0.7863 GB, free: 10.61 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005886/0.301, allocations: 151.8 kB / 0.7865 GB, free: 10.46 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007966/0.3018, allocations: 0.7045 MB / 0.7872 GB, free: 9.73 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00098/0.3028, allocations: 123.3 kB / 0.7873 GB, free: 9.609 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.345e-05/0.3029, allocations: 31.98 kB / 0.7873 GB, free: 9.578 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001033/0.3039, allocations: 0.5527 MB / 0.7878 GB, free: 9.02 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007742/0.3047, allocations: 0.4928 MB / 0.7883 GB, free: 8.449 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001317/0.3061, allocations: 0.7012 MB / 0.789 GB, free: 7.699 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.886e-06/0.3061, allocations: 4 kB / 0.789 GB, free: 7.695 MB / 0.6231 GB Notification: Performance of matching and sorting (n=88) (initialization_lambda0): time 0.004382/0.3105, allocations: 1.274 MB / 0.7903 GB, free: 6.41 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.3105, allocations: 13.91 kB / 0.7903 GB, free: 6.398 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.3105, allocations: 4 kB / 0.7903 GB, free: 6.395 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004718/0.311, allocations: 145.1 kB / 0.7904 GB, free: 6.25 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005699/0.3116, allocations: 151.8 kB / 0.7906 GB, free: 6.102 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007348/0.3123, allocations: 0.7045 MB / 0.7912 GB, free: 5.371 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009692/0.3133, allocations: 107.6 kB / 0.7913 GB, free: 5.266 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.337e-05/0.3134, allocations: 28 kB / 0.7914 GB, free: 5.238 MB / 0.6231 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.0002147/0.3136, allocations: 234.9 kB / 0.7916 GB, free: 5.004 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002795/0.3139, allocations: 143.1 kB / 0.7917 GB, free: 4.863 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004455/0.3183, allocations: 1.26 MB / 0.793 GB, free: 3.586 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.3183, allocations: 8 kB / 0.793 GB, free: 3.578 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.3184, allocations: 0 / 0.793 GB, free: 3.578 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003962/0.3223, allocations: 1.107 MB / 0.7941 GB, free: 2.438 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00628/0.3286, allocations: 2.614 MB / 0.7966 GB, free: 15.71 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.919e-06/0.3287, allocations: 7.938 kB / 0.7966 GB, free: 15.7 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004608/0.3291, allocations: 111.9 kB / 0.7967 GB, free: 15.59 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000465/0.3296, allocations: 129.1 kB / 0.7968 GB, free: 15.46 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.617e-05/0.3297, allocations: 27.91 kB / 0.7969 GB, free: 15.43 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004848/0.3345, allocations: 2.635 MB / 0.7994 GB, free: 12.65 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.772e-06/0.3346, allocations: 7.938 kB / 0.7995 GB, free: 12.64 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005283/0.3398, allocations: 1.7 MB / 0.8011 GB, free: 10.87 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00068/0.3405, allocations: 320 kB / 0.8014 GB, free: 10.54 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003192/0.3409, allocations: 24 kB / 0.8014 GB, free: 10.52 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009187/0.3418, allocations: 55.94 kB / 0.8015 GB, free: 10.46 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.342, allocations: 60.23 kB / 0.8016 GB, free: 10.4 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.56e-05/0.342, allocations: 31.98 kB / 0.8016 GB, free: 10.37 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001481/0.3435, allocations: 0.8818 MB / 0.8024 GB, free: 9.488 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.51e-07/0.3435, allocations: 0 / 0.8024 GB, free: 9.488 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001996/0.3455, allocations: 0.7331 MB / 0.8032 GB, free: 8.754 MB / 0.6387 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.00621/0.3518, allocations: 2.597 MB / 0.8057 GB, free: 6.102 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002585/0.3544, allocations: 1.121 MB / 0.8068 GB, free: 4.98 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.3544, allocations: 0 / 0.8068 GB, free: 4.98 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001458/0.3559, allocations: 0.5565 MB / 0.8073 GB, free: 4.406 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003656/0.3595, allocations: 0.8007 MB / 0.8081 GB, free: 3.645 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3004/0.6599, allocations: 9.863 MB / 0.8177 GB, free: 144.6 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006203/0.6606, allocations: 1.179 MB / 0.8189 GB, free: 143.8 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001125/0.6617, allocations: 304.7 kB / 0.8192 GB, free: 143.8 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005879/0.6623, allocations: 0.5161 MB / 0.8197 GB, free: 143.4 MB / 0.6387 GB Notification: Performance of SimCode: time 1.052e-06/0.6623, allocations: 0 / 0.8197 GB, free: 143.4 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0658/0.7282, allocations: 42.58 MB / 0.8613 GB, free: 112.7 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.29/14.02, allocations: 3.125 kB / 0.8613 GB, free: 112.7 MB / 0.6387 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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 IDEAS_IDEAS_Fluid_HeatPumps_Examples_Carnot_y.fmu > IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)