Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.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.ButaneTestModel_dT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT") translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 107.7 kB / 16.36 MB, free: 6.293 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.001038/0.001038, allocations: 193.5 kB / 17.29 MB, free: 5.859 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.387/1.387, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0465/0.0465, allocations: 9.092 MB / 279.6 MB, free: 2.961 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.002509/0.002509, allocations: 67.89 kB / 339.5 MB, free: 6.988 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2677, allocations: 48.14 MB / 387.6 MB, free: 51.47 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.1345/0.4022, allocations: 142.2 MB / 0.5174 GB, free: 12.8 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.3208/0.723, allocations: 97.7 MB / 0.6128 GB, free: 14.55 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006104/0.7237, allocations: 8.812 kB / 0.6128 GB, free: 14.55 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003085/0.7268, allocations: 1.378 MB / 0.6141 GB, free: 14.22 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003617/0.7304, allocations: 1.647 MB / 0.6158 GB, free: 13.84 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.07424/0.8047, allocations: 29.54 MB / 0.6446 GB, free: 9.891 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002306/0.807, allocations: 1.415 MB / 0.646 GB, free: 8.504 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002764/0.8073, allocations: 128 kB / 0.6461 GB, free: 8.387 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01621/0.8235, allocations: 9.863 MB / 0.6557 GB, free: 14.93 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005124/0.8241, allocations: 376.2 kB / 0.6561 GB, free: 14.59 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.028e-05/0.8241, allocations: 40 kB / 0.6561 GB, free: 14.55 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04936/0.8735, allocations: 29.4 MB / 0.6848 GB, free: 1.98 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002474/0.8738, allocations: 126 kB / 0.685 GB, free: 1.859 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005408/0.8744, allocations: 309.3 kB / 0.6853 GB, free: 1.559 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03602/0.9104, allocations: 11.91 MB / 0.6969 GB, free: 6.492 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.9104, allocations: 4 kB / 0.6969 GB, free: 6.488 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.9104, allocations: 0 / 0.6969 GB, free: 6.488 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.263e-05/0.9105, allocations: 0 / 0.6969 GB, free: 6.488 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.005118/0.9156, allocations: 2.139 MB / 0.699 GB, free: 4.305 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.9156, allocations: 8.031 kB / 0.699 GB, free: 4.297 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005375/0.9162, allocations: 79.41 kB / 0.6991 GB, free: 4.219 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005079/0.9167, allocations: 332.4 kB / 0.6994 GB, free: 3.855 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.608e-05/0.9168, allocations: 28.66 kB / 0.6994 GB, free: 3.828 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.448e-05/0.9168, allocations: 32 kB / 0.6994 GB, free: 3.797 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.918, allocations: 0.5919 MB / 0.7 GB, free: 3.188 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.918, allocations: 3.906 kB / 0.7 GB, free: 3.184 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.787e-05/0.918, allocations: 16 kB / 0.7 GB, free: 3.168 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.824e-05/0.9181, allocations: 15.83 kB / 0.7 GB, free: 3.156 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.9192, allocations: 0.5172 MB / 0.7005 GB, free: 2.645 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002384/0.9216, allocations: 2.478 MB / 0.703 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.9227, allocations: 0.4945 MB / 0.7034 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005/0.9232, allocations: 328.6 kB / 0.7038 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3285/1.252, allocations: 113.3 MB / 0.8144 GB, free: 156.5 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/1.252, allocations: 34.84 kB / 0.8144 GB, free: 156.5 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=78): time 3.056e-06/1.252, allocations: 3.219 kB / 0.8144 GB, free: 156.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=83): time 0.006133/1.258, allocations: 2.629 MB / 0.817 GB, free: 153.8 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.749e-05/1.258, allocations: 56.97 kB / 0.817 GB, free: 153.8 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002414/1.258, allocations: 260.1 kB / 0.8173 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.405e-05/1.258, allocations: 40.52 kB / 0.8173 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 8.244e-05/1.258, allocations: 185.9 kB / 0.8175 GB, free: 153.3 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001278/1.258, allocations: 259.5 kB / 0.8177 GB, free: 153 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/1.259, allocations: 102.1 kB / 0.8178 GB, free: 152.9 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 6.224e-05/1.259, allocations: 350.8 kB / 0.8182 GB, free: 152.6 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004425/1.259, allocations: 281.1 kB / 0.8184 GB, free: 152.3 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004674/1.26, allocations: 400.2 kB / 0.8188 GB, free: 151.9 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008878/1.261, allocations: 0.7186 MB / 0.8195 GB, free: 151.1 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/1.261, allocations: 0 / 0.8195 GB, free: 151.1 MB / 0.5137 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001284/1.262, allocations: 0.8209 MB / 0.8203 GB, free: 150.3 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/1.262, allocations: 4 kB / 0.8203 GB, free: 150.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/1.262, allocations: 4 kB / 0.8203 GB, free: 150.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000823/1.263, allocations: 156.3 kB / 0.8205 GB, free: 150.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000569/1.263, allocations: 125.3 kB / 0.8206 GB, free: 150 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001645/1.265, allocations: 3.743 MB / 0.8243 GB, free: 146.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003325/1.265, allocations: 31.97 kB / 0.8243 GB, free: 146 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.334e-05/1.265, allocations: 20.86 kB / 0.8243 GB, free: 146 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (47): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 3 systems {1, 1, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001925/1.266, allocations: 200 kB / 0.8245 GB, free: 145.8 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/1.266, allocations: 43.44 kB / 0.8245 GB, free: 145.8 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001711/1.267, allocations: 1.681 MB / 0.8262 GB, free: 144 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.615e-05/1.267, allocations: 11.75 kB / 0.8262 GB, free: 144 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/1.267, allocations: 0 / 0.8262 GB, free: 144 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001168/1.269, allocations: 1.247 MB / 0.8274 GB, free: 142.7 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001977/1.271, allocations: 1.732 MB / 0.8291 GB, free: 140.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/1.271, allocations: 0 / 0.8291 GB, free: 140.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003209/1.271, allocations: 67.95 kB / 0.8292 GB, free: 140.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005907/1.272, allocations: 253.1 kB / 0.8294 GB, free: 140.6 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.552e-05/1.272, allocations: 15.98 kB / 0.8294 GB, free: 140.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007655/1.272, allocations: 1.778 MB / 0.8312 GB, free: 138.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/1.272, allocations: 3.938 kB / 0.8312 GB, free: 138.7 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001736/1.274, allocations: 1.462 MB / 0.8326 GB, free: 137.2 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/1.274, allocations: 116.5 kB / 0.8327 GB, free: 137.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.952e-05/1.274, allocations: 15.94 kB / 0.8327 GB, free: 137.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003412/1.275, allocations: 25.97 kB / 0.8327 GB, free: 137.1 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/1.275, allocations: 51.81 kB / 0.8328 GB, free: 137 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.138e-05/1.275, allocations: 16.55 kB / 0.8328 GB, free: 137 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001901/1.275, allocations: 222.9 kB / 0.833 GB, free: 136.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.21e-07/1.275, allocations: 0 / 0.833 GB, free: 136.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005955/1.281, allocations: 1.975 MB / 0.8349 GB, free: 135.1 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.d,volume.medium.T) * Number of discrete variables: 10 ($cse1.phase,$cse2.phase,$cse3.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 (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01051/1.292, allocations: 2.806 MB / 0.8377 GB, free: 132.8 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002044/1.294, allocations: 0.89 MB / 0.8386 GB, free: 131.8 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/1.294, allocations: 4 kB / 0.8386 GB, free: 131.8 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0007072/1.294, allocations: 428.8 kB / 0.839 GB, free: 131.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001838/1.296, allocations: 390.5 kB / 0.8393 GB, free: 131.1 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001667/1.298, allocations: 1.17 MB / 0.8405 GB, free: 129.9 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002348/1.298, allocations: 0.8524 MB / 0.8413 GB, free: 129 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000342/1.298, allocations: 91.31 kB / 0.8414 GB, free: 129 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/1.299, allocations: 35.44 kB / 0.8414 GB, free: 128.9 MB / 0.5137 GB Notification: Performance of SimCode: time 6.41e-07/1.299, allocations: 0 / 0.8414 GB, free: 128.9 MB / 0.5137 GB Notification: Performance of Templates: time 0.07836/1.377, allocations: 71.49 MB / 0.9112 GB, free: 57.51 MB / 0.5137 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe 2>&1)