Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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.001275/0.001275, allocations: 112.2 kB / 21.19 MB, free: 0.7812 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.001401/0.001401, allocations: 214.5 kB / 24.49 MB, free: 4.18 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.41/1.41, allocations: 230.6 MB / 258.3 MB, free: 7.977 MB / 206.1 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2200,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2200,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001586, allocations: 55.92 kB / 379.9 MB, free: 1.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.2404, allocations: 53.36 MB / 433.2 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.0174/0.2578, allocations: 13.55 MB / 446.8 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0195/0.2773, allocations: 15.66 MB / 462.4 MB, free: 9.305 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001979/0.2775, allocations: 4 kB / 462.4 MB, free: 9.301 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003595/0.2778, allocations: 91.47 kB / 462.5 MB, free: 9.211 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003433/0.2782, allocations: 111.2 kB / 462.6 MB, free: 9.102 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01552/0.2937, allocations: 5.981 MB / 468.6 MB, free: 3.129 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005641/0.2942, allocations: 354.5 kB / 469 MB, free: 2.781 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.259e-05/0.2943, allocations: 5.812 kB / 469 MB, free: 2.773 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005286/0.2948, allocations: 243 kB / 469.2 MB, free: 2.535 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001969/0.295, allocations: 107.5 kB / 469.3 MB, free: 2.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.872e-05/0.2951, allocations: 12 kB / 469.3 MB, free: 2.418 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01309/0.3082, allocations: 6.79 MB / 476.1 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.637e-05/0.3082, allocations: 43.83 kB / 476.2 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001607/0.3084, allocations: 103.6 kB / 476.3 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009436/0.3178, allocations: 3.921 MB / 480.2 MB, free: 7.551 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.726e-06/0.3179, allocations: 0 / 480.2 MB, free: 7.551 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3179, allocations: 0 / 480.2 MB, free: 7.551 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.3179, allocations: 0 / 480.2 MB, free: 7.551 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002917/0.3208, allocations: 0.9506 MB / 481.1 MB, free: 6.566 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.3208, allocations: 8.031 kB / 481.1 MB, free: 6.559 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001387/0.3222, allocations: 184.6 kB / 481.3 MB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004028/0.3226, allocations: 206.2 kB / 481.5 MB, free: 6.152 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.616e-05/0.3227, allocations: 16.75 kB / 481.5 MB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.92e-05/0.3227, allocations: 28.06 kB / 481.6 MB, free: 6.109 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003102/0.3258, allocations: 0.9051 MB / 482.5 MB, free: 5.188 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.3258, allocations: 0 / 482.5 MB, free: 5.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.236e-05/0.3259, allocations: 12 kB / 482.5 MB, free: 5.176 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.3259, allocations: 4 kB / 482.5 MB, free: 5.172 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003234/0.3291, allocations: 0.9773 MB / 483.5 MB, free: 4.191 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00189/0.331, allocations: 1.303 MB / 484.8 MB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002579/0.3336, allocations: 0.7286 MB / 485.5 MB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002897/0.3339, allocations: 149.6 kB / 485.6 MB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07245/0.4063, allocations: 20.55 MB / 0.4943 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.403e-05/0.4064, allocations: 42.5 kB / 0.4944 GB, free: 13.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 3.217e-06/0.4064, allocations: 0 / 0.4944 GB, free: 13.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005389/0.4118, allocations: 1.356 MB / 0.4957 GB, free: 11.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.129e-05/0.4118, allocations: 59.41 kB / 0.4957 GB, free: 11.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.412, allocations: 121.8 kB / 0.4959 GB, free: 11.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.649e-05/0.4121, allocations: 29.7 kB / 0.4959 GB, free: 11.65 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.822e-05/0.4121, allocations: 124.8 kB / 0.496 GB, free: 11.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000177/0.4123, allocations: 115 kB / 0.4961 GB, free: 11.41 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002908/0.4126, allocations: 165.6 kB / 0.4963 GB, free: 11.24 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.4128, allocations: 330.8 kB / 0.4966 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006613/0.4134, allocations: 339.6 kB / 0.4969 GB, free: 10.58 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007506/0.4142, allocations: 407.5 kB / 0.4973 GB, free: 10.15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001382/0.4156, allocations: 0.7153 MB / 0.498 GB, free: 9.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.4156, allocations: 0 / 0.498 GB, free: 9.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001931/0.4175, allocations: 0.8719 MB / 0.4989 GB, free: 8.531 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.4175, allocations: 4.375 kB / 0.4989 GB, free: 8.527 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/0.4175, allocations: 7.938 kB / 0.4989 GB, free: 8.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.287e-05/0.4176, allocations: 8.25 kB / 0.4989 GB, free: 8.512 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006725/0.4182, allocations: 175.8 kB / 0.499 GB, free: 8.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/0.4182, allocations: 7.938 kB / 0.4991 GB, free: 8.332 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000351/0.4186, allocations: 31.83 kB / 0.4991 GB, free: 8.301 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.4187, allocations: 59.94 kB / 0.4991 GB, free: 8.242 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0002779/0.419, allocations: 141.7 kB / 0.4993 GB, free: 8.094 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001509/0.4192, allocations: 15.91 kB / 0.4993 GB, free: 8.078 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008852/0.428, allocations: 8.513 MB / 0.5076 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.703e-05/0.4281, allocations: 27.95 kB / 0.5076 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.4281, allocations: 0 / 0.5076 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.4281, allocations: 3.984 kB / 0.5076 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003898/0.432, allocations: 3.767 MB / 0.5113 GB, free: 11.49 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.497e-05/0.432, allocations: 4 kB / 0.5113 GB, free: 11.49 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006676/0.4327, allocations: 107.8 kB / 0.5114 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.386e-06/0.4327, allocations: 0 / 0.5114 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.288e-05/0.4327, allocations: 23.92 kB / 0.5114 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/0.4327, allocations: 4 kB / 0.5114 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.4327, allocations: 0 / 0.5114 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002712/0.4355, allocations: 1.886 MB / 0.5133 GB, free: 9.449 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.568e-05/0.4355, allocations: 71.33 kB / 0.5134 GB, free: 9.379 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.938e-05/0.4356, allocations: 11.94 kB / 0.5134 GB, free: 9.367 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000308/0.4359, allocations: 12 kB / 0.5134 GB, free: 9.355 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.881e-05/0.436, allocations: 35.92 kB / 0.5134 GB, free: 9.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.077e-05/0.4361, allocations: 15.98 kB / 0.5134 GB, free: 9.305 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.994e-05/0.4361, allocations: 95.2 kB / 0.5135 GB, free: 9.211 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4361, allocations: 0 / 0.5135 GB, free: 9.211 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00289/0.439, allocations: 1.002 MB / 0.5145 GB, free: 8.207 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.004491/0.4435, allocations: 1.137 MB / 0.5156 GB, free: 7.059 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001749/0.4453, allocations: 0.8954 MB / 0.5165 GB, free: 6.164 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.4453, allocations: 0 / 0.5165 GB, free: 6.164 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008014/0.4461, allocations: 0.5205 MB / 0.517 GB, free: 5.645 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006665/0.4467, allocations: 92.56 kB / 0.5171 GB, free: 5.555 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00215/0.4489, allocations: 1.394 MB / 0.5184 GB, free: 4.125 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005274/0.4494, allocations: 0.8575 MB / 0.5193 GB, free: 3.242 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003817/0.4498, allocations: 91.36 kB / 0.5194 GB, free: 3.152 MB / 430.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4498, allocations: 0 / 0.5194 GB, free: 3.152 MB / 430.1 MB Notification: Performance of Templates: time 0.2166/0.6664, allocations: 24.15 MB / 0.543 GB, free: 96.57 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.234931415878236]