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.006503/0.006503, allocations: 102.1 kB / 15.73 MB, free: 5.516 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.001466/0.001466, allocations: 203.6 kB / 16.68 MB, free: 5.445 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.539/1.539, allocations: 205.1 MB / 222.6 MB, free: 4.328 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05277/0.05277, allocations: 9.092 MB / 279 MB, free: 11.9 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.002119/0.002119, allocations: 63.91 kB / 387 MB, free: 8.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3328, allocations: 48.16 MB / 435.2 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel): time 0.1523/0.4852, allocations: 128.8 MB / 0.5508 GB, free: 15.52 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4204/0.9056, allocations: 111.1 MB / 0.6593 GB, free: 328 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007382/0.9064, allocations: 7.844 kB / 0.6593 GB, free: 328 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003676/0.9101, allocations: 1.369 MB / 0.6606 GB, free: 316 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004113/0.9142, allocations: 1.656 MB / 0.6622 GB, free: 268 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.08848/1.003, allocations: 29.51 MB / 0.691 GB, free: 7 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002399/1.005, allocations: 1.403 MB / 0.6924 GB, free: 5.988 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003186/1.006, allocations: 133 kB / 0.6925 GB, free: 5.887 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01742/1.023, allocations: 9.734 MB / 0.702 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005341/1.024, allocations: 372.2 kB / 0.7024 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.976e-05/1.024, allocations: 44 kB / 0.7024 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.068/1.092, allocations: 35.25 MB / 0.7369 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002885/1.092, allocations: 128 kB / 0.737 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.000619/1.093, allocations: 301.1 kB / 0.7373 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04895/1.142, allocations: 14.13 MB / 0.7511 GB, free: 192 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/1.142, allocations: 0 / 0.7511 GB, free: 192 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.693e-06/1.142, allocations: 0 / 0.7511 GB, free: 192 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.141e-05/1.142, allocations: 4 kB / 0.7511 GB, free: 188 kB / 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.007475/1.149, allocations: 2.677 MB / 0.7537 GB, free: 13.46 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/1.149, allocations: 12.03 kB / 0.7537 GB, free: 13.45 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001061/1.149, allocations: 82.52 kB / 0.7538 GB, free: 13.36 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006356/1.15, allocations: 95.62 kB / 0.7539 GB, free: 13.27 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006275/1.151, allocations: 345.6 kB / 0.7542 GB, free: 12.89 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.01e-05/1.151, allocations: 28.66 kB / 0.7542 GB, free: 12.87 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.256e-05/1.151, allocations: 39.94 kB / 0.7543 GB, free: 12.83 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/1.152, allocations: 0.5972 MB / 0.7549 GB, free: 12.21 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/1.152, allocations: 3.938 kB / 0.7549 GB, free: 12.21 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.988e-05/1.152, allocations: 12 kB / 0.7549 GB, free: 12.2 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.814e-05/1.152, allocations: 19.89 kB / 0.7549 GB, free: 12.18 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/1.154, allocations: 0.5415 MB / 0.7554 GB, free: 11.64 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003027/1.157, allocations: 2.512 MB / 0.7579 GB, free: 8.914 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/1.158, allocations: 499.9 kB / 0.7583 GB, free: 8.418 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005701/1.158, allocations: 330.3 kB / 0.7587 GB, free: 8.094 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5345/1.693, allocations: 139 MB / 0.8944 GB, free: 64.57 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/1.693, allocations: 43.88 kB / 0.8944 GB, free: 64.53 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.035e-06/1.693, allocations: 0 / 0.8944 GB, free: 64.53 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.005498/1.698, allocations: 2.33 MB / 0.8967 GB, free: 64.05 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.193e-05/1.698, allocations: 60.47 kB / 0.8968 GB, free: 63.99 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002203/1.699, allocations: 258.9 kB / 0.897 GB, free: 63.88 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.031e-05/1.699, allocations: 32.27 kB / 0.897 GB, free: 63.85 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.143e-05/1.699, allocations: 190.7 kB / 0.8972 GB, free: 63.73 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/1.699, allocations: 277.3 kB / 0.8975 GB, free: 63.58 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/1.699, allocations: 98.86 kB / 0.8976 GB, free: 63.56 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.406e-05/1.699, allocations: 353.7 kB / 0.8979 GB, free: 63.25 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004457/1.7, allocations: 270.5 kB / 0.8982 GB, free: 63.25 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004737/1.7, allocations: 386.9 kB / 0.8985 GB, free: 63.14 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009448/1.701, allocations: 0.6876 MB / 0.8992 GB, free: 63.01 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/1.701, allocations: 3.875 kB / 0.8992 GB, free: 63.01 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001242/1.702, allocations: 0.7887 MB / 0.9 GB, free: 62.91 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/1.702, allocations: 7.109 kB / 0.9 GB, free: 62.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/1.702, allocations: 6.219 kB / 0.9 GB, free: 62.91 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002173/1.703, allocations: 59.77 kB / 0.9001 GB, free: 62.89 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00054/1.703, allocations: 127.6 kB / 0.9002 GB, free: 62.89 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06447/1.768, allocations: 19.43 MB / 0.9192 GB, free: 55.52 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000423/1.768, allocations: 30.7 kB / 0.9192 GB, free: 55.52 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.353e-05/1.768, allocations: 15.66 kB / 0.9192 GB, free: 55.52 MB / 0.6075 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.000304/1.768, allocations: 196.6 kB / 0.9194 GB, free: 55.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001286/1.769, allocations: 44.72 kB / 0.9194 GB, free: 55.38 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001852/1.77, allocations: 1.678 MB / 0.9211 GB, free: 55.12 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.866e-05/1.77, allocations: 13.23 kB / 0.9211 GB, free: 55.12 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/1.77, allocations: 0 / 0.9211 GB, free: 55.12 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001306/1.772, allocations: 1.254 MB / 0.9223 GB, free: 54.63 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002024/1.774, allocations: 1.7 MB / 0.924 GB, free: 54.28 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/1.774, allocations: 0 / 0.924 GB, free: 54.28 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003178/1.774, allocations: 78.12 kB / 0.924 GB, free: 54.28 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002576/1.774, allocations: 109.7 kB / 0.9241 GB, free: 54.25 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.872e-05/1.774, allocations: 10.5 kB / 0.9242 GB, free: 54.25 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009537/1.775, allocations: 1.991 MB / 0.9261 GB, free: 52.38 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/1.775, allocations: 4.156 kB / 0.9261 GB, free: 52.38 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001822/1.777, allocations: 1.3 MB / 0.9274 GB, free: 52.13 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001242/1.777, allocations: 123.7 kB / 0.9275 GB, free: 52 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.553e-05/1.777, allocations: 7.75 kB / 0.9275 GB, free: 52 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003132/1.778, allocations: 33.31 kB / 0.9275 GB, free: 51.98 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/1.778, allocations: 37.11 kB / 0.9276 GB, free: 51.96 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.833e-05/1.778, allocations: 18.83 kB / 0.9276 GB, free: 51.95 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001908/1.778, allocations: 224.4 kB / 0.9278 GB, free: 51.8 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/1.778, allocations: 0 / 0.9278 GB, free: 51.8 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008766/1.787, allocations: 3.569 MB / 0.9313 GB, free: 48.93 MB / 0.6075 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.02058/1.808, allocations: 6.286 MB / 0.9374 GB, free: 44.25 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002583/1.81, allocations: 1.025 MB / 0.9384 GB, free: 43.59 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/1.81, allocations: 4 kB / 0.9384 GB, free: 43.59 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008193/1.811, allocations: 0.4938 MB / 0.9389 GB, free: 43.28 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/1.813, allocations: 406.5 kB / 0.9393 GB, free: 43.02 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01434/1.827, allocations: 6.259 MB / 0.9454 GB, free: 38.23 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/1.828, allocations: 0.8493 MB / 0.9462 GB, free: 37.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0005124/1.828, allocations: 142.2 kB / 0.9464 GB, free: 37.31 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002263/1.829, allocations: 175 kB / 0.9465 GB, free: 37.27 MB / 0.6075 GB Notification: Performance of SimCode: time 1.162e-06/1.829, allocations: 0 / 0.9465 GB, free: 37.27 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4777/2.306, allocations: 132.9 MB / 1.076 GB, free: 253.6 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.81/20.12, allocations: 15.47 kB / 1.076 GB, free: 253.6 MB / 0.67 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)