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.00082/0.0008201, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.004873/0.004873, allocations: 170.4 kB / 16.27 MB, free: 6.648 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.226/1.226, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04297/0.04297, allocations: 9.068 MB / 279.8 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.0004753/0.0004754, allocations: 23.98 kB / 339.8 MB, free: 25.54 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06763/0.06812, allocations: 49.18 MB / 389 MB, free: 8.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.2559/0.324, allocations: 127.6 MB / 0.5045 GB, free: 8.145 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2877/0.6118, allocations: 110 MB / 0.6119 GB, free: 1.867 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004809/0.6123, allocations: 6.406 kB / 0.612 GB, free: 1.867 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001799/0.6141, allocations: 0.8584 MB / 0.6128 GB, free: 1.867 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001715/0.6158, allocations: 0.9417 MB / 0.6137 GB, free: 1.859 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05486/0.6707, allocations: 24.57 MB / 0.6377 GB, free: 1.148 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001662/0.6724, allocations: 1.793 MB / 0.6395 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.6726, allocations: 95.16 kB / 0.6395 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01649/0.6891, allocations: 11.3 MB / 0.6506 GB, free: 12.92 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005349/0.6897, allocations: 379.9 kB / 0.6509 GB, free: 12.85 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.215e-05/0.6897, allocations: 17.78 kB / 0.651 GB, free: 12.85 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04713/0.7369, allocations: 29.54 MB / 0.6798 GB, free: 11.68 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000208/0.7371, allocations: 95.05 kB / 0.6799 GB, free: 11.63 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004476/0.7376, allocations: 306.4 kB / 0.6802 GB, free: 11.46 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0332/0.7708, allocations: 13.63 MB / 0.6935 GB, free: 1.031 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.7708, allocations: 0 / 0.6935 GB, free: 1.031 MB / 478.1 MB Notification: Performance of FrontEnd: time 4.348e-06/0.7708, allocations: 3.984 kB / 0.6935 GB, free: 1.027 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.7708, allocations: 1.75 kB / 0.6935 GB, free: 1.027 MB / 478.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.005684/0.7765, allocations: 2.492 MB / 0.6959 GB, free: 14.59 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.7766, allocations: 8.031 kB / 0.696 GB, free: 14.58 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.679e-05/0.7767, allocations: 85.14 kB / 0.696 GB, free: 14.51 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005476/0.7772, allocations: 87.3 kB / 0.6961 GB, free: 14.43 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003866/0.7776, allocations: 335.2 kB / 0.6964 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.66e-05/0.7777, allocations: 37.47 kB / 0.6965 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.183e-05/0.7777, allocations: 33.5 kB / 0.6965 GB, free: 14.07 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001206/0.7789, allocations: 0.604 MB / 0.6971 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/0.779, allocations: 7.875 kB / 0.6971 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.705e-05/0.779, allocations: 15.75 kB / 0.6971 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.154e-05/0.779, allocations: 27.03 kB / 0.6971 GB, free: 13.59 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001274/0.7803, allocations: 0.5737 MB / 0.6977 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002268/0.7826, allocations: 2.55 MB / 0.7002 GB, free: 10.81 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.7837, allocations: 0.5311 MB / 0.7007 GB, free: 10.46 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005086/0.7842, allocations: 345.7 kB / 0.701 GB, free: 10.25 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3542/1.138, allocations: 135.8 MB / 0.8337 GB, free: 259.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/1.139, allocations: 46.72 kB / 0.8337 GB, free: 259.7 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=79): time 4.067e-06/1.139, allocations: 0 / 0.8337 GB, free: 259.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.005355/1.144, allocations: 2.4 MB / 0.8361 GB, free: 258.8 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.25e-05/1.144, allocations: 61.75 kB / 0.8361 GB, free: 258.7 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002306/1.144, allocations: 251.7 kB / 0.8364 GB, free: 258.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.892e-05/1.144, allocations: 33.67 kB / 0.8364 GB, free: 258.5 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.139e-05/1.144, allocations: 180.5 kB / 0.8366 GB, free: 258.3 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/1.144, allocations: 269.4 kB / 0.8368 GB, free: 258.1 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.808e-05/1.144, allocations: 60.78 kB / 0.8369 GB, free: 258.1 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.726e-05/1.145, allocations: 360.5 kB / 0.8372 GB, free: 257.7 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004757/1.145, allocations: 276.4 kB / 0.8375 GB, free: 257.6 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005001/1.146, allocations: 411.2 kB / 0.8379 GB, free: 257.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009881/1.147, allocations: 0.7281 MB / 0.8386 GB, free: 256.9 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/1.147, allocations: 3.938 kB / 0.8386 GB, free: 256.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001333/1.148, allocations: 0.8141 MB / 0.8394 GB, free: 256.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/1.148, allocations: 10.56 kB / 0.8394 GB, free: 256.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/1.148, allocations: 3.969 kB / 0.8394 GB, free: 256.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002288/1.148, allocations: 65.95 kB / 0.8395 GB, free: 256.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003754/1.149, allocations: 108 kB / 0.8396 GB, free: 256.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09127/1.24, allocations: 22.6 MB / 0.8616 GB, free: 238.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004696/1.24, allocations: 51.95 kB / 0.8617 GB, free: 238.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-05/1.24, allocations: 20 kB / 0.8617 GB, free: 238.5 MB / 0.5762 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.0002441/1.241, allocations: 191.5 kB / 0.8619 GB, free: 238.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.388e-05/1.241, allocations: 47.38 kB / 0.8619 GB, free: 238.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001639/1.242, allocations: 1.572 MB / 0.8635 GB, free: 236.7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-05/1.242, allocations: 15.02 kB / 0.8635 GB, free: 236.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/1.242, allocations: 0 / 0.8635 GB, free: 236.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001155/1.244, allocations: 1.165 MB / 0.8646 GB, free: 235.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001875/1.245, allocations: 1.626 MB / 0.8662 GB, free: 233.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/1.245, allocations: 2.406 kB / 0.8662 GB, free: 233.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000318/1.246, allocations: 83.88 kB / 0.8663 GB, free: 233.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002321/1.246, allocations: 52.78 kB / 0.8663 GB, free: 233.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/1.246, allocations: 11.98 kB / 0.8664 GB, free: 233.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006953/1.247, allocations: 1.33 MB / 0.8676 GB, free: 232.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/1.247, allocations: 0 / 0.8676 GB, free: 232.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/1.248, allocations: 1.219 MB / 0.8688 GB, free: 230.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/1.248, allocations: 136.5 kB / 0.869 GB, free: 230.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.35e-05/1.249, allocations: 8 kB / 0.869 GB, free: 230.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003529/1.249, allocations: 52.73 kB / 0.869 GB, free: 230.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.383e-05/1.249, allocations: 47.88 kB / 0.8691 GB, free: 230.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.389e-05/1.249, allocations: 12 kB / 0.8691 GB, free: 230.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001877/1.249, allocations: 243 kB / 0.8693 GB, free: 230.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.41e-07/1.249, allocations: 3.938 kB / 0.8693 GB, free: 230.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006531/1.256, allocations: 3.187 MB / 0.8724 GB, free: 227.6 MB / 0.5762 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.01532/1.271, allocations: 5.766 MB / 0.8781 GB, free: 222.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001553/1.273, allocations: 0.9542 MB / 0.879 GB, free: 221.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/1.273, allocations: 0 / 0.879 GB, free: 221.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006564/1.273, allocations: 0.4954 MB / 0.8795 GB, free: 220.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001986/1.275, allocations: 389 kB / 0.8799 GB, free: 220.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/1.286, allocations: 6.48 MB / 0.8862 GB, free: 213.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002173/1.286, allocations: 0.8486 MB / 0.887 GB, free: 212.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004348/1.287, allocations: 173.5 kB / 0.8872 GB, free: 212.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001897/1.287, allocations: 167.4 kB / 0.8873 GB, free: 212.6 MB / 0.5762 GB Notification: Performance of SimCode: time 1.052e-06/1.287, allocations: 0 / 0.8873 GB, free: 212.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1389/1.426, allocations: 123.6 MB / 1.008 GB, free: 88.85 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001347/1.426, allocations: 248.2 kB / 1.008 GB, free: 88.59 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.843/7.269, allocations: 0 / 1.008 GB, free: 88.59 MB / 0.5762 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)