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.007963/0.007963, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001772/0.001772, allocations: 194.2 kB / 16.67 MB, free: 5.977 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.459/1.459, 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.04685/0.04685, allocations: 9.093 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.001599/0.0016, allocations: 59.91 kB / 386.9 MB, free: 8.562 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2477, allocations: 48.15 MB / 435.1 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_ph_parameter): time 0.01839/0.2661, allocations: 16.85 MB / 451.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01081/0.2769, allocations: 9.75 MB / 461.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.853e-05/0.277, allocations: 0 / 461.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006995/0.2778, allocations: 259.9 kB / 462 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.806e-05/0.2778, allocations: 22.06 kB / 462 MB, free: 2.785 MB / 334.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.01379/0.2916, allocations: 5.073 MB / 467 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.2918, allocations: 50.09 kB / 467.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.101e-05/0.2918, allocations: 6.844 kB / 467.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.2919, allocations: 26.12 kB / 467.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.794e-05/0.292, allocations: 13.81 kB / 467.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.406e-06/0.292, allocations: 4 kB / 467.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01389/0.3059, allocations: 7.84 MB / 475 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.5e-05/0.3059, allocations: 0 / 475 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.964e-05/0.306, allocations: 19.92 kB / 475 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008017/0.314, allocations: 3.298 MB / 478.3 MB, free: 5.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.314, allocations: 4 kB / 478.3 MB, free: 5.516 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.314, allocations: 0 / 478.3 MB, free: 5.516 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.3141, allocations: 0 / 478.3 MB, free: 5.516 MB / 350.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.001308/0.3154, allocations: 0.698 MB / 479 MB, free: 4.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.3154, allocations: 8.031 kB / 479 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.971e-05/0.3155, allocations: 30.56 kB / 479 MB, free: 4.723 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.301e-05/0.3155, allocations: 0 / 479 MB, free: 4.723 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.3156, allocations: 182.8 kB / 479.2 MB, free: 4.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.3156, allocations: 0 / 479.2 MB, free: 4.504 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.653e-06/0.3156, allocations: 4 kB / 479.2 MB, free: 4.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.528e-05/0.3157, allocations: 41.7 kB / 479.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.3158, allocations: 0 / 479.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.733e-06/0.3158, allocations: 0 / 479.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.3158, allocations: 0 / 479.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.596e-05/0.3158, allocations: 15.98 kB / 479.3 MB, free: 4.438 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001576/0.316, allocations: 161.6 kB / 479.4 MB, free: 4.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.79e-05/0.316, allocations: 38.5 kB / 479.5 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.337e-05/0.3161, allocations: 20.89 kB / 479.5 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02624/0.3423, allocations: 14.01 MB / 493.5 MB, free: 3.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.255e-05/0.3424, allocations: 30.56 kB / 493.5 MB, free: 3.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 2.535e-06/0.3424, allocations: 0 / 493.5 MB, free: 3.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001972/0.3426, allocations: 69.69 kB / 493.6 MB, free: 3.656 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.834e-05/0.3426, allocations: 59.34 kB / 493.7 MB, free: 3.586 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.582e-05/0.3427, allocations: 101.8 kB / 493.8 MB, free: 3.477 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.3427, allocations: 25.7 kB / 493.8 MB, free: 3.445 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.052e-05/0.3428, allocations: 88.12 kB / 493.9 MB, free: 3.355 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.162e-05/0.3428, allocations: 15.66 kB / 493.9 MB, free: 3.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.208e-05/0.3429, allocations: 17.72 kB / 493.9 MB, free: 3.316 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.343, allocations: 314.8 kB / 494.2 MB, free: 3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.047e-05/0.343, allocations: 12 kB / 494.2 MB, free: 2.988 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.786e-05/0.343, allocations: 11.98 kB / 494.2 MB, free: 2.977 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.81e-05/0.3431, allocations: 45.3 kB / 494.3 MB, free: 2.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.3431, allocations: 0 / 494.3 MB, free: 2.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.113e-05/0.3432, allocations: 65.62 kB / 494.3 MB, free: 2.859 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.3432, allocations: 4 kB / 494.3 MB, free: 2.855 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.3432, allocations: 3.938 kB / 494.3 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.3432, allocations: 0 / 494.3 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.3432, allocations: 0 / 494.3 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.3432, allocations: 0 / 494.3 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.353e-05/0.3433, allocations: 11.84 kB / 494.4 MB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.3433, allocations: 0 / 494.4 MB, free: 2.84 MB / 366.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 7.657e-05/0.3434, allocations: 113.9 kB / 494.5 MB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.042e-05/0.3434, allocations: 4 kB / 494.5 MB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001446/0.3435, allocations: 166.8 kB / 494.6 MB, free: 2.516 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.364e-05/0.3436, allocations: 188.2 kB / 494.8 MB, free: 2.324 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.133e-05/0.3437, allocations: 180.2 kB / 495 MB, free: 2.141 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-05/0.3437, allocations: 184.2 kB / 495.2 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002341/0.344, allocations: 413.2 kB / 495.6 MB, free: 1.492 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-05/0.344, allocations: 105 kB / 495.7 MB, free: 1.383 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.195e-05/0.3441, allocations: 108.9 kB / 495.8 MB, free: 1.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.294e-05/0.3441, allocations: 180.2 kB / 496 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.066e-05/0.3442, allocations: 180.2 kB / 496.1 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.252e-05/0.3443, allocations: 180.3 kB / 496.3 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.15e-05/0.3443, allocations: 180.3 kB / 496.5 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001349/0.3445, allocations: 315.6 kB / 496.8 MB, free: 208 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.985e-05/0.3445, allocations: 182 kB / 497 MB, free: 0 / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.287e-05/0.3446, allocations: 188.2 kB / 497.2 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.299e-05/0.3447, allocations: 105 kB / 497.3 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.064e-05/0.3448, allocations: 188.1 kB / 497.4 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.724e-05/0.3448, allocations: 105 kB / 497.6 MB, free: 15.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.303e-05/0.3449, allocations: 103.3 kB / 497.7 MB, free: 15.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3449, allocations: 0 / 497.7 MB, free: 15.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001774/0.3467, allocations: 0.7417 MB / 498.4 MB, free: 14.55 MB / 382.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.003589/0.3503, allocations: 1.902 MB / 0.4886 GB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.4e-05/0.3504, allocations: 19.94 kB / 0.4886 GB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3504, allocations: 0 / 0.4886 GB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.873e-06/0.3504, allocations: 288 / 0.4886 GB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005169/0.3509, allocations: 491.6 kB / 0.4891 GB, free: 12.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/0.3528, allocations: 1.691 MB / 0.4907 GB, free: 10.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002232/0.353, allocations: 0.6805 MB / 0.4914 GB, free: 9.645 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.457e-05/0.353, allocations: 0 / 0.4914 GB, free: 9.645 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.947e-05/0.3531, allocations: 19.47 kB / 0.4914 GB, free: 9.625 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3531, allocations: 0 / 0.4914 GB, free: 9.625 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04856/0.4017, allocations: 23.28 MB / 0.5141 GB, free: 2.324 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.563/8.965, allocations: 11.98 kB / 0.5141 GB, free: 2.312 MB / 398.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)