Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_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.ConvergenceTest.TwoPhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_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.001204/0.001204, 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.00124/0.00124, allocations: 195.9 kB / 16.14 MB, free: 6.664 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.251/1.251, allocations: 205.1 MB / 222 MB, free: 4.988 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04458/0.04458, allocations: 9.089 MB / 278.4 MB, free: 12.63 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.001321/0.001321, allocations: 71.89 kB / 337.4 MB, free: 25.83 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06263/0.06396, allocations: 48.17 MB / 385.6 MB, free: 9.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.01593/0.07992, allocations: 18.16 MB / 403.8 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01368/0.09362, allocations: 17.45 MB / 421.2 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.797e-05/0.09368, allocations: 0 / 421.2 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005001/0.09421, allocations: 246.9 kB / 421.5 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003151/0.09453, allocations: 194.9 kB / 421.6 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1256/0.2201, allocations: 5.813 MB / 427.5 MB, free: 18.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002261/0.2204, allocations: 288.8 kB / 427.7 MB, free: 18.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.428e-05/0.2204, allocations: 16.89 kB / 427.8 MB, free: 18.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001625/0.2206, allocations: 113.7 kB / 427.9 MB, free: 18.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.589e-05/0.2207, allocations: 69.52 kB / 427.9 MB, free: 18.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.107e-05/0.2207, allocations: 2.875 kB / 427.9 MB, free: 18.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01199/0.2327, allocations: 9.228 MB / 437.2 MB, free: 18.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.104e-05/0.2327, allocations: 14.97 kB / 437.2 MB, free: 18.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001112/0.2328, allocations: 81.89 kB / 437.3 MB, free: 18.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005837/0.2387, allocations: 4.237 MB / 441.5 MB, free: 17.7 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2387, allocations: 2.188 kB / 441.5 MB, free: 17.7 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.32e-07/0.2387, allocations: 1.531 kB / 441.5 MB, free: 17.7 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.907e-06/0.2387, allocations: 4.594 kB / 441.5 MB, free: 17.7 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001911/0.2406, allocations: 0.9882 MB / 442.5 MB, free: 16.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.2407, allocations: 8.812 kB / 442.5 MB, free: 16.98 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.723e-05/0.2407, allocations: 46.05 kB / 442.6 MB, free: 16.94 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.533e-05/0.2407, allocations: 17.12 kB / 442.6 MB, free: 16.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.756e-05/0.2408, allocations: 180.8 kB / 442.7 MB, free: 16.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.839e-06/0.2408, allocations: 6.531 kB / 442.8 MB, free: 16.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/0.2409, allocations: 2.719 kB / 442.8 MB, free: 16.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002207/0.2411, allocations: 172.6 kB / 442.9 MB, free: 16.65 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.2411, allocations: 1.875 kB / 442.9 MB, free: 16.65 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.826e-06/0.2411, allocations: 1.125 kB / 442.9 MB, free: 16.65 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.2411, allocations: 10.95 kB / 442.9 MB, free: 16.65 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001816/0.2413, allocations: 105.7 kB / 443 MB, free: 16.63 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004278/0.2418, allocations: 0.5285 MB / 443.6 MB, free: 16.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.2419, allocations: 130.8 kB / 443.7 MB, free: 16.19 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.242, allocations: 122.8 kB / 443.8 MB, free: 16.17 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1189/0.3609, allocations: 85.22 MB / 0.5166 GB, free: 4.191 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.361, allocations: 30.56 kB / 0.5167 GB, free: 4.152 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 1.733e-06/0.361, allocations: 0 / 0.5167 GB, free: 4.152 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.000667/0.3617, allocations: 368.4 kB / 0.517 GB, free: 3.789 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.3617, allocations: 55.41 kB / 0.5171 GB, free: 3.723 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.3619, allocations: 123.4 kB / 0.5172 GB, free: 3.594 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.448e-05/0.3619, allocations: 25.7 kB / 0.5172 GB, free: 3.562 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.088e-05/0.3619, allocations: 97.03 kB / 0.5173 GB, free: 3.461 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.986e-05/0.362, allocations: 132.6 kB / 0.5174 GB, free: 3.336 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.528e-05/0.3621, allocations: 41.7 kB / 0.5175 GB, free: 3.289 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.756e-05/0.3622, allocations: 322.8 kB / 0.5178 GB, free: 2.965 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001419/0.3624, allocations: 87.95 kB / 0.5179 GB, free: 2.879 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001558/0.3625, allocations: 126.8 kB / 0.518 GB, free: 2.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003036/0.3628, allocations: 226.4 kB / 0.5182 GB, free: 2.523 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3628, allocations: 0 / 0.5182 GB, free: 2.523 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003958/0.3632, allocations: 267.7 kB / 0.5185 GB, free: 2.258 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.3633, allocations: 7.938 kB / 0.5185 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.3633, allocations: 4 kB / 0.5185 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.3633, allocations: 0 / 0.5185 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.532e-05/0.3634, allocations: 11.98 kB / 0.5185 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.3634, allocations: 3.562 kB / 0.5185 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.867e-05/0.3635, allocations: 27.73 kB / 0.5185 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.634e-05/0.3635, allocations: 4.062 kB / 0.5185 GB, free: 2.203 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (9): * Single equations (assignments): 3 * 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.434e-05/0.3636, allocations: 121.8 kB / 0.5186 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.83e-05/0.3637, allocations: 19.75 kB / 0.5186 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005198/0.3642, allocations: 321.5 kB / 0.519 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.736e-05/0.3642, allocations: 13.84 kB / 0.519 GB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3642, allocations: 0 / 0.519 GB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.3642, allocations: 0 / 0.519 GB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000268/0.3645, allocations: 256 kB / 0.5192 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.3645, allocations: 8 kB / 0.5192 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.828e-05/0.3646, allocations: 7.984 kB / 0.5192 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.3646, allocations: 3.938 kB / 0.5192 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.3646, allocations: 0 / 0.5192 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.3646, allocations: 4 kB / 0.5192 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3646, allocations: 0 / 0.5192 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004028/0.365, allocations: 365.9 kB / 0.5196 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.632e-05/0.3651, allocations: 110.4 kB / 0.5197 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.3651, allocations: 3.938 kB / 0.5197 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.3652, allocations: 11.98 kB / 0.5197 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.664e-05/0.3653, allocations: 7.984 kB / 0.5197 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-06/0.3653, allocations: 4 kB / 0.5197 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.535e-05/0.3653, allocations: 91.27 kB / 0.5198 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3653, allocations: 1.859 kB / 0.5198 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003071/0.3684, allocations: 1.101 MB / 0.5209 GB, free: 15.71 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 (7): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.004859/0.3733, allocations: 2.476 MB / 0.5233 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004361/0.3737, allocations: 255.1 kB / 0.5235 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.3737, allocations: 4.125 kB / 0.5235 GB, free: 13.13 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001873/0.3739, allocations: 146.8 kB / 0.5237 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000823/0.3748, allocations: 147.7 kB / 0.5238 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001694/0.3765, allocations: 0.8952 MB / 0.5247 GB, free: 11.92 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003105/0.3768, allocations: 0.725 MB / 0.5254 GB, free: 11.17 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.679e-05/0.3769, allocations: 9.547 kB / 0.5254 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.004e-05/0.3769, allocations: 39.42 kB / 0.5255 GB, free: 11.12 MB / 414.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3769, allocations: 0 / 0.5255 GB, free: 11.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3038/0.6808, allocations: 32.02 MB / 0.5567 GB, free: 11.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001696/0.681, allocations: 211.8 kB / 0.5569 GB, free: 10.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.292/3.973, allocations: 7.078 kB / 0.5569 GB, free: 10.95 MB / 446.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe 2>&1)