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.004539/0.004539, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001189/0.001189, allocations: 195.5 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.263/1.263, allocations: 205.1 MB / 222.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04751/0.04751, allocations: 9.097 MB / 279 MB, free: 12.07 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.001929/0.001929, allocations: 71.89 kB / 387 MB, free: 8.445 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.2156, allocations: 48.16 MB / 435.2 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.1246/0.3403, allocations: 127.6 MB / 0.5496 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.2815/0.6218, allocations: 109.6 MB / 0.6566 GB, free: 336 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004354/0.6222, allocations: 3.906 kB / 0.6566 GB, free: 336 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001864/0.6241, allocations: 1.012 MB / 0.6576 GB, free: 332 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001591/0.6257, allocations: 1.096 MB / 0.6586 GB, free: 304 kB / 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.06011/0.6859, allocations: 28.65 MB / 0.6866 GB, free: 8.973 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001677/0.6876, allocations: 1.363 MB / 0.6879 GB, free: 7.984 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002244/0.6878, allocations: 134.1 kB / 0.6881 GB, free: 7.883 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01668/0.7045, allocations: 11.91 MB / 0.6997 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004728/0.705, allocations: 373.1 kB / 0.7001 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.916e-05/0.7051, allocations: 40 kB / 0.7001 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05641/0.7615, allocations: 33.12 MB / 0.7324 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002364/0.7617, allocations: 121.9 kB / 0.7326 GB, free: 0.4961 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004742/0.7622, allocations: 306.7 kB / 0.7328 GB, free: 204 kB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.03738/0.7996, allocations: 14.13 MB / 0.7466 GB, free: 3.145 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.7997, allocations: 3.938 kB / 0.7467 GB, free: 3.141 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7997, allocations: 0 / 0.7467 GB, free: 3.141 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.567e-06/0.7997, allocations: 0 / 0.7467 GB, free: 3.141 MB / 0.5294 GB 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.005715/0.8054, allocations: 2.68 MB / 0.7493 GB, free: 424 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.8055, allocations: 12.03 kB / 0.7493 GB, free: 412 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.621e-05/0.8056, allocations: 86.52 kB / 0.7494 GB, free: 316 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005734/0.8061, allocations: 95.55 kB / 0.7495 GB, free: 220 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000505/0.8067, allocations: 342.9 kB / 0.7498 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.791e-05/0.8067, allocations: 32.66 kB / 0.7498 GB, free: 15.81 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.046e-05/0.8068, allocations: 32 kB / 0.7498 GB, free: 15.78 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.808, allocations: 0.601 MB / 0.7504 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.8081, allocations: 0 / 0.7504 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.179e-05/0.8081, allocations: 19.94 kB / 0.7505 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.167e-05/0.8081, allocations: 20.59 kB / 0.7505 GB, free: 15.12 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001321/0.8095, allocations: 0.5487 MB / 0.751 GB, free: 14.58 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002562/0.812, allocations: 2.548 MB / 0.7535 GB, free: 11.8 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.8132, allocations: 0.498 MB / 0.754 GB, free: 11.3 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000554/0.8138, allocations: 339.7 kB / 0.7543 GB, free: 10.97 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3839/1.198, allocations: 139 MB / 0.89 GB, free: 221.4 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/1.198, allocations: 36.44 kB / 0.8901 GB, free: 221.4 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 2.254e-06/1.198, allocations: 0 / 0.8901 GB, free: 221.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005173/1.203, allocations: 2.34 MB / 0.8924 GB, free: 220.1 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.856e-05/1.203, allocations: 53.69 kB / 0.8924 GB, free: 220.1 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001969/1.203, allocations: 248.3 kB / 0.8926 GB, free: 219.9 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.632e-05/1.203, allocations: 36.64 kB / 0.8927 GB, free: 219.8 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.643e-05/1.203, allocations: 185.2 kB / 0.8929 GB, free: 219.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.000108/1.203, allocations: 288.8 kB / 0.8931 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/1.204, allocations: 99.48 kB / 0.8932 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.237e-05/1.204, allocations: 349.1 kB / 0.8936 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004158/1.204, allocations: 279 kB / 0.8938 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004459/1.204, allocations: 393.1 kB / 0.8942 GB, free: 218.6 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008534/1.205, allocations: 0.6962 MB / 0.8949 GB, free: 217.9 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/1.205, allocations: 5.875 kB / 0.8949 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00117/1.207, allocations: 0.7887 MB / 0.8957 GB, free: 217 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/1.207, allocations: 4 kB / 0.8957 GB, free: 217 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/1.207, allocations: 4 kB / 0.8957 GB, free: 217 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002031/1.207, allocations: 71.33 kB / 0.8957 GB, free: 217 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003821/1.207, allocations: 95.88 kB / 0.8958 GB, free: 216.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06142/1.269, allocations: 17.2 MB / 0.9126 GB, free: 199.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003911/1.269, allocations: 34.41 kB / 0.9126 GB, free: 199.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.001e-05/1.269, allocations: 19.98 kB / 0.9127 GB, free: 199.2 MB / 0.6075 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.0002162/1.269, allocations: 186.7 kB / 0.9128 GB, free: 199 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.076e-05/1.269, allocations: 47.78 kB / 0.9129 GB, free: 199 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001532/1.271, allocations: 1.554 MB / 0.9144 GB, free: 197.4 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.397e-05/1.271, allocations: 8 kB / 0.9144 GB, free: 197.4 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/1.271, allocations: 0 / 0.9144 GB, free: 197.4 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001108/1.272, allocations: 1.142 MB / 0.9155 GB, free: 196.1 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001774/1.274, allocations: 1.592 MB / 0.9171 GB, free: 194.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/1.274, allocations: 0 / 0.9171 GB, free: 194.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003095/1.274, allocations: 79.88 kB / 0.9172 GB, free: 194.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001873/1.274, allocations: 52.08 kB / 0.9172 GB, free: 194.4 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.422e-05/1.274, allocations: 12.03 kB / 0.9172 GB, free: 194.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006623/1.275, allocations: 1.429 MB / 0.9186 GB, free: 192.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/1.275, allocations: 0 / 0.9186 GB, free: 192.8 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001474/1.277, allocations: 1.178 MB / 0.9198 GB, free: 191.6 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.713e-05/1.277, allocations: 116.9 kB / 0.9199 GB, free: 191.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.954e-05/1.277, allocations: 22.48 kB / 0.9199 GB, free: 191.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/1.277, allocations: 23.97 kB / 0.9199 GB, free: 191.4 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.505e-05/1.277, allocations: 39.95 kB / 0.92 GB, free: 191.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/1.277, allocations: 19.92 kB / 0.92 GB, free: 191.3 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001766/1.277, allocations: 239 kB / 0.9202 GB, free: 191.1 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.2e-07/1.277, allocations: 0 / 0.9202 GB, free: 191.1 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00707/1.284, allocations: 3.572 MB / 0.9237 GB, free: 188 MB / 0.6075 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.01648/1.301, allocations: 6.217 MB / 0.9298 GB, free: 182.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00158/1.303, allocations: 0.9593 MB / 0.9307 GB, free: 181.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/1.303, allocations: 0 / 0.9307 GB, free: 181.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007217/1.303, allocations: 0.4914 MB / 0.9312 GB, free: 180.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001777/1.305, allocations: 389.2 kB / 0.9316 GB, free: 180.4 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/1.315, allocations: 6.325 MB / 0.9377 GB, free: 173.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/1.315, allocations: 0.8526 MB / 0.9386 GB, free: 173 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003762/1.316, allocations: 158.7 kB / 0.9387 GB, free: 172.8 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001769/1.316, allocations: 175.4 kB / 0.9389 GB, free: 172.7 MB / 0.6075 GB Notification: Performance of SimCode: time 4.21e-07/1.316, allocations: 0 / 0.9389 GB, free: 172.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.321/4.637, allocations: 132.4 MB / 1.068 GB, free: 40.11 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.25/24.89, allocations: 8.047 kB / 1.068 GB, free: 40.11 MB / 0.6075 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)