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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00151/0.00151, allocations: 213.5 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.373/1.373, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo): time 0.04854/0.04854, allocations: 9.134 MB / 321.6 MB, free: 10.19 MB / 254.1 MB " [Timeout remaining time 180] Using package HelmholtzMedia with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002115/0.002115, allocations: 67.89 kB / 446.5 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1034, allocations: 54.94 MB / 0.4897 GB, free: 9.516 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.02105/0.1245, allocations: 16.29 MB / 0.5056 GB, free: 9.164 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2173/0.3418, allocations: 15.04 MB / 0.5203 GB, free: 7.008 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.3419, allocations: 0 / 0.5203 GB, free: 7.008 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006339/0.3426, allocations: 244.3 kB / 0.5205 GB, free: 7.008 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004286/0.343, allocations: 233 kB / 0.5207 GB, free: 6.996 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/Interfaces/PartialHelmholtzMedium/package.mo:888:13-888: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 main/Interfaces/PartialHelmholtzMedium/package.mo:888:13-888: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 main/Interfaces/PartialHelmholtzMedium/package.mo:1232:13-1232: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 main/Interfaces/PartialHelmholtzMedium/package.mo:1232:13-1232: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.01601/0.359, allocations: 7.411 MB / 0.528 GB, free: 6.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003668/0.3594, allocations: 295.2 kB / 0.5283 GB, free: 6.172 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.72e-05/0.3594, allocations: 7.75 kB / 0.5283 GB, free: 6.172 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001952/0.3596, allocations: 126.7 kB / 0.5284 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.938e-05/0.3597, allocations: 69.36 kB / 0.5285 GB, free: 6.121 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.306e-05/0.3597, allocations: 8.188 kB / 0.5285 GB, free: 6.117 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01333/0.373, allocations: 7.295 MB / 0.5356 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.64e-05/0.3731, allocations: 13.17 kB / 0.5356 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001702/0.3733, allocations: 67.33 kB / 0.5357 GB, free: 5.598 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008604/0.3819, allocations: 3.789 MB / 0.5394 GB, free: 4.531 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3819, allocations: 1.156 kB / 0.5394 GB, free: 4.531 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3819, allocations: 0 / 0.5394 GB, free: 4.531 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.3819, allocations: 4 kB / 0.5394 GB, free: 4.527 MB / 382.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.001906/0.3838, allocations: 0.9476 MB / 0.5403 GB, free: 3.852 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.3838, allocations: 9.875 kB / 0.5403 GB, free: 3.852 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.965e-05/0.3838, allocations: 44.7 kB / 0.5404 GB, free: 3.809 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.825e-05/0.3839, allocations: 18.19 kB / 0.5404 GB, free: 3.801 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.864e-05/0.384, allocations: 123.5 kB / 0.5405 GB, free: 3.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.384, allocations: 6 kB / 0.5405 GB, free: 3.656 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.384, allocations: 3.75 kB / 0.5405 GB, free: 3.656 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.3843, allocations: 171.6 kB / 0.5407 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.3843, allocations: 4.891 kB / 0.5407 GB, free: 3.578 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.3843, allocations: 1.438 kB / 0.5407 GB, free: 3.578 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.3843, allocations: 10.64 kB / 0.5407 GB, free: 3.574 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002191/0.3845, allocations: 116.7 kB / 0.5408 GB, free: 3.551 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000537/0.385, allocations: 0.4972 MB / 0.5413 GB, free: 3.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000197/0.3852, allocations: 111.1 kB / 0.5414 GB, free: 3.145 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/0.3854, allocations: 109.1 kB / 0.5415 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1066/0.492, allocations: 25.76 MB / 0.5666 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.4921, allocations: 30.56 kB / 0.5667 GB, free: 15.64 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 1.923e-06/0.4921, allocations: 4 kB / 0.5667 GB, free: 15.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.0007086/0.4928, allocations: 374 kB / 0.567 GB, free: 15.27 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/0.4928, allocations: 51.41 kB / 0.5671 GB, free: 15.21 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.4929, allocations: 121.8 kB / 0.5672 GB, free: 15.08 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.4929, allocations: 29.7 kB / 0.5672 GB, free: 15.04 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.648e-05/0.493, allocations: 85.09 kB / 0.5673 GB, free: 14.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.4931, allocations: 146.4 kB / 0.5674 GB, free: 14.81 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.297e-05/0.4932, allocations: 37.7 kB / 0.5675 GB, free: 14.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.4933, allocations: 338.8 kB / 0.5678 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.4935, allocations: 87.95 kB / 0.5679 GB, free: 14.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/0.4937, allocations: 123.4 kB / 0.568 GB, free: 14.21 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003634/0.494, allocations: 239.1 kB / 0.5682 GB, free: 13.97 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.494, allocations: 0 / 0.5682 GB, free: 13.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004559/0.4945, allocations: 277 kB / 0.5685 GB, free: 13.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.4945, allocations: 8 kB / 0.5685 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.4945, allocations: 3.984 kB / 0.5685 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.4946, allocations: 4 kB / 0.5685 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.242e-05/0.4946, allocations: 7.562 kB / 0.5685 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.4946, allocations: 7.984 kB / 0.5685 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.4947, allocations: 19.84 kB / 0.5685 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.4948, allocations: 4.562 kB / 0.5685 GB, free: 13.64 MB / 414.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 0.0001088/0.4949, allocations: 133.8 kB / 0.5687 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.38e-05/0.4949, allocations: 23.84 kB / 0.5687 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005595/0.4955, allocations: 309.2 kB / 0.569 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/0.4955, allocations: 3.984 kB / 0.569 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.4955, allocations: 0 / 0.569 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.4955, allocations: 13.2 kB / 0.569 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002765/0.4958, allocations: 229.6 kB / 0.5692 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.4958, allocations: 3.938 kB / 0.5692 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.187e-05/0.4958, allocations: 7.984 kB / 0.5692 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.4958, allocations: 96 / 0.5692 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.4958, allocations: 13.88 kB / 0.5693 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.4958, allocations: 0 / 0.5693 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.4958, allocations: 0 / 0.5693 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005213/0.4964, allocations: 380.8 kB / 0.5696 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.659e-05/0.4964, allocations: 35.77 kB / 0.5696 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.736e-05/0.4964, allocations: 0 / 0.5696 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.4965, allocations: 11.98 kB / 0.5697 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.266e-05/0.4966, allocations: 4 kB / 0.5697 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.567e-06/0.4966, allocations: 3.984 kB / 0.5697 GB, free: 12.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.234e-05/0.4967, allocations: 95.22 kB / 0.5698 GB, free: 12.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4967, allocations: 0 / 0.5698 GB, free: 12.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003223/0.4999, allocations: 1.125 MB / 0.5709 GB, free: 11.21 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.005434/0.5053, allocations: 2.488 MB / 0.5733 GB, free: 8.859 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004734/0.5058, allocations: 241.2 kB / 0.5735 GB, free: 8.617 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.5058, allocations: 4 kB / 0.5735 GB, free: 8.613 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001997/0.506, allocations: 125.6 kB / 0.5736 GB, free: 8.484 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008775/0.5069, allocations: 153.5 kB / 0.5738 GB, free: 8.344 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001928/0.5088, allocations: 0.8607 MB / 0.5746 GB, free: 7.441 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001052/0.5089, allocations: 107.8 kB / 0.5747 GB, free: 7.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.012e-05/0.509, allocations: 10.86 kB / 0.5747 GB, free: 7.312 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.564e-05/0.509, allocations: 43.42 kB / 0.5748 GB, free: 7.27 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.509, allocations: 0 / 0.5748 GB, free: 7.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07349/0.5825, allocations: 33.61 MB / 0.6076 GB, free: 5.945 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.44, allocations: 7.75 kB / 0.6076 GB, free: 5.941 MB / 446.1 MB " [Timeout remaining time 647] (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 --stepSize=0.0048 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.420099754817784] Failed to read output from testmodel.py, exit status != 0: 12.561408277135342 12.581548452 12.195532459 Calling exit ...