Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.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.IsobutaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel",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.005479/0.005479, allocations: 99.69 kB / 15.73 MB, free: 5.555 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.001448/0.001448, allocations: 196.4 kB / 16.68 MB, free: 5.484 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.284/1.284, allocations: 205.1 MB / 222.6 MB, free: 4.477 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04794/0.04794, allocations: 9.088 MB / 279 MB, free: 12.08 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.002076/0.002076, allocations: 79.89 kB / 387.1 MB, free: 8.434 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.226, allocations: 48.15 MB / 435.2 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel): time 0.1273/0.3534, allocations: 128.8 MB / 0.5508 GB, free: 15.5 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2924/0.6458, allocations: 111.1 MB / 0.6592 GB, free: 324 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005082/0.6464, allocations: 5.438 kB / 0.6593 GB, free: 324 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002585/0.649, allocations: 1.373 MB / 0.6606 GB, free: 312 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002889/0.6519, allocations: 1.647 MB / 0.6622 GB, free: 264 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.0673/0.7192, allocations: 29.53 MB / 0.691 GB, free: 6.98 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001783/0.721, allocations: 1.407 MB / 0.6924 GB, free: 5.965 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002419/0.7213, allocations: 128.3 kB / 0.6925 GB, free: 5.867 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01536/0.7366, allocations: 9.853 MB / 0.7022 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000508/0.7372, allocations: 376 kB / 0.7025 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.829e-05/0.7373, allocations: 40 kB / 0.7026 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06042/0.7977, allocations: 35.36 MB / 0.7371 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002595/0.798, allocations: 118.7 kB / 0.7372 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005388/0.7985, allocations: 312.1 kB / 0.7375 GB, free: 13 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04134/0.8399, allocations: 14.2 MB / 0.7514 GB, free: 15.88 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.8399, allocations: 0 / 0.7514 GB, free: 15.88 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.623e-06/0.8399, allocations: 0 / 0.7514 GB, free: 15.88 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.075e-06/0.8399, allocations: 0 / 0.7514 GB, free: 15.88 MB / 0.545 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.005953/0.8459, allocations: 2.683 MB / 0.754 GB, free: 13.14 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.846, allocations: 8.031 kB / 0.754 GB, free: 13.14 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.155e-05/0.846, allocations: 86.45 kB / 0.7541 GB, free: 13.04 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005885/0.8466, allocations: 87.62 kB / 0.7542 GB, free: 12.96 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005145/0.8472, allocations: 346.4 kB / 0.7545 GB, free: 12.58 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.36e-05/0.8472, allocations: 28.66 kB / 0.7545 GB, free: 12.55 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.859e-05/0.8473, allocations: 39.92 kB / 0.7546 GB, free: 12.52 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/0.8486, allocations: 0.601 MB / 0.7551 GB, free: 11.89 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.8486, allocations: 0 / 0.7551 GB, free: 11.89 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.735e-05/0.8486, allocations: 15.56 kB / 0.7552 GB, free: 11.88 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.117e-05/0.8486, allocations: 21.47 kB / 0.7552 GB, free: 11.87 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001306/0.85, allocations: 0.5454 MB / 0.7557 GB, free: 11.32 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002669/0.8526, allocations: 2.466 MB / 0.7581 GB, free: 8.652 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/0.8537, allocations: 493.4 kB / 0.7586 GB, free: 8.164 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005414/0.8543, allocations: 338 kB / 0.7589 GB, free: 7.832 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3643/1.219, allocations: 139 MB / 0.8946 GB, free: 218.2 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/1.219, allocations: 40.75 kB / 0.8947 GB, free: 218.1 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 2.685e-06/1.219, allocations: 0 / 0.8947 GB, free: 218.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.004775/1.223, allocations: 2.335 MB / 0.897 GB, free: 216.9 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.004e-05/1.223, allocations: 59.06 kB / 0.897 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/1.224, allocations: 265.1 kB / 0.8973 GB, free: 216.6 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/1.224, allocations: 37.7 kB / 0.8973 GB, free: 216.5 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.233e-05/1.224, allocations: 188.8 kB / 0.8975 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.624e-05/1.224, allocations: 274 kB / 0.8978 GB, free: 216.1 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.591e-05/1.224, allocations: 106 kB / 0.8979 GB, free: 216 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 4.775e-05/1.224, allocations: 346.8 kB / 0.8982 GB, free: 215.7 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003948/1.224, allocations: 279.4 kB / 0.8985 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004239/1.225, allocations: 389.4 kB / 0.8988 GB, free: 215 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008098/1.226, allocations: 0.6954 MB / 0.8995 GB, free: 214.2 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/1.226, allocations: 0 / 0.8995 GB, free: 214.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001097/1.227, allocations: 0.8011 MB / 0.9003 GB, free: 213.4 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/1.227, allocations: 8 kB / 0.9003 GB, free: 213.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/1.227, allocations: 4 kB / 0.9003 GB, free: 213.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002063/1.227, allocations: 65.3 kB / 0.9004 GB, free: 213.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005988/1.228, allocations: 141.8 kB / 0.9005 GB, free: 213.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06009/1.288, allocations: 19.68 MB / 0.9197 GB, free: 193 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003622/1.288, allocations: 23.97 kB / 0.9197 GB, free: 193 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.81e-05/1.288, allocations: 27.88 kB / 0.9198 GB, free: 193 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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): 40 * 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, 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.0001961/1.288, allocations: 190.2 kB / 0.9199 GB, free: 192.8 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.084e-05/1.288, allocations: 47.66 kB / 0.92 GB, free: 192.8 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001521/1.29, allocations: 1.71 MB / 0.9217 GB, free: 191 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.271e-05/1.29, allocations: 19.45 kB / 0.9217 GB, free: 191 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/1.29, allocations: 0 / 0.9217 GB, free: 191 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001145/1.291, allocations: 1.299 MB / 0.9229 GB, free: 189.6 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001632/1.293, allocations: 1.749 MB / 0.9247 GB, free: 187.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/1.293, allocations: 7.922 kB / 0.9247 GB, free: 187.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002792/1.293, allocations: 69.95 kB / 0.9247 GB, free: 187.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002555/1.293, allocations: 174.2 kB / 0.9249 GB, free: 187.5 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.054e-05/1.293, allocations: 12 kB / 0.9249 GB, free: 187.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009057/1.294, allocations: 2.555 MB / 0.9274 GB, free: 184.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/1.294, allocations: 0 / 0.9274 GB, free: 184.8 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001545/1.296, allocations: 1.386 MB / 0.9288 GB, free: 183.3 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.068e-05/1.296, allocations: 124.7 kB / 0.9289 GB, free: 183.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.74e-05/1.296, allocations: 8 kB / 0.9289 GB, free: 183.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002719/1.296, allocations: 32.03 kB / 0.9289 GB, free: 183.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.423e-05/1.296, allocations: 43.94 kB / 0.929 GB, free: 183.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.141e-05/1.296, allocations: 12 kB / 0.929 GB, free: 183.1 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001469/1.297, allocations: 227 kB / 0.9292 GB, free: 182.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/1.297, allocations: 0 / 0.9292 GB, free: 182.9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006245/1.303, allocations: 3.568 MB / 0.9327 GB, free: 179.8 MB / 0.6075 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 (37): * Single equations (assignments): 31 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01349/1.316, allocations: 6.297 MB / 0.9388 GB, free: 173.9 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00194/1.318, allocations: 1.066 MB / 0.9399 GB, free: 172.9 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/1.318, allocations: 0 / 0.9399 GB, free: 172.9 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006278/1.319, allocations: 0.5035 MB / 0.9403 GB, free: 172.3 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/1.321, allocations: 395.1 kB / 0.9407 GB, free: 172 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01144/1.332, allocations: 6.298 MB / 0.9469 GB, free: 165.5 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001965/1.332, allocations: 0.8526 MB / 0.9477 GB, free: 164.6 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003333/1.333, allocations: 127.3 kB / 0.9478 GB, free: 164.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001665/1.333, allocations: 175.4 kB / 0.948 GB, free: 164.3 MB / 0.6075 GB Notification: Performance of SimCode: time 4.4e-07/1.333, allocations: 4 kB / 0.948 GB, free: 164.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.75/4.083, allocations: 133.2 MB / 1.078 GB, free: 30.97 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.22/24.31, allocations: 7.844 kB / 1.078 GB, free: 30.96 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe 2>&1)