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: "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT",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.007706/0.007706, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.002002/0.002002, allocations: 197.5 kB / 16.67 MB, free: 5.934 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.34/1.34, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04874/0.04874, allocations: 9.089 MB / 279 MB, free: 12.07 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.001972/0.001972, allocations: 68.33 kB / 387 MB, free: 8.441 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2172/0.2192, allocations: 48.17 MB / 435.2 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.1448/0.364, allocations: 142.2 MB / 0.5638 GB, free: 2.105 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2963/0.6604, allocations: 97.7 MB / 0.6593 GB, free: 300 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004561/0.6609, allocations: 8.25 kB / 0.6593 GB, free: 300 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002607/0.6635, allocations: 1.365 MB / 0.6606 GB, free: 288 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002803/0.6663, allocations: 1.659 MB / 0.6622 GB, free: 240 kB / 478.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.06624/0.7326, allocations: 29.53 MB / 0.6911 GB, free: 6.984 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001899/0.7345, allocations: 1.42 MB / 0.6924 GB, free: 5.965 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002583/0.7348, allocations: 136 kB / 0.6926 GB, free: 5.855 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01648/0.7513, allocations: 9.862 MB / 0.7022 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005167/0.7518, allocations: 373.7 kB / 0.7026 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.86e-05/0.7519, allocations: 40 kB / 0.7026 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05037/0.8023, allocations: 29.4 MB / 0.7313 GB, free: 3.121 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002797/0.8026, allocations: 120.7 kB / 0.7314 GB, free: 3.008 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005908/0.8032, allocations: 309.2 kB / 0.7317 GB, free: 2.707 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.03505/0.8382, allocations: 11.93 MB / 0.7434 GB, free: 7.609 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.8383, allocations: 0 / 0.7434 GB, free: 7.609 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.563e-06/0.8383, allocations: 8 kB / 0.7434 GB, free: 7.602 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.085e-06/0.8383, allocations: 0 / 0.7434 GB, free: 7.602 MB / 0.5294 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.004937/0.8433, allocations: 2.222 MB / 0.7455 GB, free: 5.336 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.8433, allocations: 8.031 kB / 0.7456 GB, free: 5.328 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.57e-05/0.8434, allocations: 82.52 kB / 0.7456 GB, free: 5.238 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004884/0.8439, allocations: 91.64 kB / 0.7457 GB, free: 5.148 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005133/0.8444, allocations: 349.9 kB / 0.7461 GB, free: 4.77 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.052e-05/0.8445, allocations: 24.66 kB / 0.7461 GB, free: 4.746 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.618e-05/0.8445, allocations: 39.94 kB / 0.7461 GB, free: 4.707 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.8458, allocations: 0.5738 MB / 0.7467 GB, free: 4.113 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.8458, allocations: 7.938 kB / 0.7467 GB, free: 4.105 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.944e-05/0.8458, allocations: 12 kB / 0.7467 GB, free: 4.094 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.95e-05/0.8459, allocations: 18.88 kB / 0.7467 GB, free: 4.078 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001208/0.8471, allocations: 0.5103 MB / 0.7472 GB, free: 3.57 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002641/0.8497, allocations: 2.492 MB / 0.7496 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.8508, allocations: 495.7 kB / 0.7501 GB, free: 380 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005495/0.8513, allocations: 326.3 kB / 0.7504 GB, free: 52 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3102/1.162, allocations: 113.3 MB / 0.861 GB, free: 251.6 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/1.162, allocations: 41.12 kB / 0.8611 GB, free: 251.6 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.855e-06/1.162, allocations: 1.594 kB / 0.8611 GB, free: 251.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005617/1.167, allocations: 2.651 MB / 0.8637 GB, free: 250.1 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.095e-05/1.167, allocations: 56.03 kB / 0.8637 GB, free: 250.1 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002118/1.167, allocations: 261.6 kB / 0.864 GB, free: 249.9 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.674e-05/1.168, allocations: 33.7 kB / 0.864 GB, free: 249.9 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.047e-05/1.168, allocations: 187.8 kB / 0.8642 GB, free: 249.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/1.168, allocations: 286.1 kB / 0.8645 GB, free: 249.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/1.168, allocations: 97.58 kB / 0.8645 GB, free: 249.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.393e-05/1.168, allocations: 350.5 kB / 0.8649 GB, free: 249.1 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004243/1.168, allocations: 283.4 kB / 0.8652 GB, free: 248.9 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004643/1.169, allocations: 404.1 kB / 0.8655 GB, free: 248.6 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008859/1.17, allocations: 0.7095 MB / 0.8662 GB, free: 248.2 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/1.17, allocations: 0 / 0.8662 GB, free: 248.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001205/1.171, allocations: 0.8278 MB / 0.867 GB, free: 247.7 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/1.171, allocations: 3.906 kB / 0.867 GB, free: 247.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/1.171, allocations: 3.969 kB / 0.867 GB, free: 247.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006914/1.172, allocations: 151.8 kB / 0.8672 GB, free: 247.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005148/1.172, allocations: 120.2 kB / 0.8673 GB, free: 247.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001358/1.174, allocations: 3.753 MB / 0.871 GB, free: 243.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002926/1.174, allocations: 31.69 kB / 0.871 GB, free: 243.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/1.174, allocations: 19.31 kB / 0.871 GB, free: 243.8 MB / 0.6075 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.0001686/1.174, allocations: 193.7 kB / 0.8712 GB, free: 243.6 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.708e-05/1.174, allocations: 43.53 kB / 0.8712 GB, free: 243.6 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001569/1.176, allocations: 1.678 MB / 0.8729 GB, free: 242.5 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.346e-05/1.176, allocations: 15.06 kB / 0.8729 GB, free: 242.5 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/1.176, allocations: 0 / 0.8729 GB, free: 242.5 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001129/1.177, allocations: 1.244 MB / 0.8741 GB, free: 241.6 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001768/1.179, allocations: 1.739 MB / 0.8758 GB, free: 240.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/1.179, allocations: 0 / 0.8758 GB, free: 240.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003019/1.179, allocations: 74.09 kB / 0.8759 GB, free: 240.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000514/1.18, allocations: 254.9 kB / 0.8761 GB, free: 240.3 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/1.18, allocations: 9.438 kB / 0.8761 GB, free: 240.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006292/1.18, allocations: 1.778 MB / 0.8779 GB, free: 238.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/1.18, allocations: 7.922 kB / 0.8779 GB, free: 238.6 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00167/1.182, allocations: 1.455 MB / 0.8793 GB, free: 237.7 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.043e-05/1.182, allocations: 120.6 kB / 0.8794 GB, free: 237.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.379e-05/1.182, allocations: 12.56 kB / 0.8794 GB, free: 237.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002908/1.182, allocations: 27.56 kB / 0.8795 GB, free: 237.5 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.863e-05/1.182, allocations: 41.23 kB / 0.8795 GB, free: 237.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.563e-05/1.182, allocations: 21.05 kB / 0.8795 GB, free: 237.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001614/1.183, allocations: 219.9 kB / 0.8797 GB, free: 237.4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.8e-07/1.183, allocations: 0 / 0.8797 GB, free: 237.4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.003639/1.186, allocations: 2.011 MB / 0.8817 GB, free: 237 MB / 0.6075 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.008438/1.195, allocations: 4.533 MB / 0.8861 GB, free: 233 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001561/1.196, allocations: 0.9066 MB / 0.887 GB, free: 232 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/1.196, allocations: 0 / 0.887 GB, free: 232 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006257/1.197, allocations: 437.7 kB / 0.8874 GB, free: 231.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001652/1.199, allocations: 386.8 kB / 0.8878 GB, free: 231.3 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006588/1.205, allocations: 5.752 MB / 0.8934 GB, free: 225.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/1.205, allocations: 0.8484 MB / 0.8942 GB, free: 224.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0002984/1.206, allocations: 91.97 kB / 0.8943 GB, free: 224.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/1.206, allocations: 171.4 kB / 0.8945 GB, free: 224.3 MB / 0.6075 GB Notification: Performance of SimCode: time 4.01e-07/1.206, allocations: 0 / 0.8945 GB, free: 224.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.532/3.738, allocations: 77.9 MB / 0.9706 GB, free: 146.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.51/24.25, allocations: 7.531 kB / 0.9706 GB, free: 146.3 MB / 0.6075 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe 2>&1)