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.001571/0.001571, 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.001899/0.001899, allocations: 193.1 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.752/1.752, allocations: 205.1 MB / 222.4 MB, free: 4.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0506/0.0506, allocations: 9.095 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.001616/0.001616, allocations: 63.89 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1213, allocations: 48.16 MB / 386.3 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel): time 0.429/0.5504, allocations: 128.8 MB / 0.503 GB, free: 4.973 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4812/1.032, allocations: 111.1 MB / 0.6115 GB, free: 344 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008729/1.033, allocations: 8.25 kB / 0.6115 GB, free: 344 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004078/1.037, allocations: 1.363 MB / 0.6128 GB, free: 336 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003906/1.041, allocations: 1.655 MB / 0.6145 GB, free: 316 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.092/1.133, allocations: 29.5 MB / 0.6433 GB, free: 13.66 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002289/1.135, allocations: 1.399 MB / 0.6446 GB, free: 13.3 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002672/1.135, allocations: 129 kB / 0.6448 GB, free: 13.27 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0189/1.154, allocations: 9.733 MB / 0.6543 GB, free: 9.473 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006406/1.155, allocations: 379.4 kB / 0.6546 GB, free: 9.219 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.176e-05/1.155, allocations: 44 kB / 0.6547 GB, free: 9.176 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07177/1.227, allocations: 33.78 MB / 0.6877 GB, free: 15.99 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003621/1.227, allocations: 122.4 kB / 0.6878 GB, free: 15.88 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007632/1.228, allocations: 305.3 kB / 0.6881 GB, free: 15.58 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06021/1.288, allocations: 14.1 MB / 0.7018 GB, free: 2.566 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/1.288, allocations: 0 / 0.7018 GB, free: 2.566 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.304e-06/1.288, allocations: 4 kB / 0.7018 GB, free: 2.562 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/1.288, allocations: 0 / 0.7018 GB, free: 2.562 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.009027/1.297, allocations: 2.563 MB / 0.7043 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/1.297, allocations: 8.031 kB / 0.7043 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001064/1.297, allocations: 86.52 kB / 0.7044 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006359/1.298, allocations: 87.39 kB / 0.7045 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000428/1.298, allocations: 346.5 kB / 0.7048 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.299e-05/1.299, allocations: 32.59 kB / 0.7049 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.499e-05/1.299, allocations: 36 kB / 0.7049 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/1.3, allocations: 0.5923 MB / 0.7055 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/1.3, allocations: 4.75 kB / 0.7055 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.029e-05/1.3, allocations: 16 kB / 0.7055 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.123e-05/1.3, allocations: 15.91 kB / 0.7055 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/1.301, allocations: 0.5483 MB / 0.7061 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002928/1.304, allocations: 2.513 MB / 0.7085 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/1.305, allocations: 0.4921 MB / 0.709 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005973/1.306, allocations: 342.2 kB / 0.7093 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4878/1.794, allocations: 139 MB / 0.845 GB, free: 276.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.278e-05/1.794, allocations: 41.28 kB / 0.8451 GB, free: 276 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 6.172e-06/1.794, allocations: 0 / 0.8451 GB, free: 276 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.006021/1.8, allocations: 2.339 MB / 0.8474 GB, free: 274.7 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.499e-05/1.8, allocations: 59.12 kB / 0.8474 GB, free: 274.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00023/1.8, allocations: 257.6 kB / 0.8477 GB, free: 274.5 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.161e-05/1.8, allocations: 34.98 kB / 0.8477 GB, free: 274.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/1.8, allocations: 184 kB / 0.8479 GB, free: 274.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001682/1.801, allocations: 270.3 kB / 0.8481 GB, free: 274 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/1.801, allocations: 96.73 kB / 0.8482 GB, free: 274 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.088e-05/1.801, allocations: 358.6 kB / 0.8486 GB, free: 273.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004704/1.801, allocations: 270.5 kB / 0.8488 GB, free: 273.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004977/1.802, allocations: 380.1 kB / 0.8492 GB, free: 273.2 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009687/1.803, allocations: 0.6833 MB / 0.8498 GB, free: 272.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/1.803, allocations: 3.844 kB / 0.8498 GB, free: 272.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001337/1.804, allocations: 0.7852 MB / 0.8506 GB, free: 272.4 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/1.804, allocations: 7.875 kB / 0.8506 GB, free: 272.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/1.804, allocations: 4.516 kB / 0.8506 GB, free: 272.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002554/1.804, allocations: 72.14 kB / 0.8507 GB, free: 272.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005955/1.805, allocations: 122.3 kB / 0.8508 GB, free: 272.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09154/1.897, allocations: 25.18 MB / 0.8754 GB, free: 249 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004617/1.897, allocations: 31.97 kB / 0.8754 GB, free: 248.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.258e-05/1.897, allocations: 16 kB / 0.8754 GB, free: 248.9 MB / 0.5919 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.0003009/1.898, allocations: 194.6 kB / 0.8756 GB, free: 248.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/1.898, allocations: 39.53 kB / 0.8757 GB, free: 248.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001826/1.9, allocations: 1.674 MB / 0.8773 GB, free: 246.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.038e-05/1.9, allocations: 18.64 kB / 0.8773 GB, free: 246.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/1.9, allocations: 0 / 0.8773 GB, free: 246.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001286/1.901, allocations: 1.247 MB / 0.8785 GB, free: 245.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001952/1.903, allocations: 1.707 MB / 0.8802 GB, free: 243.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/1.903, allocations: 4 kB / 0.8802 GB, free: 243.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003045/1.903, allocations: 83.12 kB / 0.8803 GB, free: 243.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002421/1.903, allocations: 113.4 kB / 0.8804 GB, free: 243.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.469e-05/1.903, allocations: 12 kB / 0.8804 GB, free: 243.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008991/1.904, allocations: 1.984 MB / 0.8823 GB, free: 241.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/1.904, allocations: 3.984 kB / 0.8823 GB, free: 241.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001744/1.906, allocations: 1.301 MB / 0.8836 GB, free: 240.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/1.906, allocations: 116.5 kB / 0.8837 GB, free: 240 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.527e-05/1.906, allocations: 12 kB / 0.8837 GB, free: 240 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003138/1.907, allocations: 23.97 kB / 0.8838 GB, free: 240 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/1.907, allocations: 47.88 kB / 0.8838 GB, free: 239.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.676e-05/1.907, allocations: 15.98 kB / 0.8838 GB, free: 239.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001846/1.907, allocations: 223.1 kB / 0.884 GB, free: 239.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/1.907, allocations: 0 / 0.884 GB, free: 239.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.009029/1.916, allocations: 3.181 MB / 0.8871 GB, free: 236.9 MB / 0.5919 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.02012/1.936, allocations: 5.807 MB / 0.8928 GB, free: 231.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002718/1.939, allocations: 1.01 MB / 0.8938 GB, free: 230.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/1.939, allocations: 0 / 0.8938 GB, free: 230.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007946/1.94, allocations: 0.5073 MB / 0.8943 GB, free: 229.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001983/1.942, allocations: 394.6 kB / 0.8947 GB, free: 229.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01323/1.955, allocations: 6.068 MB / 0.9006 GB, free: 223.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/1.955, allocations: 0.8526 MB / 0.9014 GB, free: 222.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004844/1.956, allocations: 143.2 kB / 0.9016 GB, free: 222.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002075/1.956, allocations: 171.4 kB / 0.9017 GB, free: 222.2 MB / 0.5919 GB Notification: Performance of SimCode: time 1.763e-06/1.956, allocations: 0 / 0.9017 GB, free: 222.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.188/2.144, allocations: 125 MB / 1.024 GB, free: 96.95 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.4/19.54, allocations: 4.312 kB / 1.024 GB, free: 96.95 MB / 0.5919 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)