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.001419/0.001419, 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.001802/0.001802, 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.356/1.356, allocations: 205.1 MB / 222.4 MB, free: 4.621 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04757/0.04757, allocations: 9.103 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.001447/0.001448, allocations: 63.91 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09566/0.09712, allocations: 48.16 MB / 386.3 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_ph_parameter): time 0.01942/0.1166, allocations: 16.84 MB / 403.1 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01045/0.1271, allocations: 9.736 MB / 412.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.919e-05/0.1272, allocations: 0 / 412.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007316/0.128, allocations: 251.5 kB / 413.1 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.331e-05/0.128, allocations: 19.84 kB / 413.1 MB, free: 14.18 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.01263/0.1407, allocations: 5.088 MB / 418.2 MB, free: 9.082 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001029/0.1408, allocations: 47.73 kB / 418.3 MB, free: 9.035 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.914e-05/0.1408, allocations: 4 kB / 418.3 MB, free: 9.031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.141, allocations: 23.86 kB / 418.3 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.561e-05/0.141, allocations: 15.92 kB / 418.3 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.797e-06/0.141, allocations: 0 / 418.3 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01286/0.1539, allocations: 7.509 MB / 425.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.029e-05/0.1539, allocations: 7.938 kB / 425.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.478e-05/0.154, allocations: 11.94 kB / 425.8 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2036/0.3576, allocations: 3.296 MB / 429.1 MB, free: 21.7 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.236e-06/0.3576, allocations: 1.031 kB / 429.1 MB, free: 21.7 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3576, allocations: 7.312 kB / 429.1 MB, free: 21.7 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.3576, 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.002652/0.3603, allocations: 0.6892 MB / 429.8 MB, free: 21.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.3604, allocations: 9.25 kB / 429.8 MB, free: 21.16 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.833e-05/0.3604, allocations: 36.12 kB / 429.9 MB, free: 21.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.274e-05/0.3605, allocations: 4.125 kB / 429.9 MB, free: 21.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.3606, allocations: 167.1 kB / 430 MB, free: 20.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.3606, allocations: 1.922 kB / 430 MB, free: 20.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.386e-06/0.3606, allocations: 0.9688 kB / 430 MB, free: 20.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001192/0.3607, allocations: 40.25 kB / 430.1 MB, free: 20.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.3608, allocations: 6.094 kB / 430.1 MB, free: 20.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.276e-06/0.3608, allocations: 0.6562 kB / 430.1 MB, free: 20.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.3608, allocations: 5.156 kB / 430.1 MB, free: 20.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.333e-05/0.3609, allocations: 11.62 kB / 430.1 MB, free: 20.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000167/0.361, allocations: 165.7 kB / 430.3 MB, free: 20.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.168e-05/0.3611, allocations: 33.53 kB / 430.3 MB, free: 20.68 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.838e-05/0.3612, allocations: 21.59 kB / 430.3 MB, free: 20.67 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03312/0.3943, allocations: 14.01 MB / 444.3 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.3944, allocations: 30.56 kB / 444.4 MB, free: 8.457 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.953e-06/0.3944, allocations: 0 / 444.4 MB, free: 8.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002129/0.3946, allocations: 73.5 kB / 444.4 MB, free: 8.426 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.871e-05/0.3946, allocations: 52.69 kB / 444.5 MB, free: 8.363 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.346e-05/0.3947, allocations: 96.11 kB / 444.6 MB, free: 8.266 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.454e-06/0.3947, allocations: 25.7 kB / 444.6 MB, free: 8.234 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.726e-05/0.3947, allocations: 86.97 kB / 444.7 MB, free: 8.148 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.883e-05/0.3948, allocations: 23 kB / 444.7 MB, free: 8.133 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-05/0.3948, allocations: 17.59 kB / 444.7 MB, free: 8.117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.731e-05/0.3949, allocations: 315.8 kB / 445 MB, free: 7.805 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.971e-05/0.3949, allocations: 12.39 kB / 445.1 MB, free: 7.805 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.695e-05/0.3949, allocations: 10.5 kB / 445.1 MB, free: 7.805 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.484e-05/0.395, allocations: 35.52 kB / 445.1 MB, free: 7.797 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.395, allocations: 1.094 kB / 445.1 MB, free: 7.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.321e-05/0.3951, allocations: 68.08 kB / 445.2 MB, free: 7.762 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.3951, allocations: 11.47 kB / 445.2 MB, free: 7.758 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.3951, allocations: 0 / 445.2 MB, free: 7.758 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.3951, allocations: 4.547 kB / 445.2 MB, free: 7.758 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.222e-06/0.3951, allocations: 0 / 445.2 MB, free: 7.758 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.3951, allocations: 0 / 445.2 MB, free: 7.758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.555e-05/0.3952, allocations: 2.656 kB / 445.2 MB, free: 7.758 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.3952, allocations: 0.75 kB / 445.2 MB, free: 7.758 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.281e-05/0.3952, allocations: 113.9 kB / 445.3 MB, free: 7.641 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.197e-05/0.3953, allocations: 6.578 kB / 445.3 MB, free: 7.637 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001187/0.3954, allocations: 175 kB / 445.5 MB, free: 7.465 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.419e-05/0.3954, allocations: 177 kB / 445.7 MB, free: 7.285 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.194e-05/0.3955, allocations: 187.4 kB / 445.8 MB, free: 7.105 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.536e-05/0.3955, allocations: 178.3 kB / 446 MB, free: 6.926 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.3957, allocations: 415 kB / 446.4 MB, free: 6.477 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.73e-05/0.3957, allocations: 106.4 kB / 446.5 MB, free: 6.371 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.481e-05/0.3957, allocations: 107.9 kB / 446.6 MB, free: 6.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-05/0.3957, allocations: 177.2 kB / 446.8 MB, free: 6.086 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/0.3958, allocations: 179.9 kB / 447 MB, free: 5.906 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.728e-05/0.3958, allocations: 184.3 kB / 447.2 MB, free: 5.727 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.347e-05/0.3958, allocations: 184 kB / 447.3 MB, free: 5.543 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.947e-05/0.3959, allocations: 315.5 kB / 447.6 MB, free: 5.227 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.435e-05/0.3959, allocations: 178.8 kB / 447.8 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002512/0.3962, allocations: 191 kB / 448 MB, free: 20.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.421e-05/0.3963, allocations: 107 kB / 448.1 MB, free: 20.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.91e-05/0.3964, allocations: 181.5 kB / 448.3 MB, free: 20.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-05/0.3964, allocations: 105.2 kB / 448.4 MB, free: 20.45 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.016e-05/0.3965, allocations: 104.2 kB / 448.5 MB, free: 20.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.052e-06/0.3965, allocations: 0 / 448.5 MB, free: 20.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003509/0.4, allocations: 0.7381 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.005729/0.4057, allocations: 1.903 MB / 451.1 MB, free: 19.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001131/0.4059, allocations: 16.34 kB / 451.1 MB, free: 19.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4059, allocations: 0 / 451.1 MB, free: 19.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.19e-06/0.4059, allocations: 7.344 kB / 451.2 MB, free: 19.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006246/0.4065, allocations: 488.7 kB / 451.6 MB, free: 18.8 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002824/0.4094, allocations: 1.704 MB / 453.3 MB, free: 17.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.4097, allocations: 0.675 MB / 454 MB, free: 16.67 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.116e-05/0.4097, allocations: 0 / 454 MB, free: 16.67 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.167e-05/0.4098, allocations: 15.94 kB / 454 MB, free: 16.66 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4098, allocations: 0 / 454 MB, free: 16.66 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05361/0.4634, allocations: 23.29 MB / 477.3 MB, free: 2.598 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.258/8.722, allocations: 4.062 kB / 477.3 MB, free: 2.594 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 & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 1 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ph_parameter.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.pipe 2>&1)