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.01009/0.01009, allocations: 101.6 kB / 15.73 MB, free: 6.031 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.002177/0.002177, allocations: 195.8 kB / 16.67 MB, free: 5.969 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.541/1.541, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04847/0.04847, allocations: 9.089 MB / 279 MB, free: 12.09 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.001765/0.001765, allocations: 71.91 kB / 387 MB, free: 8.461 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3362, allocations: 48.15 MB / 435.2 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel): time 0.1425/0.4788, allocations: 128.8 MB / 0.5508 GB, free: 15.54 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4097/0.8885, allocations: 111.1 MB / 0.6592 GB, free: 280 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008625/0.8895, allocations: 7.156 kB / 0.6592 GB, free: 280 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003224/0.8927, allocations: 1.368 MB / 0.6606 GB, free: 268 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00446/0.8972, allocations: 1.656 MB / 0.6622 GB, free: 220 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.08702/0.9843, allocations: 29.55 MB / 0.6911 GB, free: 7.004 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00269/0.987, allocations: 1.404 MB / 0.6924 GB, free: 5.992 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000291/0.9873, allocations: 130.7 kB / 0.6926 GB, free: 5.895 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01711/1.004, allocations: 9.856 MB / 0.7022 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006082/1.005, allocations: 381.1 kB / 0.7025 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.471e-05/1.005, allocations: 44 kB / 0.7026 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07134/1.076, allocations: 35.36 MB / 0.7371 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003079/1.077, allocations: 114.6 kB / 0.7372 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006085/1.077, allocations: 317.4 kB / 0.7375 GB, free: 12.97 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04803/1.126, allocations: 14.16 MB / 0.7514 GB, free: 15.9 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 9.498e-06/1.126, allocations: 0 / 0.7514 GB, free: 15.9 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.635e-06/1.126, allocations: 0 / 0.7514 GB, free: 15.9 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.066e-05/1.126, allocations: 0 / 0.7514 GB, free: 15.9 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.007623/1.133, allocations: 2.567 MB / 0.7539 GB, free: 13.29 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/1.133, allocations: 12.03 kB / 0.7539 GB, free: 13.27 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001024/1.133, allocations: 86.45 kB / 0.754 GB, free: 13.18 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006567/1.134, allocations: 83.39 kB / 0.754 GB, free: 13.1 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004384/1.135, allocations: 348.8 kB / 0.7544 GB, free: 12.72 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.738e-05/1.135, allocations: 28.22 kB / 0.7544 GB, free: 12.7 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.508e-05/1.135, allocations: 39.94 kB / 0.7544 GB, free: 12.66 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/1.136, allocations: 0.6002 MB / 0.755 GB, free: 12.04 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/1.136, allocations: 0 / 0.755 GB, free: 12.04 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.979e-05/1.136, allocations: 12 kB / 0.755 GB, free: 12.03 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.337e-05/1.136, allocations: 15.05 kB / 0.7551 GB, free: 12.02 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/1.137, allocations: 0.552 MB / 0.7556 GB, free: 11.47 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002766/1.14, allocations: 2.47 MB / 0.758 GB, free: 8.805 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/1.141, allocations: 482.4 kB / 0.7585 GB, free: 8.328 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005552/1.142, allocations: 350.4 kB / 0.7588 GB, free: 7.984 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5688/1.711, allocations: 139 MB / 0.8945 GB, free: 64.07 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.487e-05/1.711, allocations: 38.38 kB / 0.8945 GB, free: 64.02 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 3.306e-06/1.711, allocations: 2.969 kB / 0.8945 GB, free: 64.02 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.005855/1.717, allocations: 2.34 MB / 0.8968 GB, free: 63.55 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.582e-05/1.717, allocations: 57.06 kB / 0.8969 GB, free: 63.48 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002407/1.717, allocations: 260.5 kB / 0.8971 GB, free: 63.38 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.629e-05/1.717, allocations: 30.7 kB / 0.8972 GB, free: 63.34 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.513e-05/1.717, allocations: 199.6 kB / 0.8973 GB, free: 63.22 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/1.717, allocations: 260.9 kB / 0.8976 GB, free: 63.09 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/1.717, allocations: 98.7 kB / 0.8977 GB, free: 63.07 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.442e-05/1.717, allocations: 354.5 kB / 0.898 GB, free: 62.76 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004401/1.718, allocations: 275.2 kB / 0.8983 GB, free: 62.75 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004848/1.718, allocations: 392.9 kB / 0.8987 GB, free: 62.64 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009306/1.719, allocations: 0.6963 MB / 0.8993 GB, free: 62.51 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/1.719, allocations: 6.5 kB / 0.8994 GB, free: 62.51 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001257/1.72, allocations: 0.8035 MB / 0.9001 GB, free: 62.4 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/1.721, allocations: 8.422 kB / 0.9001 GB, free: 62.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/1.721, allocations: 5.969 kB / 0.9001 GB, free: 62.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002641/1.721, allocations: 57.98 kB / 0.9002 GB, free: 62.38 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006998/1.722, allocations: 145.2 kB / 0.9003 GB, free: 62.38 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08499/1.807, allocations: 19.66 MB / 0.9195 GB, free: 54.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007102/1.807, allocations: 30.62 kB / 0.9196 GB, free: 54.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.215e-05/1.807, allocations: 21.67 kB / 0.9196 GB, free: 54.4 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.0004517/1.808, allocations: 193.9 kB / 0.9198 GB, free: 54.28 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002281/1.808, allocations: 41.06 kB / 0.9198 GB, free: 54.26 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00335/1.811, allocations: 1.71 MB / 0.9215 GB, free: 53.98 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.708e-05/1.812, allocations: 14.47 kB / 0.9215 GB, free: 53.98 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/1.812, allocations: 0 / 0.9215 GB, free: 53.98 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002361/1.814, allocations: 1.296 MB / 0.9228 GB, free: 53.48 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003517/1.817, allocations: 1.754 MB / 0.9245 GB, free: 53.11 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/1.818, allocations: 0 / 0.9245 GB, free: 53.11 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005928/1.818, allocations: 73.55 kB / 0.9246 GB, free: 53.11 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005355/1.819, allocations: 166.5 kB / 0.9247 GB, free: 53.07 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.348e-05/1.819, allocations: 12.16 kB / 0.9247 GB, free: 53.07 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001895/1.821, allocations: 2.566 MB / 0.9272 GB, free: 50.68 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.821, allocations: 0 / 0.9272 GB, free: 50.68 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003249/1.824, allocations: 1.381 MB / 0.9286 GB, free: 50.45 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001839/1.824, allocations: 123 kB / 0.9287 GB, free: 50.33 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/1.824, allocations: 11.62 kB / 0.9287 GB, free: 50.32 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006216/1.825, allocations: 27.14 kB / 0.9287 GB, free: 50.32 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/1.825, allocations: 41.95 kB / 0.9288 GB, free: 50.32 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-05/1.825, allocations: 14.3 kB / 0.9288 GB, free: 50.32 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0003535/1.825, allocations: 221.3 kB / 0.929 GB, free: 50.24 MB / 0.6075 GB Notification: Performance of sort global known variables: time 4.31e-07/1.826, allocations: 0 / 0.929 GB, free: 50.24 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01342/1.839, allocations: 3.52 MB / 0.9324 GB, free: 47.83 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.03204/1.871, allocations: 6.239 MB / 0.9385 GB, free: 43.54 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003974/1.875, allocations: 1.052 MB / 0.9396 GB, free: 42.85 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/1.875, allocations: 0 / 0.9396 GB, free: 42.85 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001282/1.876, allocations: 0.5049 MB / 0.94 GB, free: 42.54 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003104/1.88, allocations: 394.6 kB / 0.9404 GB, free: 42.28 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02052/1.9, allocations: 6.224 MB / 0.9465 GB, free: 37.54 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004028/1.901, allocations: 0.8468 MB / 0.9473 GB, free: 36.72 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0007649/1.901, allocations: 141 kB / 0.9475 GB, free: 36.63 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003261/1.902, allocations: 165.1 kB / 0.9476 GB, free: 36.59 MB / 0.6075 GB Notification: Performance of SimCode: time 1.142e-06/1.902, allocations: 4 kB / 0.9476 GB, free: 36.59 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4984/2.4, allocations: 133.4 MB / 1.078 GB, free: 253.3 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.62/20.02, allocations: 8.156 kB / 1.078 GB, free: 253.3 MB / 0.67 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)