Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.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.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder",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.001263/0.001263, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 192.3 kB / 16.53 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.263/1.263, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7206/0.7206, allocations: 132.2 MB / 422.6 MB, free: 1.789 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 63.5 kB / 0.5019 GB, free: 3.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3576/0.3589, allocations: 80.2 MB / 0.5802 GB, free: 4.57 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.00551/0.3644, allocations: 4.543 MB / 0.5846 GB, free: 1.293 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009236/0.3654, allocations: 0.8143 MB / 0.5854 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.914e-05/0.3655, allocations: 1.031 kB / 0.5854 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001482/0.3656, allocations: 32.58 kB / 0.5855 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 6.973e-05/0.3657, allocations: 31.73 kB / 0.5855 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005242/0.3663, allocations: 173.4 kB / 0.5857 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001787/0.3664, allocations: 172.3 kB / 0.5858 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.108e-05/0.3665, allocations: 20.02 kB / 0.5858 GB, free: 0.5 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001733/0.3667, allocations: 80.31 kB / 0.5859 GB, free: 476 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.3668, allocations: 83.33 kB / 0.586 GB, free: 436 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3e-05/0.3669, allocations: 12.53 kB / 0.586 GB, free: 436 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003748/0.3673, allocations: 151.4 kB / 0.5862 GB, free: 392 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.378e-05/0.3673, allocations: 35.39 kB / 0.5862 GB, free: 368 kB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 7.252e-05/0.3674, allocations: 67.28 kB / 0.5863 GB, free: 328 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000384/0.3678, allocations: 239.6 kB / 0.5865 GB, free: 240 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3678, allocations: 1.312 kB / 0.5865 GB, free: 240 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3678, allocations: 0 / 0.5865 GB, free: 240 kB / 430.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.3678, allocations: 0 / 0.5865 GB, free: 240 kB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008504/0.3687, allocations: 480.4 kB / 0.5869 GB, free: 15.81 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.3687, allocations: 9.312 kB / 0.587 GB, free: 15.81 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.114e-05/0.3687, allocations: 38.88 kB / 0.587 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.127e-05/0.3688, allocations: 16.55 kB / 0.587 GB, free: 15.76 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001213/0.3689, allocations: 187.9 kB / 0.5872 GB, free: 15.55 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.369, allocations: 12.88 kB / 0.5872 GB, free: 15.54 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.604e-05/0.369, allocations: 12.59 kB / 0.5872 GB, free: 15.54 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000329/0.3693, allocations: 117.5 kB / 0.5873 GB, free: 15.48 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.3693, allocations: 1.312 kB / 0.5873 GB, free: 15.48 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.3694, allocations: 4 kB / 0.5873 GB, free: 15.47 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.3694, allocations: 1.562 kB / 0.5873 GB, free: 15.47 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004314/0.3698, allocations: 146.4 kB / 0.5875 GB, free: 15.43 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000974/0.3708, allocations: 470.2 kB / 0.5879 GB, free: 15.08 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003055/0.3711, allocations: 127 kB / 0.588 GB, free: 15.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002099/0.3713, allocations: 73.66 kB / 0.5881 GB, free: 14.99 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001374/0.3727, allocations: 0.9594 MB / 0.589 GB, free: 14.08 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.3727, allocations: 40.27 kB / 0.5891 GB, free: 14.03 MB / 446.1 MB Notification: Performance of pre-optimization done (n=12): time 2.705e-06/0.3728, allocations: 5.016 kB / 0.5891 GB, free: 14.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006844/0.3734, allocations: 215.7 kB / 0.5893 GB, free: 13.95 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.706e-05/0.3735, allocations: 58.77 kB / 0.5893 GB, free: 13.88 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.3736, allocations: 156.2 kB / 0.5895 GB, free: 13.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.3737, allocations: 30.55 kB / 0.5895 GB, free: 13.73 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.393e-05/0.3738, allocations: 109.3 kB / 0.5896 GB, free: 13.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.137e-05/0.3738, allocations: 38.59 kB / 0.5897 GB, free: 13.59 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.482e-05/0.3739, allocations: 50.77 kB / 0.5897 GB, free: 13.56 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.374, allocations: 324.6 kB / 0.59 GB, free: 13.24 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002409/0.3742, allocations: 76.05 kB / 0.5901 GB, free: 13.22 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002554/0.3745, allocations: 113.2 kB / 0.5902 GB, free: 13.16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004357/0.375, allocations: 171.9 kB / 0.5904 GB, free: 13.09 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.375, allocations: 0 / 0.5904 GB, free: 13.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005891/0.3756, allocations: 246 kB / 0.5906 GB, free: 12.98 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.3756, allocations: 5.5 kB / 0.5906 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3756, allocations: 5.359 kB / 0.5906 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.3756, allocations: 2.484 kB / 0.5906 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002627/0.3759, allocations: 58.36 kB / 0.5907 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.3759, allocations: 2.25 kB / 0.5907 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001697/0.3761, allocations: 36.05 kB / 0.5907 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/0.3761, allocations: 6.969 kB / 0.5907 GB, free: 12.95 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.196e-05/0.3762, allocations: 131.9 kB / 0.5908 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.864e-05/0.3762, allocations: 12.88 kB / 0.5909 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004936/0.3767, allocations: 173.2 kB / 0.591 GB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.3768, allocations: 1.312 kB / 0.591 GB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.3768, allocations: 4 kB / 0.591 GB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3768, allocations: 1.438 kB / 0.591 GB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000228/0.377, allocations: 222.5 kB / 0.5912 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.377, allocations: 0.8438 kB / 0.5912 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.3772, allocations: 33.69 kB / 0.5913 GB, free: 12.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.3772, allocations: 3.938 kB / 0.5913 GB, free: 12.51 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.3772, allocations: 1.094 kB / 0.5913 GB, free: 12.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3772, allocations: 2 kB / 0.5913 GB, free: 12.51 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3772, allocations: 0 / 0.5913 GB, free: 12.51 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000471/0.3777, allocations: 257.1 kB / 0.5915 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.372e-05/0.3778, allocations: 106.4 kB / 0.5916 GB, free: 12.22 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.3778, allocations: 2.094 kB / 0.5916 GB, free: 12.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/0.378, allocations: 16.25 kB / 0.5916 GB, free: 12.22 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.206e-05/0.378, allocations: 11.39 kB / 0.5917 GB, free: 12.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.337e-06/0.378, allocations: 2.875 kB / 0.5917 GB, free: 12.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.93e-05/0.3781, allocations: 119.4 kB / 0.5918 GB, free: 12.13 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3781, allocations: 0 / 0.5918 GB, free: 12.13 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003584/0.3785, allocations: 58.92 kB / 0.5918 GB, free: 12.12 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008725/0.3794, allocations: 0.8541 MB / 0.5927 GB, free: 11.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005191/0.3799, allocations: 180.7 kB / 0.5928 GB, free: 11.34 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3799, allocations: 0 / 0.5928 GB, free: 11.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002019/0.3801, allocations: 63.77 kB / 0.5929 GB, free: 11.33 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003566/0.3805, allocations: 26.11 kB / 0.5929 GB, free: 11.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002612/0.3831, allocations: 1.937 MB / 0.5948 GB, free: 9.848 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.3834, allocations: 0.7023 MB / 0.5955 GB, free: 9.152 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001024/0.3835, allocations: 24.25 kB / 0.5955 GB, free: 9.141 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.349e-05/0.3836, allocations: 35.14 kB / 0.5956 GB, free: 9.117 MB / 446.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3836, allocations: 0 / 0.5956 GB, free: 9.117 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01947/0.4031, allocations: 4.227 MB / 0.5997 GB, free: 7.473 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.915/7.319, allocations: 6.016 kB / 0.5997 GB, free: 7.473 MB / 446.1 MB (rm -f IDEAS_IDEAS.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder_res.csv --start-time 0 --stop-time 250 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 IDEAS_IDEAS_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.fmu > IDEAS_IDEAS.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1)