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.005245/0.005245, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001405/0.001405, allocations: 200.1 kB / 16.68 MB, free: 5.969 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.28/1.28, allocations: 205.1 MB / 222.6 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04734/0.04734, allocations: 9.104 MB / 279 MB, free: 12.09 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.001992/0.001992, allocations: 67.91 kB / 387 MB, free: 8.461 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.2207, allocations: 48.16 MB / 435.2 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.393/0.6137, allocations: 196 MB / 0.6164 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1055/0.7192, allocations: 141.7 MB / 0.7548 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006572/0.7199, allocations: 7.938 kB / 0.7548 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002793/0.7227, allocations: 1.365 MB / 0.7562 GB, free: 11.67 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003111/0.7258, allocations: 1.641 MB / 0.7578 GB, free: 10.02 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.09062/0.8165, allocations: 38.17 MB / 0.795 GB, free: 3.703 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002481/0.819, allocations: 1.916 MB / 0.7969 GB, free: 1.777 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003221/0.8193, allocations: 203.9 kB / 0.7971 GB, free: 1.57 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001329/0.8206, allocations: 0.8249 MB / 0.7979 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006349/0.8213, allocations: 0.5252 MB / 0.7984 GB, free: 220 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.708e-05/0.8214, allocations: 60 kB / 0.7985 GB, free: 160 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3276/1.149, allocations: 44.15 MB / 0.8416 GB, free: 45.22 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003032/1.149, allocations: 164.9 kB / 0.8418 GB, free: 45.22 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006226/1.15, allocations: 430.3 kB / 0.8422 GB, free: 45.22 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.04852/1.198, allocations: 18.87 MB / 0.8606 GB, free: 44.64 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/1.199, allocations: 2.219 kB / 0.8606 GB, free: 44.64 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.963e-06/1.199, allocations: 0 / 0.8606 GB, free: 44.64 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9.698e-06/1.199, allocations: 1.75 kB / 0.8606 GB, free: 44.64 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.007734/1.206, allocations: 3.493 MB / 0.864 GB, free: 42.73 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/1.206, allocations: 10.56 kB / 0.864 GB, free: 42.73 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.693e-05/1.206, allocations: 106.2 kB / 0.8641 GB, free: 42.69 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007374/1.207, allocations: 127.3 kB / 0.8642 GB, free: 42.65 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004875/1.208, allocations: 411.2 kB / 0.8646 GB, free: 42.41 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.439e-05/1.208, allocations: 41.72 kB / 0.8647 GB, free: 42.41 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.95e-05/1.208, allocations: 48.09 kB / 0.8647 GB, free: 42.41 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/1.209, allocations: 0.8162 MB / 0.8655 GB, free: 42.3 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/1.209, allocations: 13.8 kB / 0.8655 GB, free: 42.29 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.416e-05/1.209, allocations: 15.97 kB / 0.8655 GB, free: 42.29 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.761e-05/1.209, allocations: 27.3 kB / 0.8656 GB, free: 42.29 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001538/1.211, allocations: 0.7581 MB / 0.8663 GB, free: 42.29 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002398/1.213, allocations: 3.413 MB / 0.8696 GB, free: 40.05 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/1.215, allocations: 0.6799 MB / 0.8703 GB, free: 40.02 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006538/1.215, allocations: 484.7 kB / 0.8708 GB, free: 40 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3086/1.524, allocations: 185.3 MB / 1.052 GB, free: 14.94 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.011e-05/1.524, allocations: 41.84 kB / 1.052 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=109): time 3.336e-06/1.524, allocations: 0 / 1.052 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of matching and sorting (n=117): time 0.009458/1.533, allocations: 3.428 MB / 1.055 GB, free: 12.3 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.059e-05/1.534, allocations: 63.25 kB / 1.055 GB, free: 12.23 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003413/1.534, allocations: 311 kB / 1.055 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.066e-05/1.534, allocations: 36.52 kB / 1.056 GB, free: 11.94 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/1.534, allocations: 236.2 kB / 1.056 GB, free: 11.74 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002923/1.534, allocations: 402.1 kB / 1.056 GB, free: 11.4 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001804/1.535, allocations: 134.4 kB / 1.056 GB, free: 11.31 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001568/1.535, allocations: 365 kB / 1.057 GB, free: 10.97 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000691/1.535, allocations: 401.2 kB / 1.057 GB, free: 10.73 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007865/1.536, allocations: 0.5265 MB / 1.058 GB, free: 10.33 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001526/1.538, allocations: 0.9818 MB / 1.058 GB, free: 9.68 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/1.538, allocations: 0 / 1.058 GB, free: 9.68 MB / 0.7481 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002047/1.54, allocations: 1.135 MB / 1.06 GB, free: 8.914 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/1.54, allocations: 4 kB / 1.06 GB, free: 8.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/1.54, allocations: 4 kB / 1.06 GB, free: 8.906 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003739/1.54, allocations: 112.3 kB / 1.06 GB, free: 8.812 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009654/1.541, allocations: 200.4 kB / 1.06 GB, free: 8.633 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4051/1.946, allocations: 35.3 MB / 1.094 GB, free: 224.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005698/1.947, allocations: 48.83 kB / 1.094 GB, free: 224.8 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.151e-05/1.947, allocations: 22.91 kB / 1.094 GB, free: 224.8 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.0002837/1.947, allocations: 219.7 kB / 1.095 GB, free: 224.7 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/1.947, allocations: 64.39 kB / 1.095 GB, free: 224.7 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002657/1.95, allocations: 2.39 MB / 1.097 GB, free: 224.4 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.158e-05/1.95, allocations: 19.77 kB / 1.097 GB, free: 224.4 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/1.95, allocations: 5.25 kB / 1.097 GB, free: 224.4 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00186/1.952, allocations: 1.648 MB / 1.099 GB, free: 224 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002766/1.955, allocations: 2.458 MB / 1.101 GB, free: 223.7 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.227e-06/1.955, allocations: 0 / 1.101 GB, free: 223.7 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004633/1.955, allocations: 123 kB / 1.101 GB, free: 223.7 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000435/1.956, allocations: 206.5 kB / 1.101 GB, free: 223.6 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.569e-05/1.956, allocations: 13.41 kB / 1.101 GB, free: 223.6 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001713/1.957, allocations: 3.984 MB / 1.105 GB, free: 219.9 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/1.957, allocations: 0 / 1.105 GB, free: 219.9 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00273/1.96, allocations: 1.97 MB / 1.107 GB, free: 219.7 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/1.96, allocations: 139.7 kB / 1.107 GB, free: 219.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.264e-05/1.96, allocations: 14 kB / 1.107 GB, free: 219.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003855/1.961, allocations: 35.16 kB / 1.107 GB, free: 219.6 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/1.961, allocations: 63.8 kB / 1.107 GB, free: 219.6 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-05/1.961, allocations: 25.08 kB / 1.107 GB, free: 219.6 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002381/1.961, allocations: 257.9 kB / 1.108 GB, free: 219.5 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.4e-07/1.961, allocations: 0 / 1.108 GB, free: 219.5 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.01255/1.974, allocations: 5.542 MB / 1.113 GB, free: 219.4 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.02379/1.998, allocations: 9.165 MB / 1.122 GB, free: 217.6 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002729/2, allocations: 1.573 MB / 1.124 GB, free: 217.3 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/2, allocations: 0 / 1.124 GB, free: 217.3 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.000982/2.001, allocations: 0.8321 MB / 1.124 GB, free: 217 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002264/2.004, allocations: 0.5281 MB / 1.125 GB, free: 217 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01425/2.018, allocations: 8.629 MB / 1.133 GB, free: 213.8 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002555/2.018, allocations: 0.9316 MB / 1.134 GB, free: 213.1 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004482/2.019, allocations: 189.1 kB / 1.134 GB, free: 213.1 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002499/2.019, allocations: 253.1 kB / 1.135 GB, free: 213.1 MB / 0.7637 GB Notification: Performance of SimCode: time 4.41e-07/2.019, allocations: 0 / 1.135 GB, free: 213.1 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.771/5.79, allocations: 211.1 MB / 1.341 GB, free: 408.3 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.43/29.22, allocations: 9.781 kB / 1.341 GB, free: 408.3 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)