Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_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_pT_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pT_parameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.State_pT_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pT_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.005711/0.00571, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.00137/0.00137, 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.452/1.452, 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.05108/0.05108, allocations: 9.106 MB / 279 MB, free: 12.05 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.00215/0.00215, allocations: 70.55 kB / 387 MB, free: 8.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2464, allocations: 48.15 MB / 435.1 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_pT_parameter): time 0.01828/0.2647, allocations: 16.98 MB / 452.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01162/0.2764, allocations: 11.09 MB / 463.2 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.491e-05/0.2765, allocations: 0 / 463.2 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007859/0.2773, allocations: 265.2 kB / 463.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.375e-05/0.2774, allocations: 35.11 kB / 463.5 MB, free: 1.523 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: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.01536/0.2928, allocations: 5.786 MB / 469.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000149/0.2929, allocations: 92.3 kB / 469.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.305e-05/0.293, allocations: 3.344 kB / 469.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.631e-05/0.2931, allocations: 38.77 kB / 469.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.504e-05/0.2931, allocations: 16.19 kB / 469.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.616e-06/0.2932, allocations: 4 kB / 469.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01557/0.3087, allocations: 8.641 MB / 478.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.793e-05/0.3088, allocations: 3.938 kB / 478.1 MB, free: 5.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.358e-05/0.3089, allocations: 23.94 kB / 478.1 MB, free: 5.723 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009348/0.3182, allocations: 3.659 MB / 481.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3183, allocations: 0 / 481.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3183, allocations: 0 / 481.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.3183, allocations: 3.984 kB / 481.8 MB, free: 2.051 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001698/0.32, allocations: 0.815 MB / 482.6 MB, free: 1.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.32, allocations: 12.02 kB / 482.6 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.701e-05/0.3201, allocations: 34.56 kB / 482.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.589e-05/0.3201, allocations: 7.938 kB / 482.6 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001578/0.3203, allocations: 174.9 kB / 482.8 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.3203, allocations: 4 kB / 482.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.959e-06/0.3203, allocations: 0 / 482.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001181/0.3204, allocations: 49.69 kB / 482.8 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.3204, allocations: 4 kB / 482.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.792e-06/0.3205, allocations: 0 / 482.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.3205, allocations: 7.984 kB / 482.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.07e-05/0.3205, allocations: 27.88 kB / 482.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002048/0.3207, allocations: 177.7 kB / 483.1 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.646e-05/0.3208, allocations: 50.56 kB / 483.1 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.261e-05/0.3209, allocations: 32.89 kB / 483.1 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07066/0.3916, allocations: 41.41 MB / 0.5123 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.7e-05/0.3916, allocations: 38.5 kB / 0.5123 GB, free: 15.72 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 4.108e-06/0.3916, allocations: 0 / 0.5123 GB, free: 15.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.0002826/0.3919, allocations: 129.6 kB / 0.5124 GB, free: 15.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.392, allocations: 55.41 kB / 0.5125 GB, free: 15.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.554e-05/0.3921, allocations: 97.78 kB / 0.5126 GB, free: 15.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.3921, allocations: 25.86 kB / 0.5126 GB, free: 15.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.896e-05/0.3921, allocations: 84.14 kB / 0.5127 GB, free: 15.3 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.47e-05/0.3922, allocations: 43.64 kB / 0.5127 GB, free: 15.25 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.964e-05/0.3923, allocations: 17.72 kB / 0.5127 GB, free: 15.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.3924, allocations: 318.8 kB / 0.513 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.55e-05/0.3925, allocations: 20 kB / 0.513 GB, free: 14.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.57e-05/0.3925, allocations: 27.98 kB / 0.5131 GB, free: 14.86 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.631e-05/0.3926, allocations: 73.23 kB / 0.5131 GB, free: 14.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3926, allocations: 0 / 0.5131 GB, free: 14.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001436/0.3928, allocations: 105.6 kB / 0.5132 GB, free: 14.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.3928, allocations: 7.938 kB / 0.5133 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.3928, allocations: 0 / 0.5133 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.3928, allocations: 0 / 0.5133 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.232e-06/0.3928, allocations: 0 / 0.5133 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.3928, allocations: 3.984 kB / 0.5133 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.034e-05/0.3929, allocations: 11.89 kB / 0.5133 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.3929, allocations: 3.984 kB / 0.5133 GB, free: 14.65 MB / 414.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: 2 (state_ps.phase,state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 9.135e-05/0.393, allocations: 113.8 kB / 0.5134 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.834e-05/0.393, allocations: 11.92 kB / 0.5134 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002444/0.3933, allocations: 147.6 kB / 0.5135 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.3933, allocations: 4 kB / 0.5135 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3933, allocations: 3.984 kB / 0.5135 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.3933, allocations: 4 kB / 0.5135 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001605/0.3935, allocations: 169.6 kB / 0.5137 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3935, allocations: 4 kB / 0.5137 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.61e-07/0.3935, allocations: 0 / 0.5137 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.664e-06/0.3935, allocations: 7.953 kB / 0.5137 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.3935, allocations: 7.938 kB / 0.5137 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.3935, allocations: 0 / 0.5137 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3935, allocations: 0 / 0.5137 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001243/0.3937, allocations: 97 kB / 0.5138 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.137e-05/0.3937, allocations: 85.05 kB / 0.5139 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.586e-05/0.3938, allocations: 0 / 0.5139 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.92e-05/0.3938, allocations: 0 / 0.5139 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.377e-05/0.3938, allocations: 32 / 0.5139 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.3938, allocations: 11.98 kB / 0.5139 GB, free: 13.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.165e-05/0.3939, allocations: 103.2 kB / 0.514 GB, free: 13.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3939, allocations: 0 / 0.514 GB, free: 13.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002035/0.3959, allocations: 0.8761 MB / 0.5149 GB, free: 12.89 MB / 414.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: 1 (state_ps.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.004245/0.4002, allocations: 1.898 MB / 0.5167 GB, free: 10.96 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001376/0.4003, allocations: 51.98 kB / 0.5168 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4004, allocations: 3.938 kB / 0.5168 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.444e-05/0.4004, allocations: 19.92 kB / 0.5168 GB, free: 10.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004433/0.4008, allocations: 52.34 kB / 0.5168 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002214/0.4031, allocations: 1.667 MB / 0.5185 GB, free: 9.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003164/0.4034, allocations: 0.6846 MB / 0.5191 GB, free: 8.379 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.637e-05/0.4034, allocations: 8.094 kB / 0.5191 GB, free: 8.371 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.443e-05/0.4035, allocations: 15.44 kB / 0.5192 GB, free: 8.355 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4035, allocations: 0 / 0.5192 GB, free: 8.355 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05896/0.4625, allocations: 25.76 MB / 0.5443 GB, free: 14.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.7/9.163, allocations: 8.047 kB / 0.5443 GB, free: 14.56 MB / 446.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pT_parameter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-07 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pT_parameter.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter.pipe 2>&1)