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.001741/0.001741, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.002181/0.002181, allocations: 213.2 kB / 24.48 MB, free: 3.84 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.467/1.467, allocations: 230.6 MB / 258.3 MB, free: 7.801 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.001612/0.001612, allocations: 51.92 kB / 379.8 MB, free: 1.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2523, allocations: 53.36 MB / 433.2 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01764/0.27, allocations: 12.32 MB / 445.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01859/0.2886, allocations: 13.64 MB / 459.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.2887, allocations: 0 / 459.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003532/0.2891, allocations: 75.53 kB / 459.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003581/0.2894, allocations: 115.2 kB / 459.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01585/0.3053, allocations: 5.922 MB / 465.2 MB, free: 6.309 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005134/0.3058, allocations: 346.6 kB / 465.6 MB, free: 5.969 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.148e-05/0.3059, allocations: 9.75 kB / 465.6 MB, free: 5.957 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00051/0.3064, allocations: 223 kB / 465.8 MB, free: 5.738 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001948/0.3066, allocations: 111.5 kB / 465.9 MB, free: 5.629 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.273e-05/0.3066, allocations: 16 kB / 465.9 MB, free: 5.613 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01297/0.3196, allocations: 6.47 MB / 472.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.3197, allocations: 39.91 kB / 472.4 MB, free: 15.1 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001629/0.3199, allocations: 91.66 kB / 472.5 MB, free: 15.01 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009289/0.3292, allocations: 3.921 MB / 476.4 MB, free: 11.08 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.3292, allocations: 4 kB / 476.4 MB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3292, allocations: 0 / 476.4 MB, free: 11.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.3292, allocations: 0 / 476.4 MB, free: 11.07 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.002665/0.3318, allocations: 0.9389 MB / 477.4 MB, free: 10.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.3319, allocations: 8.031 kB / 477.4 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001373/0.3332, allocations: 180.6 kB / 477.6 MB, free: 9.918 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003849/0.3336, allocations: 202.2 kB / 477.7 MB, free: 9.695 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.7e-05/0.3337, allocations: 20.81 kB / 477.8 MB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.591e-05/0.3337, allocations: 24.12 kB / 477.8 MB, free: 9.652 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003065/0.3368, allocations: 0.9514 MB / 478.7 MB, free: 8.672 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.3368, allocations: 0 / 478.7 MB, free: 8.672 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.275e-05/0.3368, allocations: 11.94 kB / 478.8 MB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.3368, allocations: 4 kB / 478.8 MB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003181/0.34, allocations: 0.9657 MB / 479.7 MB, free: 7.688 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.001585/0.3416, allocations: 0.9126 MB / 480.6 MB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002561/0.3442, allocations: 0.7293 MB / 481.4 MB, free: 5.996 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002922/0.3445, allocations: 152.8 kB / 481.5 MB, free: 5.844 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07452/0.419, allocations: 20.64 MB / 0.4904 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.637e-05/0.419, allocations: 38.56 kB / 0.4904 GB, free: 1.133 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.435e-06/0.419, allocations: 0 / 0.4904 GB, free: 1.133 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005194/0.4242, allocations: 1.352 MB / 0.4917 GB, free: 15.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.4243, allocations: 59.34 kB / 0.4918 GB, free: 15.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.4244, allocations: 133.7 kB / 0.4919 GB, free: 15.56 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.242e-05/0.4245, allocations: 29.7 kB / 0.492 GB, free: 15.53 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.716e-05/0.4246, allocations: 120.8 kB / 0.4921 GB, free: 15.41 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/0.4247, allocations: 119 kB / 0.4922 GB, free: 15.29 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002747/0.425, allocations: 161.6 kB / 0.4923 GB, free: 15.12 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.4251, allocations: 326.8 kB / 0.4926 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006561/0.4258, allocations: 339.8 kB / 0.493 GB, free: 14.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007539/0.4266, allocations: 403.5 kB / 0.4934 GB, free: 14.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001407/0.428, allocations: 0.7153 MB / 0.4941 GB, free: 13.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.428, allocations: 0 / 0.4941 GB, free: 13.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001884/0.4299, allocations: 0.876 MB / 0.4949 GB, free: 12.42 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.4299, allocations: 8.031 kB / 0.4949 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.4299, allocations: 4 kB / 0.4949 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.364e-05/0.4299, allocations: 7.938 kB / 0.4949 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006719/0.4306, allocations: 175.8 kB / 0.4951 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/0.4306, allocations: 4 kB / 0.4951 GB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003243/0.4309, allocations: 31.83 kB / 0.4951 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.431, allocations: 67.88 kB / 0.4952 GB, free: 12.12 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.0002673/0.4313, allocations: 137.8 kB / 0.4953 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.4314, allocations: 19.91 kB / 0.4953 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009007/0.4404, allocations: 8.497 MB / 0.5036 GB, free: 3.445 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.229e-05/0.4405, allocations: 31.89 kB / 0.5037 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.4405, allocations: 0 / 0.5037 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.4405, allocations: 3.984 kB / 0.5037 GB, free: 3.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003596/0.4441, allocations: 3.639 MB / 0.5072 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/0.4441, allocations: 7.984 kB / 0.5072 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006241/0.4447, allocations: 103.8 kB / 0.5073 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.716e-06/0.4447, allocations: 4 kB / 0.5073 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.312e-05/0.4448, allocations: 12.36 kB / 0.5074 GB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.317e-06/0.4448, allocations: 0 / 0.5074 GB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.4448, allocations: 3.938 kB / 0.5074 GB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002708/0.4475, allocations: 1.886 MB / 0.5092 GB, free: 13.49 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.911e-05/0.4476, allocations: 79.33 kB / 0.5093 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.381e-05/0.4476, allocations: 8 kB / 0.5093 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002833/0.4479, allocations: 12 kB / 0.5093 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.339e-05/0.448, allocations: 39.81 kB / 0.5093 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.809e-05/0.448, allocations: 15.98 kB / 0.5093 GB, free: 13.34 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.47e-05/0.4481, allocations: 91.27 kB / 0.5094 GB, free: 13.25 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4481, allocations: 0 / 0.5094 GB, free: 13.25 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00263/0.4508, allocations: 1.002 MB / 0.5104 GB, free: 12.25 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.003937/0.4547, allocations: 1.148 MB / 0.5115 GB, free: 11.09 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001737/0.4564, allocations: 0.8955 MB / 0.5124 GB, free: 10.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4564, allocations: 0 / 0.5124 GB, free: 10.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007788/0.4572, allocations: 0.5283 MB / 0.5129 GB, free: 9.672 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006752/0.4579, allocations: 88.5 kB / 0.513 GB, free: 9.586 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00202/0.4599, allocations: 1.386 MB / 0.5144 GB, free: 8.164 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002446/0.4602, allocations: 259.1 kB / 0.5146 GB, free: 7.887 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003428/0.4605, allocations: 91.36 kB / 0.5147 GB, free: 7.797 MB / 430.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4605, allocations: 7.938 kB / 0.5147 GB, free: 7.789 MB / 430.1 MB Notification: Performance of Templates: time 0.2301/0.6906, allocations: 24.32 MB / 0.5385 GB, free: 108.2 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.75663096504286]