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: translateModel(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 109.3 kB / 16.37 MB, free: 6.48 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.001715/0.001715, allocations: 195.8 kB / 17.31 MB, free: 5.824 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.341/1.341, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04699/0.04699, allocations: 9.097 MB / 279.6 MB, free: 2.969 MB / 222.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.0024/0.0024, allocations: 67.91 kB / 339.5 MB, free: 7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2227, allocations: 48.14 MB / 387.6 MB, free: 51.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel): time 0.1106/0.3333, allocations: 128.8 MB / 0.5043 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2577/0.5911, allocations: 111.1 MB / 0.6128 GB, free: 14.59 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005264/0.5917, allocations: 6.219 kB / 0.6128 GB, free: 14.59 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002585/0.5943, allocations: 1.369 MB / 0.6142 GB, free: 14.27 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002978/0.5973, allocations: 1.648 MB / 0.6158 GB, free: 13.88 MB / 430.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.07074/0.668, allocations: 29.49 MB / 0.6446 GB, free: 10.05 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001865/0.6699, allocations: 1.41 MB / 0.646 GB, free: 8.676 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002531/0.6702, allocations: 120.5 kB / 0.6461 GB, free: 8.566 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01529/0.6855, allocations: 9.725 MB / 0.6556 GB, free: 15.25 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005082/0.686, allocations: 383.5 kB / 0.6559 GB, free: 14.9 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.153e-05/0.6861, allocations: 44 kB / 0.656 GB, free: 14.86 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06089/0.747, allocations: 35.26 MB / 0.6904 GB, free: 12.68 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002505/0.7473, allocations: 125.4 kB / 0.6905 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004966/0.7478, allocations: 302.8 kB / 0.6908 GB, free: 12.27 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04019/0.788, allocations: 14.09 MB / 0.7046 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.788, allocations: 3.938 kB / 0.7046 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.484e-06/0.7881, allocations: 4 kB / 0.7046 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.657e-05/0.7881, allocations: 4 kB / 0.7046 GB, free: 15.23 MB / 0.4981 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.005691/0.7938, allocations: 2.564 MB / 0.7071 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.7938, allocations: 8.031 kB / 0.7071 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006112/0.7944, allocations: 93.2 kB / 0.7072 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004688/0.7949, allocations: 334.1 kB / 0.7075 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.455e-05/0.795, allocations: 32.66 kB / 0.7075 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.956e-05/0.795, allocations: 32 kB / 0.7076 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.7963, allocations: 0.6001 MB / 0.7081 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.7963, allocations: 7.906 kB / 0.7082 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.394e-05/0.7963, allocations: 16 kB / 0.7082 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.716e-05/0.7964, allocations: 15.97 kB / 0.7082 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/0.7976, allocations: 0.552 MB / 0.7087 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002485/0.8001, allocations: 2.508 MB / 0.7112 GB, free: 8.148 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.8012, allocations: 0.4914 MB / 0.7117 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005315/0.8017, allocations: 338.1 kB / 0.712 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.356/1.158, allocations: 139 MB / 0.8477 GB, free: 85.97 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/1.158, allocations: 34.83 kB / 0.8477 GB, free: 85.93 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=78): time 2.945e-06/1.158, allocations: 1.875 kB / 0.8477 GB, free: 85.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=82): time 0.005265/1.163, allocations: 2.338 MB / 0.85 GB, free: 83.55 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.897e-05/1.163, allocations: 55.41 kB / 0.8501 GB, free: 83.48 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002086/1.163, allocations: 254.5 kB / 0.8503 GB, free: 83.23 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/1.163, allocations: 37.7 kB / 0.8503 GB, free: 83.18 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.187e-05/1.163, allocations: 189.8 kB / 0.8505 GB, free: 83 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/1.164, allocations: 270.7 kB / 0.8508 GB, free: 82.74 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/1.164, allocations: 94.11 kB / 0.8509 GB, free: 82.64 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.707e-05/1.164, allocations: 354.8 kB / 0.8512 GB, free: 82.29 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004141/1.164, allocations: 277.2 kB / 0.8515 GB, free: 82.02 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004526/1.165, allocations: 381.9 kB / 0.8518 GB, free: 81.62 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008604/1.166, allocations: 0.6825 MB / 0.8525 GB, free: 80.89 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/1.166, allocations: 0 / 0.8525 GB, free: 80.89 MB / 0.4981 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001192/1.167, allocations: 0.8002 MB / 0.8533 GB, free: 80.08 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/1.167, allocations: 7.938 kB / 0.8533 GB, free: 80.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/1.167, allocations: 4 kB / 0.8533 GB, free: 80.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002417/1.167, allocations: 66.02 kB / 0.8534 GB, free: 80 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005677/1.168, allocations: 119.8 kB / 0.8535 GB, free: 79.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06503/1.233, allocations: 19.42 MB / 0.8724 GB, free: 59.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004005/1.233, allocations: 32.06 kB / 0.8725 GB, free: 59.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.811e-05/1.233, allocations: 16 kB / 0.8725 GB, free: 59.89 MB / 0.4981 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.0002699/1.233, allocations: 196 kB / 0.8727 GB, free: 59.69 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/1.234, allocations: 43.44 kB / 0.8727 GB, free: 59.65 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001766/1.235, allocations: 1.667 MB / 0.8743 GB, free: 57.91 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-05/1.235, allocations: 15.92 kB / 0.8744 GB, free: 57.89 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/1.235, allocations: 4 kB / 0.8744 GB, free: 57.89 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001198/1.237, allocations: 1.249 MB / 0.8756 GB, free: 56.55 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001883/1.238, allocations: 1.706 MB / 0.8772 GB, free: 54.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/1.238, allocations: 7.062 kB / 0.8773 GB, free: 54.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003177/1.239, allocations: 75.89 kB / 0.8773 GB, free: 54.72 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002726/1.239, allocations: 93.62 kB / 0.8774 GB, free: 54.62 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.917e-05/1.239, allocations: 16 kB / 0.8774 GB, free: 54.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009286/1.24, allocations: 1.996 MB / 0.8794 GB, free: 52.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/1.24, allocations: 0 / 0.8794 GB, free: 52.45 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/1.242, allocations: 1.315 MB / 0.8807 GB, free: 51.11 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/1.242, allocations: 112.6 kB / 0.8808 GB, free: 50.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.151e-05/1.242, allocations: 7.984 kB / 0.8808 GB, free: 50.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003053/1.242, allocations: 27.98 kB / 0.8808 GB, free: 50.94 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/1.242, allocations: 43.92 kB / 0.8808 GB, free: 50.9 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.862e-05/1.242, allocations: 15.94 kB / 0.8809 GB, free: 50.88 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000177/1.243, allocations: 223.1 kB / 0.8811 GB, free: 50.66 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.51e-07/1.243, allocations: 4.062 kB / 0.8811 GB, free: 50.66 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.007686/1.25, allocations: 3.507 MB / 0.8845 GB, free: 47.61 MB / 0.4981 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.01539/1.266, allocations: 4.554 MB / 0.889 GB, free: 43.53 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002052/1.268, allocations: 1.031 MB / 0.89 GB, free: 42.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/1.268, allocations: 0 / 0.89 GB, free: 42.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006904/1.269, allocations: 0.4953 MB / 0.8904 GB, free: 41.97 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00172/1.27, allocations: 398.1 kB / 0.8908 GB, free: 41.59 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/1.272, allocations: 1.185 MB / 0.892 GB, free: 40.41 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002071/1.272, allocations: 0.8563 MB / 0.8928 GB, free: 39.52 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003433/1.272, allocations: 136.3 kB / 0.8929 GB, free: 39.39 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.828e-05/1.272, allocations: 51.42 kB / 0.893 GB, free: 39.34 MB / 0.4981 GB Notification: Performance of SimCode: time 5.71e-07/1.272, allocations: 0 / 0.893 GB, free: 39.34 MB / 0.4981 GB Notification: Performance of Templates: time 0.2695/1.542, allocations: 126.2 MB / 1.016 GB, free: 149 MB / 0.4981 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.makefile (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe 2>&1)