Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.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.Parameter.State_ph_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ph_parameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.State_ph_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ph_parameter",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.001579/0.001579, 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.001837/0.001837, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.407/1.407, allocations: 205.1 MB / 222.4 MB, free: 4.617 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04773/0.04773, allocations: 9.102 MB / 278.9 MB, free: 12.18 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.001464/0.001464, allocations: 71.89 kB / 338.1 MB, free: 25.32 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07985/0.08133, allocations: 48.15 MB / 386.3 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_ph_parameter): time 0.01859/0.09996, allocations: 16.85 MB / 403.1 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009426/0.1094, allocations: 9.728 MB / 412.9 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.993e-05/0.1095, allocations: 0 / 412.9 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006557/0.1102, allocations: 259.5 kB / 413.1 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.063e-05/0.1102, allocations: 23.83 kB / 413.1 MB, free: 14.15 MB / 318.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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.01115/0.1214, allocations: 5.086 MB / 418.2 MB, free: 9.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.758e-05/0.1215, allocations: 47.73 kB / 418.3 MB, free: 9.023 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.046e-05/0.1215, allocations: 4 kB / 418.3 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.342e-05/0.1216, allocations: 19.88 kB / 418.3 MB, free: 9 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.606e-05/0.1217, allocations: 11.94 kB / 418.3 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.506e-06/0.1217, allocations: 4 kB / 418.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01187/0.1336, allocations: 7.509 MB / 425.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.674e-05/0.1337, allocations: 3.938 kB / 425.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.245e-05/0.1337, allocations: 23.88 kB / 425.9 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1643/0.298, allocations: 3.292 MB / 429.1 MB, free: 21.7 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.2981, allocations: 0 / 429.1 MB, free: 21.7 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2981, allocations: 1.156 kB / 429.1 MB, free: 21.7 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.759e-05/0.2981, allocations: 0 / 429.1 MB, free: 21.7 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.001381/0.2995, allocations: 0.6893 MB / 429.8 MB, free: 21.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.2996, allocations: 12.47 kB / 429.8 MB, free: 21.16 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.813e-05/0.2996, allocations: 35.12 kB / 429.9 MB, free: 21.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.88e-05/0.2996, allocations: 3.641 kB / 429.9 MB, free: 21.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.935e-05/0.2997, allocations: 167 kB / 430 MB, free: 20.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.2998, allocations: 3.344 kB / 430.1 MB, free: 20.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.066e-05/0.2998, allocations: 3.547 kB / 430.1 MB, free: 20.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001023/0.2999, allocations: 40.47 kB / 430.1 MB, free: 20.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.2999, allocations: 2.781 kB / 430.1 MB, free: 20.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.765e-06/0.2999, allocations: 3.797 kB / 430.1 MB, free: 20.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.2999, allocations: 1.75 kB / 430.1 MB, free: 20.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.692e-05/0.3, allocations: 12.78 kB / 430.1 MB, free: 20.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001345/0.3001, allocations: 165.4 kB / 430.3 MB, free: 20.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.147e-05/0.3002, allocations: 36.69 kB / 430.3 MB, free: 20.68 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.411e-05/0.3002, allocations: 21.56 kB / 430.3 MB, free: 20.67 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02353/0.3237, allocations: 14.01 MB / 444.3 MB, free: 8.504 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.3238, allocations: 30.56 kB / 444.4 MB, free: 8.465 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 2.505e-06/0.3238, allocations: 0 / 444.4 MB, free: 8.465 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002196/0.324, allocations: 74.45 kB / 444.4 MB, free: 8.434 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.345e-05/0.3241, allocations: 57.34 kB / 444.5 MB, free: 8.367 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.575e-05/0.3241, allocations: 101.7 kB / 444.6 MB, free: 8.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.744e-06/0.3241, allocations: 25.7 kB / 444.6 MB, free: 8.238 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.755e-05/0.3242, allocations: 81.48 kB / 444.7 MB, free: 8.156 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.461e-05/0.3242, allocations: 18.95 kB / 444.7 MB, free: 8.141 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-05/0.3242, allocations: 18.17 kB / 444.7 MB, free: 8.125 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.504e-05/0.3243, allocations: 313.2 kB / 445 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.562e-05/0.3243, allocations: 18.81 kB / 445.1 MB, free: 7.812 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.935e-05/0.3244, allocations: 14.23 kB / 445.1 MB, free: 7.809 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.049e-05/0.3244, allocations: 35.11 kB / 445.1 MB, free: 7.801 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3244, allocations: 0 / 445.1 MB, free: 7.801 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.082e-05/0.3245, allocations: 70.38 kB / 445.2 MB, free: 7.766 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.3245, allocations: 8.562 kB / 445.2 MB, free: 7.766 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.3245, allocations: 0 / 445.2 MB, free: 7.766 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.3246, allocations: 1.75 kB / 445.2 MB, free: 7.766 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.3246, allocations: 0 / 445.2 MB, free: 7.766 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.3246, allocations: 0.8906 kB / 445.2 MB, free: 7.766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.251e-05/0.3246, allocations: 64 / 445.2 MB, free: 7.766 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.3246, allocations: 6.875 kB / 445.2 MB, free: 7.762 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (inletState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.022e-05/0.3247, allocations: 110.3 kB / 445.3 MB, free: 7.645 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.378e-06/0.3247, allocations: 6.766 kB / 445.3 MB, free: 7.641 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001127/0.3248, allocations: 169.3 kB / 445.5 MB, free: 7.473 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.577e-05/0.3248, allocations: 181.7 kB / 445.7 MB, free: 7.293 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.722e-05/0.3249, allocations: 184.3 kB / 445.8 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.239e-05/0.3249, allocations: 181.4 kB / 446 MB, free: 6.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001456/0.3251, allocations: 411.1 kB / 446.4 MB, free: 6.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.622e-05/0.3251, allocations: 105.5 kB / 446.5 MB, free: 6.379 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.664e-05/0.3251, allocations: 106.5 kB / 446.6 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.588e-05/0.3251, allocations: 180.2 kB / 446.8 MB, free: 6.094 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.683e-05/0.3252, allocations: 188 kB / 447 MB, free: 5.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.563e-05/0.3252, allocations: 180.8 kB / 447.2 MB, free: 5.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.681e-05/0.3252, allocations: 180.5 kB / 447.3 MB, free: 5.551 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.356e-05/0.3253, allocations: 315 kB / 447.6 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002256/0.3255, allocations: 185.5 kB / 447.8 MB, free: 21.03 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.723e-05/0.3256, allocations: 182 kB / 448 MB, free: 20.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.3257, allocations: 108.1 kB / 448.1 MB, free: 20.74 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.664e-05/0.3258, allocations: 176.9 kB / 448.3 MB, free: 20.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.692e-05/0.3259, allocations: 105.2 kB / 448.4 MB, free: 20.46 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.711e-05/0.3259, allocations: 104 kB / 448.5 MB, free: 20.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.326, allocations: 4.906 kB / 448.5 MB, free: 20.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002902/0.3289, allocations: 0.7389 MB / 449.2 MB, free: 20.25 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003436/0.3323, allocations: 1.909 MB / 451.1 MB, free: 19.26 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 8.125e-05/0.3324, allocations: 16.59 kB / 451.2 MB, free: 19.26 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.3324, allocations: 0 / 451.2 MB, free: 19.26 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.304e-06/0.3324, allocations: 3.562 kB / 451.2 MB, free: 19.26 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005365/0.333, allocations: 488.7 kB / 451.6 MB, free: 18.81 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001622/0.3346, allocations: 1.691 MB / 453.3 MB, free: 17.38 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002423/0.3349, allocations: 0.6817 MB / 454 MB, free: 16.68 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.382e-05/0.3349, allocations: 5.969 kB / 454 MB, free: 16.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.198e-05/0.3349, allocations: 19.12 kB / 454 MB, free: 16.67 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3349, allocations: 0 / 454 MB, free: 16.67 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04891/0.3838, allocations: 23.29 MB / 477.3 MB, free: 2.645 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.101/9.485, allocations: 4.062 kB / 477.3 MB, free: 2.641 MB / 334.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ph_parameter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-07 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ph_parameter.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.pipe 2>&1)