Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.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.SinglePhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.SinglePhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState",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.004786/0.004785, allocations: 101.3 kB / 15.73 MB, free: 6.062 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.001278/0.001279, allocations: 199 kB / 16.68 MB, free: 5.969 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.352/1.352, allocations: 205.1 MB / 222.6 MB, free: 4.25 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04924/0.04924, allocations: 9.092 MB / 279 MB, free: 11.95 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.002021/0.002021, allocations: 63.89 kB / 387 MB, free: 8.523 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2403, allocations: 48.15 MB / 435.1 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.01902/0.2593, allocations: 18.38 MB / 453.5 MB, free: 9.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01623/0.2756, allocations: 16.42 MB / 469.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.2758, allocations: 0 / 469.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007356/0.2766, allocations: 286.2 kB / 470.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002097/0.2768, allocations: 116.8 kB / 470.3 MB, free: 11.88 MB / 350.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. [/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.01758/0.2944, allocations: 7.041 MB / 477.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003481/0.2947, allocations: 246.7 kB / 477.6 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.783e-05/0.2948, allocations: 13.12 kB / 477.6 MB, free: 6.211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/0.295, allocations: 99.58 kB / 477.7 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.68e-05/0.2951, allocations: 55.73 kB / 477.8 MB, free: 6.059 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.233e-05/0.2951, allocations: 7.984 kB / 477.8 MB, free: 6.051 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01816/0.3133, allocations: 10.06 MB / 487.8 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.524e-05/0.3134, allocations: 15.92 kB / 487.8 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001457/0.3135, allocations: 59.69 kB / 487.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01109/0.3246, allocations: 4.267 MB / 492.2 MB, free: 7.617 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3246, allocations: 0 / 492.2 MB, free: 7.617 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3246, allocations: 0 / 492.2 MB, free: 7.617 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.3247, allocations: 0 / 492.2 MB, free: 7.617 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001863/0.3265, allocations: 0.986 MB / 493.2 MB, free: 6.578 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.3266, allocations: 8.031 kB / 493.2 MB, free: 6.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.663e-05/0.3266, allocations: 50.55 kB / 493.2 MB, free: 6.512 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.672e-05/0.3267, allocations: 11.91 kB / 493.2 MB, free: 6.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.3268, allocations: 174.9 kB / 493.4 MB, free: 6.289 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.3268, allocations: 4 kB / 493.4 MB, free: 6.285 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/0.3269, allocations: 4 kB / 493.4 MB, free: 6.281 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001873/0.3271, allocations: 125.1 kB / 493.5 MB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.3271, allocations: 0 / 493.5 MB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.3271, allocations: 0 / 493.5 MB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.3271, allocations: 11.98 kB / 493.5 MB, free: 6.141 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.57e-05/0.3272, allocations: 75.97 kB / 493.6 MB, free: 6.066 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002711/0.3275, allocations: 257.2 kB / 493.9 MB, free: 5.766 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001419/0.3276, allocations: 118.5 kB / 494 MB, free: 5.641 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.3278, allocations: 108.9 kB / 494.1 MB, free: 5.531 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1552/0.4829, allocations: 93.06 MB / 0.5734 GB, free: 8.199 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.187e-05/0.483, allocations: 34.56 kB / 0.5734 GB, free: 8.156 MB / 478.1 MB Notification: Performance of pre-optimization done (n=42): time 2.705e-06/0.483, allocations: 4 kB / 0.5734 GB, free: 8.152 MB / 478.1 MB Notification: Performance of matching and sorting (n=42): time 0.0005156/0.4835, allocations: 329.7 kB / 0.5737 GB, free: 7.824 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.4836, allocations: 55.34 kB / 0.5738 GB, free: 7.758 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.328e-05/0.4837, allocations: 101.8 kB / 0.5739 GB, free: 7.648 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.4837, allocations: 25.7 kB / 0.5739 GB, free: 7.617 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.053e-05/0.4838, allocations: 81.14 kB / 0.574 GB, free: 7.535 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.4839, allocations: 142.7 kB / 0.5741 GB, free: 7.395 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.59e-05/0.4839, allocations: 37.69 kB / 0.5742 GB, free: 7.352 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.4841, allocations: 331 kB / 0.5745 GB, free: 7.02 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.986e-05/0.4842, allocations: 75.97 kB / 0.5745 GB, free: 6.945 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.494e-05/0.4843, allocations: 73 kB / 0.5746 GB, free: 6.875 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002186/0.4845, allocations: 192.9 kB / 0.5748 GB, free: 6.684 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.4845, allocations: 3.938 kB / 0.5748 GB, free: 6.68 MB / 478.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002877/0.4848, allocations: 244.7 kB / 0.575 GB, free: 6.434 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.4848, allocations: 4 kB / 0.575 GB, free: 6.43 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.4849, allocations: 3.984 kB / 0.575 GB, free: 6.426 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.4849, allocations: 0 / 0.575 GB, free: 6.426 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.4849, allocations: 4 kB / 0.575 GB, free: 6.422 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.4849, allocations: 0 / 0.575 GB, free: 6.422 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.828e-05/0.485, allocations: 19.83 kB / 0.5751 GB, free: 6.402 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.485, allocations: 8 kB / 0.5751 GB, free: 6.395 MB / 478.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: 6 (state_Ts.phase,state_ps.phase,state_ph.phase,state_pd.phase,state_dT.phase,state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.992e-05/0.4851, allocations: 113.8 kB / 0.5752 GB, free: 6.273 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.386e-05/0.4851, allocations: 15.84 kB / 0.5752 GB, free: 6.258 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004698/0.4856, allocations: 384.5 kB / 0.5756 GB, free: 5.852 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-05/0.4856, allocations: 11.98 kB / 0.5756 GB, free: 5.84 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.4856, allocations: 256 / 0.5756 GB, free: 5.84 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.4856, allocations: 0 / 0.5756 GB, free: 5.84 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002162/0.4858, allocations: 237.5 kB / 0.5758 GB, free: 5.559 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.4858, allocations: 0 / 0.5758 GB, free: 5.559 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.71e-07/0.4858, allocations: 0 / 0.5758 GB, free: 5.559 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.4859, allocations: 0 / 0.5758 GB, free: 5.559 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.4859, allocations: 7.984 kB / 0.5758 GB, free: 5.551 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.4859, allocations: 0 / 0.5758 GB, free: 5.551 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.4859, allocations: 4 kB / 0.5758 GB, free: 5.547 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002596/0.4861, allocations: 233.4 kB / 0.576 GB, free: 5.301 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.334e-05/0.4862, allocations: 96.94 kB / 0.5761 GB, free: 5.188 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.4862, allocations: 0 / 0.5761 GB, free: 5.188 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.474e-05/0.4863, allocations: 0 / 0.5761 GB, free: 5.188 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.54e-05/0.4863, allocations: 4 kB / 0.5761 GB, free: 5.184 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-06/0.4863, allocations: 0 / 0.5761 GB, free: 5.184 MB / 478.1 MB Notification: Performance of sorting global known variables: time 7.265e-05/0.4864, allocations: 103.3 kB / 0.5762 GB, free: 5.082 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4864, allocations: 4 kB / 0.5762 GB, free: 5.078 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002431/0.4888, allocations: 1.11 MB / 0.5773 GB, free: 3.965 MB / 478.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: 5 (state_dT.phase,state_pd.phase,state_ph.phase,state_ps.phase,state_Ts.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.004848/0.4937, allocations: 2.296 MB / 0.5796 GB, free: 1.637 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0002725/0.494, allocations: 187.7 kB / 0.5797 GB, free: 1.453 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.494, allocations: 3.938 kB / 0.5797 GB, free: 1.449 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 9.053e-05/0.4941, allocations: 79.98 kB / 0.5798 GB, free: 1.371 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008587/0.4949, allocations: 152 kB / 0.58 GB, free: 1.223 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002939/0.4979, allocations: 2.282 MB / 0.5822 GB, free: 14.85 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.4982, allocations: 0.7128 MB / 0.5829 GB, free: 14.11 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.979e-05/0.4983, allocations: 15.98 kB / 0.5829 GB, free: 14.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.778e-05/0.4984, allocations: 39.42 kB / 0.5829 GB, free: 14.06 MB / 494.1 MB Notification: Performance of SimCode: time 3.3e-07/0.4984, allocations: 0 / 0.5829 GB, free: 14.06 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2296/0.7279, allocations: 31.98 MB / 0.6142 GB, free: 163.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.837/9.565, allocations: 4.281 kB / 0.6142 GB, free: 163.5 MB / 494.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-07 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe 2>&1)