Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001976/0.001976, allocations: 84.66 kB / 20.95 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001927/0.001927, allocations: 149.1 kB / 24.26 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2200,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.224e-06/2.224e-06, allocations: 0 / 270 MB, free: 3.973 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.765e-05/3.987e-05, allocations: 6.25 kB / 270.1 MB, free: 3.965 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.0278/0.02784, allocations: 12.2 MB / 282.3 MB, free: 7.723 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1473/0.1752, allocations: 13.61 MB / 295.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001416/0.1753, allocations: 1.203 kB / 295.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003458/0.1756, allocations: 76.81 kB / 295.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003152/0.176, allocations: 121 kB / 296.1 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01354/0.1895, allocations: 5.972 MB / 302 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004024/0.1899, allocations: 355.7 kB / 302.4 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.32e-05/0.1899, allocations: 7.844 kB / 302.4 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004495/0.1904, allocations: 271.8 kB / 302.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001451/0.1905, allocations: 92.53 kB / 302.7 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.013e-05/0.1906, allocations: 13.81 kB / 302.8 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01085/0.2014, allocations: 6.476 MB / 309.2 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.927e-05/0.2015, allocations: 46.16 kB / 309.3 MB, free: 11.63 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001603/0.2017, allocations: 76.47 kB / 309.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006943/0.2086, allocations: 4.966 MB / 314.3 MB, free: 8.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.2086, allocations: 3.938 kB / 314.3 MB, free: 8.676 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2086, allocations: 0 / 314.3 MB, free: 8.676 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.2086, allocations: 7.984 kB / 314.3 MB, free: 8.668 MB / 266.7 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.002039/0.2107, allocations: 0.9332 MB / 315.3 MB, free: 7.703 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.2107, allocations: 8.922 kB / 315.3 MB, free: 7.695 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001375/0.2121, allocations: 284 kB / 315.6 MB, free: 7.418 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.2123, allocations: 197.5 kB / 315.7 MB, free: 7.199 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.2124, allocations: 16.88 kB / 315.8 MB, free: 7.184 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.851e-05/0.2124, allocations: 27.23 kB / 315.8 MB, free: 7.16 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002921/0.2153, allocations: 0.9608 MB / 316.7 MB, free: 6.168 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.2153, allocations: 0 / 316.7 MB, free: 6.168 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.2154, allocations: 11.94 kB / 316.8 MB, free: 6.156 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.2154, allocations: 12 kB / 316.8 MB, free: 6.145 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003011/0.2184, allocations: 0.9619 MB / 317.7 MB, free: 5.184 MB / 266.7 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.001137/0.2195, allocations: 0.9195 MB / 318.7 MB, free: 4.234 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002472/0.222, allocations: 0.7216 MB / 319.4 MB, free: 3.504 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002274/0.2222, allocations: 152.8 kB / 319.5 MB, free: 3.352 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0711/0.2933, allocations: 19.71 MB / 339.2 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.952e-05/0.2934, allocations: 38.56 kB / 339.3 MB, free: 15.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 2.605e-06/0.2934, allocations: 3.469 kB / 339.3 MB, free: 15.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.006177/0.2996, allocations: 1.445 MB / 340.7 MB, free: 14.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/0.2996, allocations: 59.34 kB / 340.8 MB, free: 14.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.2998, allocations: 121.8 kB / 340.9 MB, free: 13.94 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.449e-05/0.2998, allocations: 29.7 kB / 340.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.369e-05/0.2999, allocations: 116.9 kB / 341 MB, free: 13.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001775/0.3001, allocations: 117.6 kB / 341.2 MB, free: 13.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003461/0.3005, allocations: 169.3 kB / 341.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.3007, allocations: 330.8 kB / 341.6 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007526/0.3014, allocations: 335.8 kB / 342 MB, free: 12.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008762/0.3023, allocations: 411.3 kB / 342.4 MB, free: 12.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001614/0.3039, allocations: 0.7114 MB / 343.1 MB, free: 11.67 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3039, allocations: 0 / 343.1 MB, free: 11.67 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00222/0.3061, allocations: 0.8885 MB / 344 MB, free: 10.78 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.3061, allocations: 4 kB / 344 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.3061, allocations: 4.25 kB / 344 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.169e-05/0.3062, allocations: 8 kB / 344 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007729/0.3069, allocations: 175.8 kB / 344.2 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.307, allocations: 7.984 kB / 344.2 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000411/0.3074, allocations: 35.66 kB / 344.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001282/0.3075, allocations: 63.92 kB / 344.3 MB, free: 10.48 MB / 298.7 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.0002631/0.3078, allocations: 137.8 kB / 344.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002192/0.308, allocations: 27.91 kB / 344.4 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01048/0.3185, allocations: 8.516 MB / 352.9 MB, free: 1.785 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-05/0.3185, allocations: 27.95 kB / 353 MB, free: 1.758 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.3185, allocations: 3.562 kB / 353 MB, free: 1.758 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.3185, allocations: 0 / 353 MB, free: 1.758 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004163/0.3227, allocations: 3.635 MB / 356.6 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.3227, allocations: 0 / 356.6 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007313/0.3234, allocations: 111.8 kB / 356.7 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.3234, allocations: 4 kB / 356.7 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.338e-05/0.3235, allocations: 11.98 kB / 356.7 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.3235, allocations: 4 kB / 356.7 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.3235, allocations: 0 / 356.7 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003144/0.3266, allocations: 1.908 MB / 358.6 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.3267, allocations: 71.33 kB / 358.7 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.567e-05/0.3268, allocations: 8 kB / 358.7 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003295/0.3271, allocations: 20.05 kB / 358.7 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.3272, allocations: 35.88 kB / 358.8 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.076e-05/0.3273, allocations: 8 kB / 358.8 MB, free: 11.69 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.37e-05/0.3274, allocations: 95.27 kB / 358.9 MB, free: 11.6 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3274, allocations: 4 kB / 358.9 MB, free: 11.59 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002989/0.3303, allocations: 0.9902 MB / 359.9 MB, free: 10.6 MB / 314.7 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.004301/0.3346, allocations: 1.273 MB / 361.1 MB, free: 9.418 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001847/0.3365, allocations: 0.8924 MB / 362 MB, free: 8.527 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3365, allocations: 0 / 362 MB, free: 8.527 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008716/0.3374, allocations: 0.5361 MB / 362.6 MB, free: 7.988 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007258/0.3381, allocations: 103.2 kB / 362.7 MB, free: 7.895 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002163/0.3403, allocations: 1.306 MB / 364 MB, free: 6.566 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002777/0.3405, allocations: 251.2 kB / 364.2 MB, free: 6.293 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.002406/0.3429, allocations: 1.785 MB / 366 MB, free: 4.523 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003812/0.3433, allocations: 92.41 kB / 366.1 MB, free: 4.434 MB / 314.7 MB Notification: Performance of SimCode: time 1.192e-06/0.3433, allocations: 0 / 366.1 MB, free: 4.434 MB / 314.7 MB Notification: Performance of Templates: time 0.06554/0.4089, allocations: 41.6 MB / 407.7 MB, free: 10.82 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 7.179333024076186]