Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_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_ps_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ps_parameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.State_ps_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ps_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.001213/0.001213, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001173/0.001173, allocations: 189.6 kB / 16.25 MB, free: 6.621 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.348/1.348, allocations: 205.1 MB / 222.1 MB, free: 4.688 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04513/0.04513, allocations: 9.088 MB / 278.5 MB, free: 12.36 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.00138/0.00138, allocations: 71.91 kB / 337.6 MB, free: 25.67 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08713/0.08853, allocations: 48.15 MB / 385.8 MB, free: 9.48 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_ps_parameter): time 0.0184/0.107, allocations: 16.89 MB / 402.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009886/0.1169, allocations: 10.47 MB / 413.1 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.413e-05/0.117, allocations: 0 / 413.1 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007468/0.1178, allocations: 255.6 kB / 413.4 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.782e-05/0.1179, allocations: 23.84 kB / 413.4 MB, free: 13.74 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231: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:1231:13-1231: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.01337/0.1312, allocations: 5.238 MB / 418.6 MB, free: 8.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001118/0.1314, allocations: 47.73 kB / 418.7 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.268e-05/0.1314, allocations: 4 kB / 418.7 MB, free: 8.449 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001095/0.1315, allocations: 39.78 kB / 418.7 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.88e-05/0.1316, allocations: 15.94 kB / 418.7 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.758e-06/0.1316, allocations: 0 / 418.7 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1869/0.3186, allocations: 8.518 MB / 427.3 MB, free: 21.89 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.758e-05/0.3186, allocations: 6.047 kB / 427.3 MB, free: 21.89 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.915e-05/0.3187, allocations: 12.08 kB / 427.3 MB, free: 21.89 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01036/0.329, allocations: 3.638 MB / 430.9 MB, free: 21.88 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3291, allocations: 1.219 kB / 430.9 MB, free: 21.88 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3291, allocations: 0 / 430.9 MB, free: 21.88 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.641e-05/0.3291, allocations: 1.594 kB / 430.9 MB, free: 21.88 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.001274/0.3304, allocations: 0.743 MB / 431.7 MB, free: 21.31 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3304, allocations: 10.28 kB / 431.7 MB, free: 21.31 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.469e-05/0.3305, allocations: 35.19 kB / 431.7 MB, free: 21.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.444e-05/0.3305, allocations: 6.25 kB / 431.7 MB, free: 21.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.037e-05/0.3306, allocations: 162.1 kB / 431.9 MB, free: 21.08 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.847e-06/0.3306, allocations: 2.562 kB / 431.9 MB, free: 21.08 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.008e-05/0.3306, allocations: 1.25 kB / 431.9 MB, free: 21.08 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.3307, allocations: 43.08 kB / 431.9 MB, free: 21.05 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.3307, allocations: 1.297 kB / 431.9 MB, free: 21.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.3307, allocations: 0.7812 kB / 431.9 MB, free: 21.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.3308, allocations: 3.672 kB / 431.9 MB, free: 21.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.024e-05/0.3308, allocations: 16.33 kB / 431.9 MB, free: 21.05 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001464/0.331, allocations: 173.1 kB / 432.1 MB, free: 20.85 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.863e-05/0.331, allocations: 30.03 kB / 432.1 MB, free: 20.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.503e-05/0.3311, allocations: 22.09 kB / 432.2 MB, free: 20.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05379/0.3848, allocations: 33.04 MB / 465.2 MB, free: 7.246 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.3849, allocations: 32.2 kB / 465.2 MB, free: 7.207 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 2.585e-06/0.3849, allocations: 3.562 kB / 465.2 MB, free: 7.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002295/0.3852, allocations: 72.16 kB / 465.3 MB, free: 7.176 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/0.3852, allocations: 55.41 kB / 465.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.999e-05/0.3853, allocations: 95.78 kB / 465.5 MB, free: 7.012 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.3853, allocations: 25.7 kB / 465.5 MB, free: 6.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.067e-05/0.3853, allocations: 82.77 kB / 465.6 MB, free: 6.898 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.606e-05/0.3854, allocations: 25.14 kB / 465.6 MB, free: 6.887 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3e-05/0.3854, allocations: 15.22 kB / 465.6 MB, free: 6.871 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.3856, allocations: 324.8 kB / 465.9 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.784e-05/0.3856, allocations: 14.84 kB / 465.9 MB, free: 6.551 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.631e-05/0.3856, allocations: 9.406 kB / 465.9 MB, free: 6.551 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.629e-05/0.3857, allocations: 37.31 kB / 466 MB, free: 6.543 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3857, allocations: 0 / 466 MB, free: 6.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.417e-05/0.3857, allocations: 57.77 kB / 466 MB, free: 6.512 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.3858, allocations: 5.625 kB / 466 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.3858, allocations: 0 / 466 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.3858, allocations: 1 kB / 466 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.3858, allocations: 0 / 466 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.3858, allocations: 6.375 kB / 466.1 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.946e-05/0.3859, allocations: 16.97 kB / 466.1 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.37e-05/0.3859, allocations: 5.094 kB / 466.1 MB, free: 6.496 MB / 334.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 8.668e-05/0.386, allocations: 108.1 kB / 466.2 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.949e-06/0.386, allocations: 1.062 kB / 466.2 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001623/0.3862, allocations: 171.8 kB / 466.3 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.747e-05/0.3862, allocations: 187.4 kB / 466.5 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.988e-05/0.3863, allocations: 177.5 kB / 466.7 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.483e-05/0.3864, allocations: 181.6 kB / 466.9 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004607/0.3869, allocations: 410.8 kB / 467.3 MB, free: 21.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.28e-05/0.3869, allocations: 107.2 kB / 467.4 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.359e-05/0.387, allocations: 105.4 kB / 467.5 MB, free: 21.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.467e-05/0.387, allocations: 188.5 kB / 467.7 MB, free: 20.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.505e-05/0.3871, allocations: 177.9 kB / 467.8 MB, free: 20.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-05/0.3872, allocations: 179.8 kB / 468 MB, free: 20.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.963e-05/0.3873, allocations: 182.1 kB / 468.2 MB, free: 20.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001333/0.3874, allocations: 314.8 kB / 468.5 MB, free: 19.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.983e-05/0.3875, allocations: 185.1 kB / 468.7 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.706e-05/0.3876, allocations: 179 kB / 468.9 MB, free: 19.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.104e-05/0.3877, allocations: 104.5 kB / 469 MB, free: 19.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.066e-05/0.3877, allocations: 182.6 kB / 469.1 MB, free: 19.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.173e-05/0.3878, allocations: 106.9 kB / 469.2 MB, free: 19.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.291e-05/0.3879, allocations: 107.4 kB / 469.4 MB, free: 19.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3879, allocations: 2.516 kB / 469.4 MB, free: 19.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003321/0.3912, allocations: 0.8608 MB / 470.2 MB, free: 18.96 MB / 350.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.006368/0.3976, allocations: 2.056 MB / 472.3 MB, free: 17.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.441e-05/0.3977, allocations: 21.77 kB / 472.3 MB, free: 17.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3977, allocations: 0 / 472.3 MB, free: 17.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.607e-06/0.3977, allocations: 0 / 472.3 MB, free: 17.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005349/0.3982, allocations: 497.5 kB / 472.8 MB, free: 17.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002398/0.4006, allocations: 1.742 MB / 474.5 MB, free: 16.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002626/0.4009, allocations: 0.6764 MB / 475.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.384e-05/0.4009, allocations: 3.312 kB / 475.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.558e-05/0.401, allocations: 17.69 kB / 475.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of SimCode: time 8.92e-07/0.401, allocations: 0 / 475.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05122/0.4522, allocations: 24.92 MB / 0.4884 GB, free: 9.824 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002355/0.4525, allocations: 203.7 kB / 0.4886 GB, free: 9.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.672/3.125, allocations: 0 / 0.4886 GB, free: 9.57 MB / 366.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ps_parameter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-07 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ps_parameter.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.pipe 2>&1)