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.001319/0.001319, 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.001466/0.001467, allocations: 194.1 kB / 16.25 MB, free: 6.617 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.339/1.339, allocations: 205.1 MB / 222.1 MB, free: 4.691 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04399/0.04399, allocations: 9.08 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.001274/0.001274, allocations: 71.91 kB / 337.6 MB, free: 25.66 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0768/0.07808, allocations: 48.16 MB / 385.8 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.01836/0.09648, allocations: 18.36 MB / 404.2 MB, free: 7.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01462/0.1111, allocations: 16.41 MB / 420.6 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.1113, allocations: 0 / 420.6 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000716/0.1121, allocations: 271.1 kB / 420.8 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002408/0.1124, allocations: 107.4 kB / 420.9 MB, free: 6.188 MB / 318.1 MB [/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.1751/0.2875, allocations: 6.367 MB / 427.3 MB, free: 18.61 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003492/0.2879, allocations: 248.2 kB / 427.5 MB, free: 18.61 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.828e-05/0.288, allocations: 12.86 kB / 427.6 MB, free: 18.61 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002344/0.2882, allocations: 105.5 kB / 427.7 MB, free: 18.61 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001227/0.2883, allocations: 55.78 kB / 427.7 MB, free: 18.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.235e-05/0.2884, allocations: 1.906 kB / 427.7 MB, free: 18.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01745/0.3058, allocations: 9.746 MB / 437.5 MB, free: 18.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.678e-05/0.3059, allocations: 9.172 kB / 437.5 MB, free: 18.61 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002073/0.3061, allocations: 66.94 kB / 437.5 MB, free: 18.61 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01494/0.3211, allocations: 4.274 MB / 441.8 MB, free: 18.36 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3211, allocations: 0 / 441.8 MB, free: 18.36 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3211, allocations: 1.312 kB / 441.8 MB, free: 18.36 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.3211, allocations: 0 / 441.8 MB, free: 18.36 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.002911/0.324, allocations: 0.9542 MB / 442.8 MB, free: 17.67 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.3241, allocations: 8.281 kB / 442.8 MB, free: 17.67 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.498e-05/0.3241, allocations: 41.17 kB / 442.8 MB, free: 17.62 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.967e-05/0.3242, allocations: 15.5 kB / 442.8 MB, free: 17.62 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.01e-05/0.3243, allocations: 179.6 kB / 443 MB, free: 17.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.3243, allocations: 6.453 kB / 443 MB, free: 17.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.358e-06/0.3243, allocations: 3.812 kB / 443 MB, free: 17.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001596/0.3245, allocations: 110.3 kB / 443.1 MB, free: 17.37 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.3245, allocations: 1.875 kB / 443.1 MB, free: 17.37 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.358e-06/0.3245, allocations: 3.625 kB / 443.1 MB, free: 17.37 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.3245, allocations: 6.734 kB / 443.1 MB, free: 17.36 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.1e-05/0.3246, allocations: 75.72 kB / 443.2 MB, free: 17.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001946/0.3248, allocations: 253.8 kB / 443.5 MB, free: 17.13 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001088/0.3249, allocations: 122.3 kB / 443.6 MB, free: 17.1 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.827e-05/0.325, allocations: 105.5 kB / 443.7 MB, free: 17.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1462/0.4713, allocations: 93.08 MB / 0.5242 GB, free: 11.34 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.916e-05/0.4713, allocations: 34.55 kB / 0.5242 GB, free: 11.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 2.575e-06/0.4713, allocations: 0 / 0.5242 GB, free: 11.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.0004895/0.4718, allocations: 332 kB / 0.5245 GB, free: 10.96 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.177e-05/0.4719, allocations: 55.41 kB / 0.5246 GB, free: 10.9 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.468e-05/0.472, allocations: 101.8 kB / 0.5247 GB, free: 10.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.255e-05/0.472, allocations: 25.7 kB / 0.5247 GB, free: 10.76 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.035e-05/0.472, allocations: 85.14 kB / 0.5248 GB, free: 10.67 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.402e-05/0.4721, allocations: 125 kB / 0.5249 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.736e-05/0.4722, allocations: 37.69 kB / 0.5249 GB, free: 10.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.4723, allocations: 322.8 kB / 0.5252 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.294e-05/0.4724, allocations: 80.09 kB / 0.5253 GB, free: 10.1 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.254e-05/0.4724, allocations: 76.62 kB / 0.5254 GB, free: 10.03 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001834/0.4726, allocations: 193.7 kB / 0.5256 GB, free: 9.836 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.4726, allocations: 6.562 kB / 0.5256 GB, free: 9.832 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002474/0.4729, allocations: 237.2 kB / 0.5258 GB, free: 9.594 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.4729, allocations: 4 kB / 0.5258 GB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.4729, allocations: 0 / 0.5258 GB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.473, allocations: 6.516 kB / 0.5258 GB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.162e-06/0.473, allocations: 0 / 0.5258 GB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.473, allocations: 0 / 0.5258 GB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.806e-05/0.473, allocations: 22.56 kB / 0.5258 GB, free: 9.566 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.4731, allocations: 0 / 0.5258 GB, free: 9.566 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: 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 9.108e-05/0.4732, allocations: 122.8 kB / 0.526 GB, free: 9.441 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.933e-05/0.4732, allocations: 11.91 kB / 0.526 GB, free: 9.43 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004247/0.4736, allocations: 384.8 kB / 0.5263 GB, free: 9.035 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.46e-05/0.4736, allocations: 7.984 kB / 0.5263 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.4736, allocations: 0 / 0.5263 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.4737, allocations: 0 / 0.5263 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001893/0.4739, allocations: 246.2 kB / 0.5266 GB, free: 8.742 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.4739, allocations: 8 kB / 0.5266 GB, free: 8.734 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.4739, allocations: 0 / 0.5266 GB, free: 8.734 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.4739, allocations: 0 / 0.5266 GB, free: 8.734 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.4739, allocations: 0 / 0.5266 GB, free: 8.734 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.4739, allocations: 0 / 0.5266 GB, free: 8.734 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4739, allocations: 0 / 0.5266 GB, free: 8.734 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000231/0.4741, allocations: 228.5 kB / 0.5268 GB, free: 8.496 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.92e-05/0.4742, allocations: 96.52 kB / 0.5269 GB, free: 8.387 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.4742, allocations: 8 kB / 0.5269 GB, free: 8.379 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.684e-05/0.4743, allocations: 0 / 0.5269 GB, free: 8.379 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.498e-05/0.4743, allocations: 4 kB / 0.5269 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.4743, allocations: 7.984 kB / 0.5269 GB, free: 8.367 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.542e-05/0.4743, allocations: 99.27 kB / 0.527 GB, free: 8.27 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.92e-07/0.4744, allocations: 0 / 0.527 GB, free: 8.27 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002996/0.4774, allocations: 1.088 MB / 0.5281 GB, free: 7.184 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: 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.00454/0.4819, allocations: 2.28 MB / 0.5303 GB, free: 5.059 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002633/0.4822, allocations: 179.4 kB / 0.5305 GB, free: 4.887 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.4822, allocations: 1.25 kB / 0.5305 GB, free: 4.887 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.924e-05/0.4823, allocations: 83.97 kB / 0.5306 GB, free: 4.805 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008444/0.4831, allocations: 147.2 kB / 0.5307 GB, free: 4.668 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003093/0.4862, allocations: 2.297 MB / 0.5329 GB, free: 2.309 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003026/0.4866, allocations: 0.7168 MB / 0.5336 GB, free: 1.562 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.309e-05/0.4867, allocations: 13.66 kB / 0.5336 GB, free: 1.551 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.315e-05/0.4867, allocations: 39.42 kB / 0.5337 GB, free: 1.512 MB / 414.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4867, allocations: 3.938 kB / 0.5337 GB, free: 1.508 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06404/0.5508, allocations: 31.83 MB / 0.5648 GB, free: 1.809 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001743/0.551, allocations: 204.1 kB / 0.565 GB, free: 1.555 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.77/3.321, allocations: 3.938 kB / 0.565 GB, free: 1.551 MB / 446.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)