Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.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.PropaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PropaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PropaneTestModel",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.001489/0.001489, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001465/0.001465, allocations: 197.1 kB / 16.14 MB, free: 6.734 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.314/1.314, allocations: 205.1 MB / 222 MB, free: 4.992 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04406/0.04406, allocations: 9.079 MB / 278.4 MB, free: 12.64 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.001201/0.001201, allocations: 71.91 kB / 337.4 MB, free: 25.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0672/0.06841, allocations: 48.16 MB / 385.6 MB, free: 9.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel): time 0.2512/0.3197, allocations: 130.6 MB / 0.5041 GB, free: 3.891 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2823/0.602, allocations: 112.8 MB / 0.6142 GB, free: 1.129 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004446/0.6025, allocations: 9.188 kB / 0.6143 GB, free: 1.129 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002312/0.6049, allocations: 1.17 MB / 0.6154 GB, free: 1.125 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002482/0.6073, allocations: 1.474 MB / 0.6168 GB, free: 1.109 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05697/0.6643, allocations: 25.09 MB / 0.6413 GB, free: 15.97 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001832/0.6662, allocations: 1.822 MB / 0.6431 GB, free: 15.66 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001952/0.6664, allocations: 101.9 kB / 0.6432 GB, free: 15.64 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01349/0.6799, allocations: 9.22 MB / 0.6522 GB, free: 12.58 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003866/0.6803, allocations: 398.5 kB / 0.6526 GB, free: 12.44 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.476e-05/0.6803, allocations: 22.25 kB / 0.6526 GB, free: 12.44 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04796/0.7283, allocations: 31.36 MB / 0.6832 GB, free: 6.727 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002688/0.7286, allocations: 101.3 kB / 0.6833 GB, free: 6.66 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006637/0.7293, allocations: 286.2 kB / 0.6836 GB, free: 6.441 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03512/0.7644, allocations: 13.67 MB / 0.697 GB, free: 10.69 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.7645, allocations: 0 / 0.697 GB, free: 10.69 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.7645, allocations: 3.984 kB / 0.697 GB, free: 10.68 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.7645, allocations: 0 / 0.697 GB, free: 10.68 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.004616/0.7691, allocations: 2.571 MB / 0.6995 GB, free: 8.066 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.7692, allocations: 12.03 kB / 0.6995 GB, free: 8.055 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.726e-05/0.7692, allocations: 78.52 kB / 0.6996 GB, free: 7.969 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005508/0.7698, allocations: 95.33 kB / 0.6997 GB, free: 7.875 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003363/0.7701, allocations: 336.7 kB / 0.7 GB, free: 7.512 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.179e-05/0.7702, allocations: 28.66 kB / 0.7 GB, free: 7.484 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.571e-05/0.7702, allocations: 32 kB / 0.7 GB, free: 7.453 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00114/0.7714, allocations: 0.6002 MB / 0.7006 GB, free: 6.84 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.7714, allocations: 3.906 kB / 0.7006 GB, free: 6.836 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.445e-05/0.7714, allocations: 12 kB / 0.7006 GB, free: 6.824 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.865e-05/0.7715, allocations: 21.97 kB / 0.7007 GB, free: 6.805 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/0.7726, allocations: 0.5481 MB / 0.7012 GB, free: 6.262 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002128/0.7748, allocations: 2.506 MB / 0.7036 GB, free: 3.547 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009523/0.7757, allocations: 0.4888 MB / 0.7041 GB, free: 3.051 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004729/0.7762, allocations: 338.3 kB / 0.7044 GB, free: 2.715 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3421/1.118, allocations: 139 MB / 0.8402 GB, free: 252.8 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.642e-05/1.118, allocations: 38.59 kB / 0.8402 GB, free: 252.8 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 2.204e-06/1.118, allocations: 3.125 kB / 0.8402 GB, free: 252.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.004709/1.123, allocations: 2.326 MB / 0.8425 GB, free: 251.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.699e-05/1.123, allocations: 58.84 kB / 0.8425 GB, free: 251.4 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001824/1.123, allocations: 257.6 kB / 0.8428 GB, free: 251.3 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/1.123, allocations: 33.64 kB / 0.8428 GB, free: 251.2 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.574e-05/1.123, allocations: 186.5 kB / 0.843 GB, free: 251.1 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.137e-05/1.124, allocations: 273.2 kB / 0.8432 GB, free: 250.8 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.999e-05/1.124, allocations: 101.6 kB / 0.8433 GB, free: 250.8 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.24e-05/1.124, allocations: 350.3 kB / 0.8437 GB, free: 250.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003874/1.124, allocations: 274.2 kB / 0.8439 GB, free: 250.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004111/1.124, allocations: 384.8 kB / 0.8443 GB, free: 250 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008044/1.125, allocations: 0.6764 MB / 0.845 GB, free: 249.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/1.125, allocations: 3.828 kB / 0.845 GB, free: 249.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001081/1.126, allocations: 0.7967 MB / 0.8457 GB, free: 249.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/1.126, allocations: 11.8 kB / 0.8458 GB, free: 249.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/1.126, allocations: 0 / 0.8458 GB, free: 249.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002031/1.127, allocations: 65.59 kB / 0.8458 GB, free: 249.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005108/1.127, allocations: 122.5 kB / 0.8459 GB, free: 249.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08389/1.211, allocations: 24.88 MB / 0.8702 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004218/1.212, allocations: 55.89 kB / 0.8703 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/1.212, allocations: 23.98 kB / 0.8703 GB, free: 225.3 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems 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.0002036/1.212, allocations: 182.7 kB / 0.8705 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.483e-05/1.212, allocations: 43.52 kB / 0.8705 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001508/1.213, allocations: 1.678 MB / 0.8722 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/1.213, allocations: 7.047 kB / 0.8722 GB, free: 223.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/1.213, allocations: 4 kB / 0.8722 GB, free: 223.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001104/1.214, allocations: 1.258 MB / 0.8734 GB, free: 222 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001616/1.216, allocations: 1.698 MB / 0.8751 GB, free: 220.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/1.216, allocations: 0 / 0.8751 GB, free: 220.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002956/1.216, allocations: 79.88 kB / 0.8751 GB, free: 220.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002442/1.217, allocations: 114.8 kB / 0.8752 GB, free: 220.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.168e-05/1.217, allocations: 12 kB / 0.8753 GB, free: 220 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007513/1.217, allocations: 1.894 MB / 0.8771 GB, free: 218 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/1.217, allocations: 0 / 0.8771 GB, free: 218 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001508/1.219, allocations: 1.298 MB / 0.8784 GB, free: 216.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.343e-05/1.219, allocations: 112.6 kB / 0.8785 GB, free: 216.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.959e-05/1.219, allocations: 11.94 kB / 0.8785 GB, free: 216.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003077/1.219, allocations: 47.86 kB / 0.8785 GB, free: 216.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.175e-05/1.22, allocations: 39.94 kB / 0.8786 GB, free: 216.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-05/1.22, allocations: 19.92 kB / 0.8786 GB, free: 216.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001472/1.22, allocations: 219.1 kB / 0.8788 GB, free: 216.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/1.22, allocations: 4 kB / 0.8788 GB, free: 216.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006036/1.226, allocations: 3.189 MB / 0.8819 GB, free: 213.4 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 10 ($cse7.phase,$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 (39): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 Backend phase and start with SimCode phase: time 0.01317/1.239, allocations: 5.802 MB / 0.8876 GB, free: 208.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001629/1.241, allocations: 0.9978 MB / 0.8886 GB, free: 207 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/1.241, allocations: 0 / 0.8886 GB, free: 207 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0005894/1.241, allocations: 0.5034 MB / 0.8891 GB, free: 206.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001625/1.243, allocations: 378.4 kB / 0.8894 GB, free: 206.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008367/1.251, allocations: 6.269 MB / 0.8955 GB, free: 199.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001808/1.251, allocations: 0.8526 MB / 0.8964 GB, free: 198.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003526/1.252, allocations: 151.3 kB / 0.8965 GB, free: 198.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001604/1.252, allocations: 167.4 kB / 0.8967 GB, free: 198.6 MB / 0.5762 GB Notification: Performance of SimCode: time 2.31e-07/1.252, allocations: 0 / 0.8967 GB, free: 198.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.355/2.606, allocations: 124.1 MB / 1.018 GB, free: 74.29 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001686/2.607, allocations: 240.8 kB / 1.018 GB, free: 74.03 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.718/9.324, allocations: 0 / 1.018 GB, free: 74.03 MB / 0.5762 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PropaneTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PropaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe 2>&1)