Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.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.EthanolTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel",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.001582/0.001582, 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.001828/0.001828, allocations: 194.3 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.6/1.6, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04925/0.04925, allocations: 9.097 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.002884/0.002884, allocations: 63.89 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1403, allocations: 48.16 MB / 386.3 MB, free: 9.141 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.4018/0.5421, allocations: 127.6 MB / 0.5018 GB, free: 6.125 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.5053/1.047, allocations: 109.6 MB / 0.6088 GB, free: 308 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009604/1.048, allocations: 9.219 kB / 0.6088 GB, free: 308 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003354/1.052, allocations: 1.014 MB / 0.6098 GB, free: 304 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003193/1.055, allocations: 1.085 MB / 0.6109 GB, free: 296 kB / 446.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.09089/1.146, allocations: 28.65 MB / 0.6388 GB, free: 14.34 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002278/1.148, allocations: 1.364 MB / 0.6402 GB, free: 14.21 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002836/1.149, allocations: 130.5 kB / 0.6403 GB, free: 14.17 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02115/1.17, allocations: 11.91 MB / 0.6519 GB, free: 9.703 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006117/1.17, allocations: 372.4 kB / 0.6523 GB, free: 9.473 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.36e-05/1.171, allocations: 40 kB / 0.6523 GB, free: 9.434 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07178/1.242, allocations: 31.66 MB / 0.6832 GB, free: 2.484 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003626/1.243, allocations: 118.8 kB / 0.6834 GB, free: 2.387 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008035/1.244, allocations: 313.1 kB / 0.6837 GB, free: 2.086 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05709/1.301, allocations: 14.1 MB / 0.6974 GB, free: 5.074 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.774e-06/1.301, allocations: 0 / 0.6974 GB, free: 5.074 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.653e-06/1.301, allocations: 3.938 kB / 0.6974 GB, free: 5.07 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.468e-05/1.301, allocations: 0 / 0.6974 GB, free: 5.07 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.008781/1.309, allocations: 2.563 MB / 0.6999 GB, free: 2.461 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.424e-05/1.31, allocations: 8.031 kB / 0.6999 GB, free: 2.453 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001014/1.31, allocations: 82.52 kB / 0.7 GB, free: 2.363 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006675/1.31, allocations: 87.39 kB / 0.7001 GB, free: 2.277 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004116/1.311, allocations: 341.9 kB / 0.7004 GB, free: 1.91 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.654e-05/1.311, allocations: 32.66 kB / 0.7005 GB, free: 1.879 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.183e-05/1.311, allocations: 28 kB / 0.7005 GB, free: 1.852 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/1.312, allocations: 0.6031 MB / 0.7011 GB, free: 1.234 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.181e-05/1.312, allocations: 3.906 kB / 0.7011 GB, free: 1.23 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.569e-05/1.312, allocations: 20.81 kB / 0.7011 GB, free: 1.211 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.305e-05/1.312, allocations: 14.34 kB / 0.7011 GB, free: 1.199 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001297/1.314, allocations: 0.5482 MB / 0.7016 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002857/1.317, allocations: 2.561 MB / 0.7041 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/1.318, allocations: 0.5028 MB / 0.7046 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005414/1.318, allocations: 334.3 kB / 0.705 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4852/1.803, allocations: 139 MB / 0.8407 GB, free: 277.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.601e-05/1.804, allocations: 34.84 kB / 0.8407 GB, free: 277.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 5.15e-06/1.804, allocations: 0 / 0.8407 GB, free: 277.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.006888/1.81, allocations: 2.337 MB / 0.843 GB, free: 276.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/1.811, allocations: 59.12 kB / 0.843 GB, free: 276.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003066/1.811, allocations: 250.6 kB / 0.8433 GB, free: 276.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.683e-05/1.811, allocations: 29.7 kB / 0.8433 GB, free: 276.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/1.811, allocations: 182.3 kB / 0.8435 GB, free: 275.9 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001868/1.811, allocations: 279.1 kB / 0.8438 GB, free: 275.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001538/1.811, allocations: 97.45 kB / 0.8439 GB, free: 275.6 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.813e-05/1.811, allocations: 350.7 kB / 0.8442 GB, free: 275.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005209/1.812, allocations: 271.3 kB / 0.8444 GB, free: 275.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005404/1.813, allocations: 399 kB / 0.8448 GB, free: 274.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/1.814, allocations: 0.6935 MB / 0.8455 GB, free: 274.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/1.814, allocations: 3.906 kB / 0.8455 GB, free: 274.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001466/1.815, allocations: 0.7905 MB / 0.8463 GB, free: 274 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/1.815, allocations: 7.906 kB / 0.8463 GB, free: 274 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/1.815, allocations: 3.938 kB / 0.8463 GB, free: 274 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000265/1.815, allocations: 63.7 kB / 0.8463 GB, free: 273.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004054/1.816, allocations: 97.19 kB / 0.8464 GB, free: 273.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09244/1.908, allocations: 22.94 MB / 0.8688 GB, free: 253.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000631/1.909, allocations: 39.97 kB / 0.8689 GB, free: 253.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.865e-05/1.909, allocations: 16 kB / 0.8689 GB, free: 253.6 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 9 (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 (48): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004203/1.909, allocations: 196 kB / 0.8691 GB, free: 253.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/1.91, allocations: 39.53 kB / 0.8691 GB, free: 253.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001954/1.912, allocations: 1.537 MB / 0.8706 GB, free: 251.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.443e-05/1.912, allocations: 19.83 kB / 0.8706 GB, free: 251.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/1.912, allocations: 8 kB / 0.8707 GB, free: 251.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001294/1.913, allocations: 1.137 MB / 0.8718 GB, free: 250.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002282/1.915, allocations: 1.591 MB / 0.8733 GB, free: 248.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/1.915, allocations: 4 kB / 0.8733 GB, free: 248.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003259/1.916, allocations: 83.12 kB / 0.8734 GB, free: 248.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002259/1.916, allocations: 48.72 kB / 0.8734 GB, free: 248.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.11e-05/1.916, allocations: 8.891 kB / 0.8735 GB, free: 248.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009615/1.917, allocations: 1.428 MB / 0.8748 GB, free: 247.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/1.917, allocations: 0 / 0.8748 GB, free: 247.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001793/1.919, allocations: 1.177 MB / 0.876 GB, free: 246 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/1.919, allocations: 116.6 kB / 0.8761 GB, free: 245.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.917e-05/1.919, allocations: 11.91 kB / 0.8761 GB, free: 245.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003179/1.919, allocations: 31.97 kB / 0.8762 GB, free: 245.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/1.919, allocations: 39.94 kB / 0.8762 GB, free: 245.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.448e-05/1.919, allocations: 12 kB / 0.8762 GB, free: 245.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002177/1.92, allocations: 243 kB / 0.8764 GB, free: 245.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/1.92, allocations: 0 / 0.8764 GB, free: 245.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01085/1.93, allocations: 3.184 MB / 0.8795 GB, free: 242.8 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 9 ($cse8.phase,$cse9.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02219/1.953, allocations: 5.739 MB / 0.8851 GB, free: 237.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002263/1.955, allocations: 0.9612 MB / 0.8861 GB, free: 236.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/1.955, allocations: 192 / 0.8861 GB, free: 236.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008662/1.956, allocations: 0.4993 MB / 0.8866 GB, free: 236 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002177/1.958, allocations: 397.7 kB / 0.887 GB, free: 235.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01394/1.972, allocations: 6.158 MB / 0.893 GB, free: 229.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/1.972, allocations: 0.8486 MB / 0.8938 GB, free: 228.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005398/1.973, allocations: 162.4 kB / 0.8939 GB, free: 228.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002349/1.973, allocations: 171.4 kB / 0.8941 GB, free: 228.1 MB / 0.5919 GB Notification: Performance of SimCode: time 5.51e-07/1.973, allocations: 0 / 0.8941 GB, free: 228.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.221/2.194, allocations: 124.5 MB / 1.016 GB, free: 103.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.81/19, allocations: 4.312 kB / 1.016 GB, free: 103.3 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe 2>&1)