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.001051/0.001051, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001104/0.001104, allocations: 196.2 kB / 16.14 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.38/1.38, allocations: 205.1 MB / 222 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04462/0.04462, allocations: 9.089 MB / 278.4 MB, free: 12.38 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.0014/0.0014, allocations: 67.84 kB / 337.4 MB, free: 25.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08452/0.08593, allocations: 48.16 MB / 385.6 MB, free: 9.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.01873/0.1047, allocations: 18.63 MB / 404.2 MB, free: 6.871 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01483/0.1196, allocations: 16.85 MB / 421.1 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001585/0.1198, allocations: 0 / 421.1 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008549/0.1207, allocations: 263.1 kB / 421.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000272/0.121, allocations: 99.34 kB / 421.4 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.186/0.3069, allocations: 5.747 MB / 427.2 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003762/0.3073, allocations: 243.9 kB / 427.4 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.435e-05/0.3074, allocations: 9.125 kB / 427.4 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.3076, allocations: 96.78 kB / 427.5 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.7e-05/0.3077, allocations: 59.59 kB / 427.6 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.207e-05/0.3077, allocations: 1.875 kB / 427.6 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01768/0.3254, allocations: 9.149 MB / 436.7 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.85e-05/0.3255, allocations: 7.156 kB / 436.7 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002343/0.3257, allocations: 63.16 kB / 436.8 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01332/0.339, allocations: 4.127 MB / 440.9 MB, free: 18.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.311e-06/0.3391, allocations: 0 / 440.9 MB, free: 18.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3391, allocations: 2.25 kB / 440.9 MB, free: 18.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.3391, allocations: 1.125 kB / 440.9 MB, free: 18.63 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.002819/0.3419, allocations: 0.9499 MB / 441.9 MB, free: 17.94 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.342, allocations: 8.125 kB / 441.9 MB, free: 17.94 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.692e-05/0.342, allocations: 41.3 kB / 441.9 MB, free: 17.89 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.049e-05/0.3421, allocations: 15.75 kB / 441.9 MB, free: 17.89 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001045/0.3422, allocations: 183.6 kB / 442.1 MB, free: 17.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.3422, allocations: 4.094 kB / 442.1 MB, free: 17.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.383e-05/0.3422, allocations: 2.375 kB / 442.1 MB, free: 17.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001926/0.3424, allocations: 112.5 kB / 442.2 MB, free: 17.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.3425, allocations: 1.875 kB / 442.2 MB, free: 17.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.3425, allocations: 1.5 kB / 442.2 MB, free: 17.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.3425, allocations: 10.14 kB / 442.3 MB, free: 17.64 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.656e-05/0.3426, allocations: 76.34 kB / 442.3 MB, free: 17.63 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002349/0.3428, allocations: 250.8 kB / 442.6 MB, free: 17.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001403/0.343, allocations: 121.7 kB / 442.7 MB, free: 17.38 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.3431, allocations: 107.3 kB / 442.8 MB, free: 17.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1434/0.4865, allocations: 93.08 MB / 0.5233 GB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.4866, allocations: 34.56 kB / 0.5234 GB, free: 12.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 3.887e-06/0.4866, allocations: 0 / 0.5234 GB, free: 12.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.0005312/0.4871, allocations: 335.7 kB / 0.5237 GB, free: 11.92 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.265e-05/0.4872, allocations: 55.16 kB / 0.5237 GB, free: 11.86 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.649e-05/0.4873, allocations: 97.86 kB / 0.5238 GB, free: 11.75 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.4873, allocations: 25.7 kB / 0.5238 GB, free: 11.72 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.467e-05/0.4873, allocations: 81.14 kB / 0.5239 GB, free: 11.64 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.4875, allocations: 135.3 kB / 0.524 GB, free: 11.51 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.18e-05/0.4875, allocations: 33.7 kB / 0.5241 GB, free: 11.47 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.4876, allocations: 330.8 kB / 0.5244 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.577e-05/0.4877, allocations: 77.59 kB / 0.5245 GB, free: 11.06 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.096e-05/0.4878, allocations: 71.98 kB / 0.5245 GB, free: 10.99 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002002/0.488, allocations: 198.3 kB / 0.5247 GB, free: 10.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.488, allocations: 3.938 kB / 0.5247 GB, free: 10.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002603/0.4883, allocations: 232.4 kB / 0.525 GB, free: 10.56 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.4883, allocations: 4 kB / 0.525 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.4883, allocations: 5.531 kB / 0.525 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.4884, allocations: 3.984 kB / 0.525 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.665e-06/0.4884, allocations: 7.188 kB / 0.525 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.4884, allocations: 0 / 0.525 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.223e-05/0.4885, allocations: 11.75 kB / 0.525 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.4885, allocations: 4 kB / 0.525 GB, free: 10.53 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.851e-05/0.4886, allocations: 121.8 kB / 0.5251 GB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.788e-05/0.4886, allocations: 11.91 kB / 0.5251 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004673/0.4891, allocations: 387 kB / 0.5255 GB, free: 9.996 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.777e-05/0.4891, allocations: 3.984 kB / 0.5255 GB, free: 9.992 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.4892, allocations: 0 / 0.5255 GB, free: 9.992 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.4892, allocations: 0 / 0.5255 GB, free: 9.992 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002203/0.4894, allocations: 242.6 kB / 0.5257 GB, free: 9.707 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.4894, allocations: 0 / 0.5257 GB, free: 9.707 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.815e-06/0.4894, allocations: 4 kB / 0.5257 GB, free: 9.703 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.4894, allocations: 0 / 0.5257 GB, free: 9.703 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.4894, allocations: 8.984 kB / 0.5257 GB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.4894, allocations: 0 / 0.5257 GB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4894, allocations: 2.734 kB / 0.5257 GB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002435/0.4897, allocations: 224.9 kB / 0.5259 GB, free: 9.461 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.782e-05/0.4897, allocations: 96.84 kB / 0.526 GB, free: 9.348 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.4898, allocations: 0 / 0.526 GB, free: 9.348 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.663e-05/0.4898, allocations: 4.75 kB / 0.526 GB, free: 9.344 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.447e-05/0.4898, allocations: 0 / 0.526 GB, free: 9.344 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.284e-06/0.4898, allocations: 4 kB / 0.526 GB, free: 9.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.332e-05/0.4899, allocations: 99.27 kB / 0.5261 GB, free: 9.242 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4899, allocations: 4 kB / 0.5261 GB, free: 9.238 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00389/0.4938, allocations: 1.091 MB / 0.5272 GB, free: 8.148 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.005046/0.4989, allocations: 2.282 MB / 0.5294 GB, free: 6.02 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002315/0.4991, allocations: 176 kB / 0.5296 GB, free: 5.848 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.4991, allocations: 0 / 0.5296 GB, free: 5.848 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.279e-05/0.4992, allocations: 87.47 kB / 0.5297 GB, free: 5.766 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000815/0.5, allocations: 148 kB / 0.5298 GB, free: 5.625 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002473/0.5025, allocations: 2.294 MB / 0.5321 GB, free: 3.273 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002337/0.5028, allocations: 0.717 MB / 0.5328 GB, free: 2.527 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.618e-05/0.5029, allocations: 7.781 kB / 0.5328 GB, free: 2.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.68e-05/0.5029, allocations: 35.42 kB / 0.5328 GB, free: 2.48 MB / 414.1 MB Notification: Performance of SimCode: time 2.21e-07/0.5029, allocations: 0 / 0.5328 GB, free: 2.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05145/0.5544, allocations: 31.61 MB / 0.5637 GB, free: 2.965 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001654/0.5546, allocations: 210.8 kB / 0.5639 GB, free: 2.711 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.728/3.283, allocations: 6.562 kB / 0.5639 GB, free: 2.707 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)