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.001431/0.001431, allocations: 111.2 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.001224/0.001224, allocations: 195.8 kB / 17.31 MB, free: 5.82 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.072/2.072, 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.04942/0.04942, allocations: 9.093 MB / 279.6 MB, free: 2.977 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.00156/0.00156, allocations: 71.89 kB / 339.5 MB, free: 6.992 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4544/0.456, allocations: 48.14 MB / 387.6 MB, free: 51.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.2012/0.6573, allocations: 142.2 MB / 0.5174 GB, free: 12.84 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6526/1.31, allocations: 97.7 MB / 0.6128 GB, free: 14.57 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001217/1.311, allocations: 12.38 kB / 0.6128 GB, free: 14.57 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005129/1.316, allocations: 1.367 MB / 0.6141 GB, free: 14.24 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006349/1.323, allocations: 1.657 MB / 0.6158 GB, free: 13.85 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.1399/1.463, allocations: 29.53 MB / 0.6446 GB, free: 9.926 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003762/1.467, allocations: 1.413 MB / 0.646 GB, free: 8.539 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003883/1.467, allocations: 131.1 kB / 0.6461 GB, free: 8.418 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02537/1.492, allocations: 9.852 MB / 0.6557 GB, free: 14.97 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00141/1.494, allocations: 377.1 kB / 0.6561 GB, free: 14.62 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002901/1.494, allocations: 40 kB / 0.6561 GB, free: 14.59 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.08273/1.577, allocations: 29.4 MB / 0.6848 GB, free: 2.016 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005012/1.578, allocations: 126.7 kB / 0.685 GB, free: 1.895 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009686/1.579, allocations: 309.1 kB / 0.6853 GB, free: 1.598 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0682/1.647, allocations: 11.9 MB / 0.6969 GB, free: 6.531 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.308e-05/1.647, allocations: 0 / 0.6969 GB, free: 6.531 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.998e-06/1.647, allocations: 0 / 0.6969 GB, free: 6.531 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.921e-05/1.647, allocations: 4 kB / 0.6969 GB, free: 6.527 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.01021/1.657, allocations: 2.141 MB / 0.699 GB, free: 4.344 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.659e-05/1.657, allocations: 8.031 kB / 0.699 GB, free: 4.336 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006679/1.658, allocations: 75.41 kB / 0.6991 GB, free: 4.262 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008807/1.659, allocations: 341.3 kB / 0.6994 GB, free: 3.891 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.216e-05/1.659, allocations: 31.22 kB / 0.6994 GB, free: 3.863 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.603e-05/1.659, allocations: 32 kB / 0.6994 GB, free: 3.832 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/1.661, allocations: 0.5884 MB / 0.7 GB, free: 3.227 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.634e-05/1.661, allocations: 3.906 kB / 0.7 GB, free: 3.223 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.16e-05/1.661, allocations: 16 kB / 0.7 GB, free: 3.207 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.789e-05/1.661, allocations: 18.52 kB / 0.7001 GB, free: 3.191 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/1.662, allocations: 0.5169 MB / 0.7006 GB, free: 2.68 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003303/1.665, allocations: 2.472 MB / 0.703 GB, free: 0 / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/1.667, allocations: 0.4923 MB / 0.7035 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000584/1.667, allocations: 343.3 kB / 0.7038 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5948/2.262, allocations: 113.3 MB / 0.8144 GB, free: 156.6 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.645e-05/2.262, allocations: 30.84 kB / 0.8144 GB, free: 156.6 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=78): time 7.595e-06/2.262, allocations: 0 / 0.8144 GB, free: 156.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=83): time 0.006891/2.269, allocations: 2.64 MB / 0.817 GB, free: 153.9 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/2.269, allocations: 56.97 kB / 0.817 GB, free: 153.9 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003166/2.269, allocations: 255.2 kB / 0.8173 GB, free: 153.6 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.66e-05/2.27, allocations: 33.7 kB / 0.8173 GB, free: 153.6 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/2.27, allocations: 190.2 kB / 0.8175 GB, free: 153.4 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001983/2.27, allocations: 270.5 kB / 0.8178 GB, free: 153.1 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/2.27, allocations: 98.11 kB / 0.8179 GB, free: 153 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001903/2.27, allocations: 350.8 kB / 0.8182 GB, free: 152.7 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004865/2.271, allocations: 288 kB / 0.8185 GB, free: 152.4 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005717/2.271, allocations: 397.5 kB / 0.8188 GB, free: 152 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001099/2.272, allocations: 0.7083 MB / 0.8195 GB, free: 151.2 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/2.272, allocations: 1.938 kB / 0.8195 GB, free: 151.2 MB / 0.5137 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001431/2.274, allocations: 0.8203 MB / 0.8203 GB, free: 150.4 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/2.274, allocations: 4 kB / 0.8203 GB, free: 150.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/2.274, allocations: 7.062 kB / 0.8203 GB, free: 150.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008235/2.275, allocations: 154.1 kB / 0.8205 GB, free: 150.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000612/2.275, allocations: 126.7 kB / 0.8206 GB, free: 150.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003143/2.279, allocations: 3.746 MB / 0.8243 GB, free: 146.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003599/2.279, allocations: 24.97 kB / 0.8243 GB, free: 146.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.952e-05/2.279, allocations: 20 kB / 0.8243 GB, free: 146.1 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.0003148/2.279, allocations: 198.6 kB / 0.8245 GB, free: 145.9 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/2.279, allocations: 47.44 kB / 0.8245 GB, free: 145.9 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002234/2.282, allocations: 1.674 MB / 0.8262 GB, free: 144.1 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.679e-05/2.282, allocations: 22.44 kB / 0.8262 GB, free: 144.1 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/2.282, allocations: 0 / 0.8262 GB, free: 144.1 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001593/2.283, allocations: 1.245 MB / 0.8274 GB, free: 142.8 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002571/2.286, allocations: 1.737 MB / 0.8291 GB, free: 141 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/2.286, allocations: 0 / 0.8291 GB, free: 141 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000339/2.286, allocations: 73.88 kB / 0.8292 GB, free: 140.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007036/2.287, allocations: 248.3 kB / 0.8294 GB, free: 140.7 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.819e-05/2.287, allocations: 8 kB / 0.8294 GB, free: 140.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001338/2.288, allocations: 1.779 MB / 0.8312 GB, free: 138.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/2.288, allocations: 0 / 0.8312 GB, free: 138.8 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00218/2.291, allocations: 1.462 MB / 0.8326 GB, free: 137.3 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001699/2.291, allocations: 124.4 kB / 0.8327 GB, free: 137.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.109e-05/2.291, allocations: 11.94 kB / 0.8327 GB, free: 137.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003173/2.291, allocations: 29.03 kB / 0.8328 GB, free: 137.2 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/2.291, allocations: 46.8 kB / 0.8328 GB, free: 137.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.329e-05/2.291, allocations: 11.98 kB / 0.8328 GB, free: 137.1 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002595/2.292, allocations: 227.1 kB / 0.833 GB, free: 136.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/2.292, allocations: 0 / 0.833 GB, free: 136.9 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.008372/2.3, allocations: 1.965 MB / 0.8349 GB, free: 135.2 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.01517/2.315, allocations: 2.812 MB / 0.8377 GB, free: 132.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002832/2.318, allocations: 0.8823 MB / 0.8386 GB, free: 132 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.627e-06/2.318, allocations: 5.781 kB / 0.8386 GB, free: 132 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009283/2.319, allocations: 436.7 kB / 0.839 GB, free: 131.5 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002268/2.321, allocations: 403.3 kB / 0.8394 GB, free: 131.2 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002619/2.324, allocations: 1.167 MB / 0.8405 GB, free: 130 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006365/2.325, allocations: 0.8446 MB / 0.8413 GB, free: 129.1 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0005282/2.325, allocations: 86.33 kB / 0.8414 GB, free: 129.1 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/2.325, allocations: 39.44 kB / 0.8414 GB, free: 129 MB / 0.5137 GB Notification: Performance of SimCode: time 1.122e-06/2.325, allocations: 0 / 0.8414 GB, free: 129 MB / 0.5137 GB Notification: Performance of Templates: time 0.0988/2.424, allocations: 71.49 MB / 0.9113 GB, free: 57.61 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 cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe 2>&1)