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.006321/0.006321, allocations: 103.2 kB / 15.73 MB, free: 6.043 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.001235/0.001236, allocations: 194.1 kB / 16.68 MB, free: 5.965 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.516/1.516, allocations: 205.1 MB / 222.6 MB, free: 4.395 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04992/0.04992, allocations: 9.104 MB / 279 MB, free: 11.94 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.00169/0.00169, allocations: 68.45 kB / 387 MB, free: 8.449 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.3237, allocations: 48.16 MB / 435.2 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.5324/0.8562, allocations: 196 MB / 0.6164 GB, free: 1.004 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1191/0.9754, allocations: 141.7 MB / 0.7548 GB, free: 13.13 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001191/0.9766, allocations: 11.94 kB / 0.7548 GB, free: 13.12 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003594/0.9802, allocations: 1.361 MB / 0.7561 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003955/0.9842, allocations: 1.638 MB / 0.7577 GB, free: 10.11 MB / 0.5294 GB [/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.1041/1.088, allocations: 38.17 MB / 0.795 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002439/1.091, allocations: 1.928 MB / 0.7969 GB, free: 1.855 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003299/1.091, allocations: 194.6 kB / 0.7971 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001511/1.093, allocations: 0.8443 MB / 0.7979 GB, free: 0.8086 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006319/1.093, allocations: 0.5291 MB / 0.7984 GB, free: 284 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.174e-05/1.093, allocations: 60 kB / 0.7985 GB, free: 224 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4503/1.544, allocations: 44.15 MB / 0.8416 GB, free: 45.32 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004136/1.544, allocations: 168.8 kB / 0.8418 GB, free: 45.32 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000927/1.545, allocations: 427.2 kB / 0.8422 GB, free: 45.32 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.06203/1.607, allocations: 18.82 MB / 0.8605 GB, free: 45.1 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/1.607, allocations: 2.812 kB / 0.8605 GB, free: 45.1 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.433e-06/1.607, allocations: 0 / 0.8605 GB, free: 45.1 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.745e-05/1.607, allocations: 1.469 kB / 0.8606 GB, free: 45.1 MB / 0.5919 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.01069/1.618, allocations: 3.347 MB / 0.8638 GB, free: 43.35 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/1.618, allocations: 11.22 kB / 0.8638 GB, free: 43.35 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000122/1.618, allocations: 111.3 kB / 0.8639 GB, free: 43.31 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009101/1.619, allocations: 119.5 kB / 0.8641 GB, free: 43.27 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007943/1.62, allocations: 409.9 kB / 0.8644 GB, free: 43.04 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.34e-05/1.62, allocations: 40.44 kB / 0.8645 GB, free: 43.04 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.133e-05/1.62, allocations: 50.94 kB / 0.8645 GB, free: 43.03 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001722/1.622, allocations: 0.8172 MB / 0.8653 GB, free: 42.92 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.565e-05/1.622, allocations: 5.969 kB / 0.8653 GB, free: 42.92 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.481e-05/1.622, allocations: 23.62 kB / 0.8654 GB, free: 42.92 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.991e-05/1.622, allocations: 25.19 kB / 0.8654 GB, free: 42.92 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00173/1.624, allocations: 0.753 MB / 0.8661 GB, free: 42.92 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003103/1.627, allocations: 3.412 MB / 0.8694 GB, free: 40.68 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/1.628, allocations: 0.6842 MB / 0.8701 GB, free: 40.65 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000664/1.629, allocations: 489.8 kB / 0.8706 GB, free: 40.63 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3331/1.962, allocations: 185.3 MB / 1.052 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.316e-05/1.962, allocations: 38.88 kB / 1.052 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=109): time 3.156e-06/1.962, allocations: 0 / 1.052 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of matching and sorting (n=117): time 0.009723/1.972, allocations: 3.42 MB / 1.055 GB, free: 13.1 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/1.972, allocations: 62.59 kB / 1.055 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003575/1.972, allocations: 308.7 kB / 1.055 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.716e-05/1.972, allocations: 37.77 kB / 1.055 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/1.973, allocations: 231.6 kB / 1.056 GB, free: 12.54 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002622/1.973, allocations: 382.7 kB / 1.056 GB, free: 12.22 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001864/1.973, allocations: 133.8 kB / 1.056 GB, free: 12.13 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001429/1.973, allocations: 366.9 kB / 1.056 GB, free: 11.79 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006996/1.974, allocations: 401.3 kB / 1.057 GB, free: 11.55 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007488/1.975, allocations: 0.5344 MB / 1.057 GB, free: 11.14 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001564/1.976, allocations: 0.9838 MB / 1.058 GB, free: 10.49 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/1.976, allocations: 0 / 1.058 GB, free: 10.49 MB / 0.7481 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002148/1.978, allocations: 1.128 MB / 1.059 GB, free: 9.73 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/1.978, allocations: 4 kB / 1.059 GB, free: 9.727 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/1.978, allocations: 4 kB / 1.059 GB, free: 9.723 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004226/1.979, allocations: 107.7 kB / 1.059 GB, free: 9.629 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/1.98, allocations: 205.2 kB / 1.06 GB, free: 9.449 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3733/2.353, allocations: 35.27 MB / 1.094 GB, free: 423.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000727/2.354, allocations: 45.02 kB / 1.094 GB, free: 423.3 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.207e-05/2.354, allocations: 25.28 kB / 1.094 GB, free: 423.3 MB / 0.7637 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.0003582/2.354, allocations: 223.7 kB / 1.094 GB, free: 423.2 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/2.355, allocations: 62.25 kB / 1.094 GB, free: 423.2 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003151/2.358, allocations: 2.38 MB / 1.097 GB, free: 422.9 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.777e-05/2.358, allocations: 18.31 kB / 1.097 GB, free: 422.9 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/2.358, allocations: 1.156 kB / 1.097 GB, free: 422.9 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002282/2.36, allocations: 1.652 MB / 1.098 GB, free: 422.5 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003444/2.364, allocations: 2.456 MB / 1.101 GB, free: 421.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/2.364, allocations: 0 / 1.101 GB, free: 421.4 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004972/2.364, allocations: 123 kB / 1.101 GB, free: 421.4 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004913/2.365, allocations: 216.5 kB / 1.101 GB, free: 421.3 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.809e-05/2.365, allocations: 19.58 kB / 1.101 GB, free: 421.3 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002105/2.367, allocations: 3.977 MB / 1.105 GB, free: 417.3 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/2.367, allocations: 1.219 kB / 1.105 GB, free: 417.3 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003402/2.37, allocations: 1.969 MB / 1.107 GB, free: 416.4 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002262/2.37, allocations: 129.2 kB / 1.107 GB, free: 416.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.608e-05/2.371, allocations: 15.84 kB / 1.107 GB, free: 416.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004173/2.371, allocations: 41.58 kB / 1.107 GB, free: 416.3 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/2.371, allocations: 60.75 kB / 1.107 GB, free: 416.3 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-05/2.371, allocations: 21.08 kB / 1.107 GB, free: 416.3 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002836/2.372, allocations: 260.8 kB / 1.107 GB, free: 416.1 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.2e-07/2.372, allocations: 0 / 1.107 GB, free: 416.1 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.01549/2.387, allocations: 5.451 MB / 1.113 GB, free: 415.9 MB / 0.7637 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.03383/2.421, allocations: 9.075 MB / 1.122 GB, free: 413.7 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003152/2.424, allocations: 1.573 MB / 1.123 GB, free: 412.9 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/2.424, allocations: 0 / 1.123 GB, free: 412.9 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001045/2.425, allocations: 0.8214 MB / 1.124 GB, free: 412.4 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002264/2.427, allocations: 0.5326 MB / 1.124 GB, free: 412.3 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01944/2.447, allocations: 8.517 MB / 1.133 GB, free: 407.8 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003653/2.447, allocations: 0.9362 MB / 1.134 GB, free: 407.1 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006507/2.448, allocations: 188.9 kB / 1.134 GB, free: 407.1 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000282/2.448, allocations: 255.2 kB / 1.134 GB, free: 406.9 MB / 0.7637 GB Notification: Performance of SimCode: time 8.52e-07/2.448, allocations: 0 / 1.134 GB, free: 406.9 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2723/2.721, allocations: 211.4 MB / 1.341 GB, free: 201 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.47/23.19, allocations: 7.891 kB / 1.341 GB, free: 201 MB / 0.7637 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe 2>&1)