Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.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.HeliumTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel",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.001275/0.001275, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.609/1.609, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04885/0.04885, allocations: 9.093 MB / 278.9 MB, free: 12.2 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.001775/0.001775, allocations: 71.91 kB / 338.1 MB, free: 25.36 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1196, allocations: 48.15 MB / 386.3 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.4193/0.539, allocations: 128.1 MB / 0.5023 GB, free: 5.715 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4517/0.9908, allocations: 110.1 MB / 0.6099 GB, free: 308 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008379/0.9917, allocations: 7.609 kB / 0.6099 GB, free: 308 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004001/0.9957, allocations: 1.273 MB / 0.6111 GB, free: 300 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004495/1, allocations: 1.543 MB / 0.6126 GB, free: 280 kB / 446.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.1002/1.1, allocations: 28.68 MB / 0.6406 GB, free: 14.19 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002254/1.103, allocations: 1.325 MB / 0.6419 GB, free: 13.89 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003246/1.103, allocations: 124.4 kB / 0.642 GB, free: 13.86 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01658/1.12, allocations: 8.627 MB / 0.6505 GB, free: 10.9 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005825/1.12, allocations: 370.2 kB / 0.6508 GB, free: 10.84 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.893e-05/1.12, allocations: 48.12 kB / 0.6509 GB, free: 10.83 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07238/1.193, allocations: 32.19 MB / 0.6823 GB, free: 4.539 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003627/1.193, allocations: 129.9 kB / 0.6824 GB, free: 4.418 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000763/1.194, allocations: 305.7 kB / 0.6827 GB, free: 4.121 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06361/1.258, allocations: 14.13 MB / 0.6965 GB, free: 7.086 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.345e-05/1.258, allocations: 0 / 0.6965 GB, free: 7.086 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.898e-06/1.258, allocations: 3.938 kB / 0.6965 GB, free: 7.082 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.54e-05/1.258, allocations: 0 / 0.6965 GB, free: 7.082 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.00864/1.266, allocations: 2.56 MB / 0.699 GB, free: 4.473 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/1.266, allocations: 16.03 kB / 0.699 GB, free: 4.457 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001059/1.266, allocations: 82.52 kB / 0.6991 GB, free: 4.367 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006713/1.267, allocations: 87.95 kB / 0.6992 GB, free: 4.281 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004481/1.268, allocations: 340.3 kB / 0.6995 GB, free: 3.914 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.676e-05/1.268, allocations: 32.66 kB / 0.6995 GB, free: 3.883 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.113e-05/1.268, allocations: 28 kB / 0.6996 GB, free: 3.855 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/1.269, allocations: 0.6002 MB / 0.7001 GB, free: 3.238 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/1.269, allocations: 3.906 kB / 0.7002 GB, free: 3.234 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.416e-05/1.269, allocations: 16 kB / 0.7002 GB, free: 3.219 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.126e-05/1.269, allocations: 16.83 kB / 0.7002 GB, free: 3.207 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001301/1.27, allocations: 0.552 MB / 0.7007 GB, free: 2.66 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002517/1.273, allocations: 2.514 MB / 0.7032 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/1.274, allocations: 0.4966 MB / 0.7037 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005454/1.275, allocations: 339.2 kB / 0.704 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5064/1.781, allocations: 139 MB / 0.8397 GB, free: 279.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.846e-05/1.781, allocations: 34.84 kB / 0.8397 GB, free: 279.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 3.967e-06/1.781, allocations: 0 / 0.8397 GB, free: 279.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.00617/1.787, allocations: 2.337 MB / 0.842 GB, free: 278.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.222e-05/1.787, allocations: 59.12 kB / 0.8421 GB, free: 278.1 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002777/1.788, allocations: 264 kB / 0.8423 GB, free: 277.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.786e-05/1.788, allocations: 33.55 kB / 0.8424 GB, free: 277.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/1.788, allocations: 187.8 kB / 0.8425 GB, free: 277.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001828/1.788, allocations: 258.1 kB / 0.8428 GB, free: 277.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001628/1.788, allocations: 108.7 kB / 0.8429 GB, free: 277.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.908e-05/1.788, allocations: 349.7 kB / 0.8432 GB, free: 277 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004771/1.789, allocations: 270.1 kB / 0.8435 GB, free: 276.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005319/1.789, allocations: 407.6 kB / 0.8439 GB, free: 276.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001035/1.79, allocations: 0.7094 MB / 0.8446 GB, free: 276.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/1.79, allocations: 0 / 0.8446 GB, free: 276.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.0014/1.792, allocations: 0.8029 MB / 0.8453 GB, free: 275.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/1.792, allocations: 7.375 kB / 0.8454 GB, free: 275.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/1.792, allocations: 3.5 kB / 0.8454 GB, free: 275.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002587/1.792, allocations: 61.42 kB / 0.8454 GB, free: 275.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006171/1.793, allocations: 124.9 kB / 0.8455 GB, free: 275.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09301/1.886, allocations: 25.62 MB / 0.8706 GB, free: 252.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005066/1.886, allocations: 36.03 kB / 0.8706 GB, free: 252.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.942e-05/1.886, allocations: 20 kB / 0.8706 GB, free: 252.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {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.0003358/1.887, allocations: 188.2 kB / 0.8708 GB, free: 252.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001416/1.887, allocations: 44.08 kB / 0.8708 GB, free: 252.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001842/1.889, allocations: 1.582 MB / 0.8724 GB, free: 251 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.555e-05/1.889, allocations: 15.98 kB / 0.8724 GB, free: 250.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/1.889, allocations: 3.797 kB / 0.8724 GB, free: 250.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001246/1.89, allocations: 1.176 MB / 0.8735 GB, free: 249.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002092/1.892, allocations: 1.647 MB / 0.8752 GB, free: 248 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/1.892, allocations: 0 / 0.8752 GB, free: 248 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003067/1.893, allocations: 71.95 kB / 0.8752 GB, free: 247.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002628/1.893, allocations: 113.5 kB / 0.8753 GB, free: 247.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.888e-05/1.893, allocations: 8 kB / 0.8753 GB, free: 247.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009443/1.894, allocations: 1.997 MB / 0.8773 GB, free: 245.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/1.894, allocations: 4.031 kB / 0.8773 GB, free: 245.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001692/1.896, allocations: 1.245 MB / 0.8785 GB, free: 244.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/1.896, allocations: 112.6 kB / 0.8786 GB, free: 244.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.272e-05/1.896, allocations: 15.91 kB / 0.8786 GB, free: 244.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003192/1.896, allocations: 27.97 kB / 0.8787 GB, free: 244.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.649e-05/1.896, allocations: 43.94 kB / 0.8787 GB, free: 244.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.718e-05/1.896, allocations: 15.98 kB / 0.8787 GB, free: 244.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002099/1.896, allocations: 239.1 kB / 0.8789 GB, free: 243.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/1.896, allocations: 0 / 0.8789 GB, free: 243.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008899/1.905, allocations: 3.186 MB / 0.882 GB, free: 241.1 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 9 ($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 (38): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02111/1.926, allocations: 5.788 MB / 0.8877 GB, free: 235.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00249/1.929, allocations: 1.001 MB / 0.8887 GB, free: 234.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/1.929, allocations: 0 / 0.8887 GB, free: 234.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008729/1.93, allocations: 0.4957 MB / 0.8892 GB, free: 234.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002177/1.932, allocations: 399 kB / 0.8895 GB, free: 233.8 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01388/1.946, allocations: 6.196 MB / 0.8956 GB, free: 227.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/1.946, allocations: 0.8525 MB / 0.8964 GB, free: 226.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005492/1.947, allocations: 136.8 kB / 0.8966 GB, free: 226.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002149/1.947, allocations: 163.4 kB / 0.8967 GB, free: 226.3 MB / 0.5919 GB Notification: Performance of SimCode: time 8.81e-07/1.947, allocations: 0 / 0.8967 GB, free: 226.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2002/2.147, allocations: 124.7 MB / 1.018 GB, free: 101.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.44/19.59, allocations: 19.92 kB / 1.018 GB, free: 101.4 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe 2>&1)