Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2",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.001233/0.001233, allocations: 108 kB / 15.61 MB, free: 152 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.001271/0.001271, allocations: 196.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.68/1.68, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04915/0.04915, allocations: 9.095 MB / 278.9 MB, free: 12.16 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 63.89 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.123, allocations: 48.17 MB / 386.3 MB, free: 9.129 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.5026/0.6256, allocations: 196 MB / 0.5687 GB, free: 1.387 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.5036/1.129, allocations: 141.7 MB / 0.707 GB, free: 14.21 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001144/1.131, allocations: 10.62 kB / 0.707 GB, free: 14.2 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00354/1.134, allocations: 1.376 MB / 0.7084 GB, free: 13.05 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004042/1.138, allocations: 1.633 MB / 0.71 GB, free: 11.68 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeClassSections: time 0.1292/1.267, allocations: 38.18 MB / 0.7473 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003314/1.271, allocations: 1.929 MB / 0.7491 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004225/1.271, allocations: 195.6 kB / 0.7493 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001891/1.273, allocations: 0.8181 MB / 0.7501 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008093/1.274, allocations: 0.5263 MB / 0.7506 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.051e-05/1.274, allocations: 60 kB / 0.7507 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.1044/1.378, allocations: 42.19 MB / 0.7919 GB, free: 8.414 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004413/1.379, allocations: 167.3 kB / 0.7921 GB, free: 8.254 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0008728/1.38, allocations: 426.3 kB / 0.7925 GB, free: 7.836 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.4542/1.834, allocations: 18.81 MB / 0.8108 GB, free: 50.14 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/1.834, allocations: 0 / 0.8108 GB, free: 50.14 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.086e-06/1.834, allocations: 0.875 kB / 0.8108 GB, free: 50.14 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.707e-05/1.834, allocations: 0 / 0.8108 GB, free: 50.14 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.01831/1.852, allocations: 3.345 MB / 0.8141 GB, free: 48.39 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/1.852, allocations: 10.16 kB / 0.8141 GB, free: 48.39 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001263/1.852, allocations: 110.2 kB / 0.8142 GB, free: 48.35 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009542/1.853, allocations: 123.3 kB / 0.8143 GB, free: 48.31 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006403/1.854, allocations: 400.3 kB / 0.8147 GB, free: 48.07 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.1e-05/1.854, allocations: 43.28 kB / 0.8148 GB, free: 48.07 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.643e-05/1.854, allocations: 53.41 kB / 0.8148 GB, free: 48.07 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001805/1.856, allocations: 0.817 MB / 0.8156 GB, free: 47.96 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.236e-05/1.856, allocations: 2 kB / 0.8156 GB, free: 47.96 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.318e-05/1.856, allocations: 21.28 kB / 0.8156 GB, free: 47.96 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.032e-05/1.856, allocations: 25.64 kB / 0.8157 GB, free: 47.96 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/1.858, allocations: 0.7589 MB / 0.8164 GB, free: 47.96 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003497/1.862, allocations: 3.434 MB / 0.8198 GB, free: 45.71 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/1.863, allocations: 0.6809 MB / 0.8204 GB, free: 45.69 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007293/1.864, allocations: 484.9 kB / 0.8209 GB, free: 45.68 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3457/2.21, allocations: 185.3 MB / 1.002 GB, free: 17.11 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.059e-05/2.21, allocations: 42.73 kB / 1.002 GB, free: 17.06 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 4.389e-06/2.21, allocations: 0 / 1.002 GB, free: 17.06 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.00945/2.219, allocations: 3.424 MB / 1.005 GB, free: 14.46 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/2.219, allocations: 59.97 kB / 1.005 GB, free: 14.39 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000349/2.22, allocations: 300.2 kB / 1.006 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 5.115e-05/2.22, allocations: 41.83 kB / 1.006 GB, free: 14.1 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/2.22, allocations: 235.2 kB / 1.006 GB, free: 13.91 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/2.22, allocations: 381.6 kB / 1.006 GB, free: 13.58 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/2.22, allocations: 137.4 kB / 1.006 GB, free: 13.49 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001539/2.22, allocations: 367.4 kB / 1.007 GB, free: 13.15 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006394/2.221, allocations: 396 kB / 1.007 GB, free: 12.91 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007112/2.222, allocations: 0.5335 MB / 1.008 GB, free: 12.51 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001429/2.223, allocations: 0.9752 MB / 1.009 GB, free: 11.86 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/2.223, allocations: 4 kB / 1.009 GB, free: 11.86 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001863/2.225, allocations: 1.126 MB / 1.01 GB, free: 11.1 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/2.225, allocations: 8.766 kB / 1.01 GB, free: 11.09 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/2.225, allocations: 4 kB / 1.01 GB, free: 11.09 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003619/2.225, allocations: 109.1 kB / 1.01 GB, free: 11 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009702/2.226, allocations: 213 kB / 1.01 GB, free: 10.81 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4425/2.669, allocations: 46.92 MB / 1.056 GB, free: 389 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006967/2.67, allocations: 39.03 kB / 1.056 GB, free: 389 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.496e-05/2.67, allocations: 23.16 kB / 1.056 GB, free: 389 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (volume1.medium.sat.vap.phase,volume1.medium.sat.liq.phase,volume1.medium.state.phase,ambient.medium.sat.vap.phase,ambient.medium.sat.liq.phase,ambient.medium.state.phase,fixedMassFlowRate.medium.sat.vap.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.state.phase,volume.medium.sat.vap.phase,volume.medium.sat.liq.phase,volume.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000371/2.67, allocations: 221.5 kB / 1.056 GB, free: 388.8 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/2.67, allocations: 58.84 kB / 1.056 GB, free: 388.8 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002569/2.673, allocations: 2.39 MB / 1.058 GB, free: 386.8 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.428e-05/2.673, allocations: 25.27 kB / 1.058 GB, free: 386.8 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/2.673, allocations: 0.75 kB / 1.058 GB, free: 386.8 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00186/2.675, allocations: 1.634 MB / 1.06 GB, free: 385.1 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002772/2.678, allocations: 2.47 MB / 1.062 GB, free: 382.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/2.678, allocations: 0 / 1.062 GB, free: 382.6 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004404/2.678, allocations: 123.8 kB / 1.063 GB, free: 382.4 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004301/2.679, allocations: 211.8 kB / 1.063 GB, free: 382.2 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.406e-05/2.679, allocations: 18.23 kB / 1.063 GB, free: 382.2 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001817/2.68, allocations: 3.977 MB / 1.067 GB, free: 377.9 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/2.68, allocations: 0.5 kB / 1.067 GB, free: 377.9 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002507/2.683, allocations: 1.972 MB / 1.069 GB, free: 375.9 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/2.683, allocations: 128.3 kB / 1.069 GB, free: 375.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.75e-05/2.683, allocations: 12 kB / 1.069 GB, free: 375.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003891/2.684, allocations: 41.69 kB / 1.069 GB, free: 375.7 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/2.684, allocations: 64.47 kB / 1.069 GB, free: 375.7 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.332e-05/2.684, allocations: 23.98 kB / 1.069 GB, free: 375.6 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002114/2.684, allocations: 259.1 kB / 1.069 GB, free: 375.4 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.8e-07/2.684, allocations: 0 / 1.069 GB, free: 375.4 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.01945/2.703, allocations: 4.82 MB / 1.074 GB, free: 371.2 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 14 ($cse13.phase,$cse16.phase,$cse17.phase,$cse18.phase,volume.medium.state.phase,volume.medium.sat.liq.phase,volume.medium.sat.vap.phase,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.sat.vap.phase,ambient.medium.state.phase,volume1.medium.state.phase,volume1.medium.sat.liq.phase,volume1.medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03366/2.737, allocations: 8.229 MB / 1.082 GB, free: 363.8 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003289/2.74, allocations: 1.551 MB / 1.083 GB, free: 362.2 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/2.74, allocations: 0 / 1.083 GB, free: 362.2 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001049/2.741, allocations: 0.833 MB / 1.084 GB, free: 361.3 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002544/2.744, allocations: 0.5297 MB / 1.085 GB, free: 360.8 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02097/2.765, allocations: 8.369 MB / 1.093 GB, free: 352.3 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/2.765, allocations: 0.9293 MB / 1.094 GB, free: 351.3 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.000639/2.766, allocations: 183.7 kB / 1.094 GB, free: 351.2 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002596/2.766, allocations: 255.3 kB / 1.094 GB, free: 350.9 MB / 0.6856 GB Notification: Performance of SimCode: time 7.62e-07/2.766, allocations: 0 / 1.094 GB, free: 350.9 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3509/3.117, allocations: 195.5 MB / 1.285 GB, free: 155 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.4/21.52, allocations: 4.062 kB / 1.285 GB, free: 155 MB / 0.6856 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe 2>&1)