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.001302/0.001302, 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.001355/0.001356, allocations: 192.8 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.321/1.321, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04546/0.04546, allocations: 9.089 MB / 278.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.001432/0.001432, allocations: 71.84 kB / 338 MB, free: 25.43 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07054/0.07199, allocations: 48.17 MB / 386.2 MB, free: 9.219 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel): time 0.2634/0.3354, allocations: 128.8 MB / 0.5029 GB, free: 5.035 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3016/0.6371, allocations: 111.1 MB / 0.6114 GB, free: 328 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005269/0.6377, allocations: 10.38 kB / 0.6114 GB, free: 324 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002943/0.6406, allocations: 1.366 MB / 0.6127 GB, free: 316 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003257/0.6439, allocations: 1.652 MB / 0.6143 GB, free: 296 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.06407/0.708, allocations: 29.49 MB / 0.6432 GB, free: 13.66 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00156/0.7096, allocations: 1.404 MB / 0.6445 GB, free: 13.31 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002427/0.7099, allocations: 135.6 kB / 0.6447 GB, free: 13.27 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01454/0.7244, allocations: 9.73 MB / 0.6542 GB, free: 9.469 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006954/0.7252, allocations: 380.1 kB / 0.6545 GB, free: 9.215 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.7253, allocations: 40 kB / 0.6546 GB, free: 9.176 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05603/0.7813, allocations: 33.78 MB / 0.6875 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002275/0.7816, allocations: 126 kB / 0.6877 GB, free: 15.86 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004999/0.7821, allocations: 311.9 kB / 0.688 GB, free: 15.56 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03737/0.8195, allocations: 14.09 MB / 0.7017 GB, free: 2.559 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.8195, allocations: 7.312 kB / 0.7017 GB, free: 2.555 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.827e-06/0.8195, allocations: 0 / 0.7017 GB, free: 2.555 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.148e-06/0.8195, allocations: 3.938 kB / 0.7017 GB, free: 2.551 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.005685/0.8252, allocations: 2.571 MB / 0.7042 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.8253, allocations: 8.031 kB / 0.7042 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006222/0.8259, allocations: 83.39 kB / 0.7043 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004713/0.8264, allocations: 339.3 kB / 0.7046 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.511e-05/0.8264, allocations: 36.59 kB / 0.7047 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.016e-05/0.8265, allocations: 36 kB / 0.7047 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00127/0.8278, allocations: 0.5989 MB / 0.7053 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.8278, allocations: 4 kB / 0.7053 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.954e-05/0.8278, allocations: 12 kB / 0.7053 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.842e-05/0.8279, allocations: 14.97 kB / 0.7053 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.8292, allocations: 0.552 MB / 0.7059 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00289/0.8321, allocations: 2.513 MB / 0.7083 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.8333, allocations: 0.4896 MB / 0.7088 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000547/0.8338, allocations: 342.3 kB / 0.7091 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3862/1.22, allocations: 139 MB / 0.8448 GB, free: 276 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/1.22, allocations: 34.75 kB / 0.8449 GB, free: 276 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 2.514e-06/1.22, allocations: 0 / 0.8449 GB, free: 276 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.005436/1.226, allocations: 2.342 MB / 0.8472 GB, free: 274.7 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.207e-05/1.226, allocations: 58.94 kB / 0.8472 GB, free: 274.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002118/1.226, allocations: 260.2 kB / 0.8475 GB, free: 274.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/1.226, allocations: 33.23 kB / 0.8475 GB, free: 274.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.642e-05/1.226, allocations: 191.8 kB / 0.8477 GB, free: 274.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/1.226, allocations: 263.4 kB / 0.8479 GB, free: 274 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/1.226, allocations: 96.95 kB / 0.848 GB, free: 273.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.985e-05/1.226, allocations: 354.4 kB / 0.8484 GB, free: 273.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004551/1.227, allocations: 273.9 kB / 0.8486 GB, free: 273.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004654/1.227, allocations: 380.6 kB / 0.849 GB, free: 273.2 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000913/1.228, allocations: 0.6818 MB / 0.8497 GB, free: 272.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/1.228, allocations: 0 / 0.8497 GB, free: 272.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001298/1.229, allocations: 0.7916 MB / 0.8504 GB, free: 272.3 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/1.229, allocations: 3.969 kB / 0.8504 GB, free: 272.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/1.229, allocations: 7.688 kB / 0.8504 GB, free: 272.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002261/1.23, allocations: 66.72 kB / 0.8505 GB, free: 272.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005885/1.23, allocations: 124.9 kB / 0.8506 GB, free: 272.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0931/1.323, allocations: 25.18 MB / 0.8752 GB, free: 248.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000407/1.324, allocations: 27.97 kB / 0.8752 GB, free: 248.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.765e-05/1.324, allocations: 20 kB / 0.8753 GB, free: 248.8 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.0002238/1.324, allocations: 199.9 kB / 0.8754 GB, free: 248.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.692e-05/1.324, allocations: 43.47 kB / 0.8755 GB, free: 248.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001693/1.326, allocations: 1.671 MB / 0.8771 GB, free: 246.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/1.326, allocations: 7.984 kB / 0.8771 GB, free: 246.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/1.326, allocations: 4 kB / 0.8771 GB, free: 246.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001249/1.327, allocations: 1.245 MB / 0.8783 GB, free: 245.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001845/1.329, allocations: 1.712 MB / 0.88 GB, free: 243.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/1.329, allocations: 4 kB / 0.88 GB, free: 243.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003271/1.329, allocations: 79.88 kB / 0.8801 GB, free: 243.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000242/1.33, allocations: 105.5 kB / 0.8802 GB, free: 243.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.332e-05/1.33, allocations: 4 kB / 0.8802 GB, free: 243.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008771/1.331, allocations: 1.997 MB / 0.8822 GB, free: 241.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/1.331, allocations: 0 / 0.8822 GB, free: 241.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001683/1.332, allocations: 1.3 MB / 0.8834 GB, free: 240 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.773e-05/1.332, allocations: 124.5 kB / 0.8835 GB, free: 239.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.208e-05/1.333, allocations: 10.62 kB / 0.8836 GB, free: 239.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003077/1.333, allocations: 19.98 kB / 0.8836 GB, free: 239.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.901e-05/1.333, allocations: 51.86 kB / 0.8836 GB, free: 239.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.439e-05/1.333, allocations: 12 kB / 0.8836 GB, free: 239.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001751/1.333, allocations: 223.1 kB / 0.8838 GB, free: 239.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2e-07/1.333, allocations: 0 / 0.8838 GB, free: 239.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006564/1.34, allocations: 3.186 MB / 0.887 GB, free: 236.8 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.01355/1.353, allocations: 4.134 MB / 0.891 GB, free: 233.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002189/1.355, allocations: 1.022 MB / 0.892 GB, free: 232.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/1.356, allocations: 3.938 kB / 0.892 GB, free: 232.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007017/1.356, allocations: 0.4915 MB / 0.8925 GB, free: 231.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001941/1.358, allocations: 386.6 kB / 0.8928 GB, free: 231.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/1.36, allocations: 1.213 MB / 0.894 GB, free: 230 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/1.36, allocations: 0.8526 MB / 0.8949 GB, free: 229.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004147/1.361, allocations: 135.2 kB / 0.895 GB, free: 229 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.498e-05/1.361, allocations: 43.44 kB / 0.895 GB, free: 228.9 MB / 0.5919 GB Notification: Performance of SimCode: time 9.12e-07/1.361, allocations: 0 / 0.895 GB, free: 228.9 MB / 0.5919 GB Notification: Performance of Templates: time 0.1199/1.481, allocations: 118.6 MB / 1.011 GB, free: 110.2 MB / 0.5919 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 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe 2>&1)