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.001889/0.001889, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 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.002262/0.002262, allocations: 180.9 kB / 23.71 MB, free: 4.695 MB / 14.72 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.582/1.582, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 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 0.00154/0.00154, allocations: 47.92 kB / 371.8 MB, free: 8.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2264, allocations: 52.19 MB / 423.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01694/0.2433, allocations: 13.44 MB / 437.4 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01918/0.2625, allocations: 15.67 MB / 453.1 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.2626, allocations: 0 / 453.1 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003468/0.263, allocations: 83.48 kB / 453.1 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003261/0.2633, allocations: 111.2 kB / 453.2 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01472/0.278, allocations: 5.969 MB / 459.2 MB, free: 11.01 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005031/0.2785, allocations: 350.5 kB / 459.6 MB, free: 10.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.949e-05/0.2786, allocations: 9.812 kB / 459.6 MB, free: 10.65 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005128/0.2791, allocations: 227 kB / 459.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001977/0.2793, allocations: 107.6 kB / 459.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.22e-05/0.2793, allocations: 12 kB / 459.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01297/0.2923, allocations: 6.778 MB / 466.7 MB, free: 3.531 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.789e-05/0.2924, allocations: 51.83 kB / 466.7 MB, free: 3.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001554/0.2925, allocations: 103.6 kB / 466.8 MB, free: 3.379 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007495/0.3, allocations: 3.917 MB / 470.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3, allocations: 0 / 470.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3, allocations: 0 / 470.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.418e-06/0.3001, allocations: 0 / 470.8 MB, free: 15.45 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.002653/0.3027, allocations: 0.9468 MB / 471.7 MB, free: 14.47 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.3028, allocations: 12.03 kB / 471.7 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001431/0.3042, allocations: 168.7 kB / 471.9 MB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003775/0.3046, allocations: 202.2 kB / 472.1 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.795e-05/0.3046, allocations: 16.81 kB / 472.1 MB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.239e-05/0.3047, allocations: 28.12 kB / 472.1 MB, free: 14.03 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003435/0.3081, allocations: 0.905 MB / 473 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.3081, allocations: 7.984 kB / 473 MB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.396e-05/0.3081, allocations: 8 kB / 473 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.3082, allocations: 8 kB / 473 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003533/0.3117, allocations: 0.9734 MB / 474 MB, free: 12.11 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.001785/0.3135, allocations: 1.299 MB / 475.3 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002854/0.3163, allocations: 0.7294 MB / 476.1 MB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003063/0.3166, allocations: 156.8 kB / 476.2 MB, free: 9.785 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07644/0.3931, allocations: 19.65 MB / 495.9 MB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.623e-05/0.3931, allocations: 34.56 kB / 495.9 MB, free: 6.074 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.003e-06/0.3931, allocations: 4 kB / 495.9 MB, free: 6.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005682/0.3988, allocations: 1.364 MB / 497.3 MB, free: 4.699 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.89e-05/0.3988, allocations: 55.41 kB / 497.3 MB, free: 4.633 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.399, allocations: 121.7 kB / 497.4 MB, free: 4.504 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.686e-05/0.3991, allocations: 33.7 kB / 497.5 MB, free: 4.465 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.549e-05/0.3991, allocations: 120.8 kB / 497.6 MB, free: 4.344 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001579/0.3993, allocations: 119 kB / 497.7 MB, free: 4.227 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003171/0.3996, allocations: 169.3 kB / 497.9 MB, free: 4.055 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3998, allocations: 326.8 kB / 498.2 MB, free: 3.727 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007073/0.4005, allocations: 339.8 kB / 498.5 MB, free: 3.395 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007951/0.4013, allocations: 403.5 kB / 498.9 MB, free: 2.973 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001497/0.4028, allocations: 0.7114 MB / 499.6 MB, free: 2.234 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.4028, allocations: 0 / 499.6 MB, free: 2.234 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002059/0.4048, allocations: 0.8759 MB / 0.4888 GB, free: 1.352 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.4048, allocations: 4 kB / 0.4888 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.4048, allocations: 11.92 kB / 0.4888 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.4049, allocations: 7.938 kB / 0.4888 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007044/0.4056, allocations: 171.8 kB / 0.4889 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.4056, allocations: 4 kB / 0.4889 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003643/0.4059, allocations: 31.83 kB / 0.489 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.4061, allocations: 64.12 kB / 0.489 GB, free: 1.062 MB / 398.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.0002442/0.4063, allocations: 137.8 kB / 0.4892 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001678/0.4065, allocations: 15.91 kB / 0.4892 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009048/0.4155, allocations: 8.502 MB / 0.4975 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.02e-05/0.4156, allocations: 31.95 kB / 0.4975 GB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.4156, allocations: 7.922 kB / 0.4975 GB, free: 8.336 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.4156, allocations: 7.984 kB / 0.4975 GB, free: 8.328 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003644/0.4192, allocations: 3.767 MB / 0.5012 GB, free: 4.309 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.4192, allocations: 0 / 0.5012 GB, free: 4.309 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006885/0.4199, allocations: 112.2 kB / 0.5013 GB, free: 4.199 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.4199, allocations: 4 kB / 0.5013 GB, free: 4.195 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.884e-05/0.42, allocations: 15.92 kB / 0.5013 GB, free: 4.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.297e-06/0.42, allocations: 0 / 0.5013 GB, free: 4.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.42, allocations: 3.938 kB / 0.5013 GB, free: 4.176 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00274/0.4227, allocations: 1.89 MB / 0.5032 GB, free: 2.266 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.551e-05/0.4228, allocations: 67.3 kB / 0.5033 GB, free: 2.199 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.059e-05/0.4229, allocations: 15.92 kB / 0.5033 GB, free: 2.184 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003113/0.4232, allocations: 12 kB / 0.5033 GB, free: 2.172 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.226e-05/0.4233, allocations: 28 kB / 0.5033 GB, free: 2.145 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.428e-05/0.4233, allocations: 19.98 kB / 0.5033 GB, free: 2.125 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.555e-05/0.4234, allocations: 99.2 kB / 0.5034 GB, free: 2.027 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4234, allocations: 0 / 0.5034 GB, free: 2.027 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002612/0.426, allocations: 0.9863 MB / 0.5044 GB, free: 1.039 MB / 414.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.004479/0.4305, allocations: 1.141 MB / 0.5055 GB, free: 15.88 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001771/0.4322, allocations: 0.8922 MB / 0.5064 GB, free: 15 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.4322, allocations: 4.125 kB / 0.5064 GB, free: 14.99 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008139/0.4331, allocations: 0.5283 MB / 0.5069 GB, free: 14.46 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006661/0.4337, allocations: 80.14 kB / 0.507 GB, free: 14.39 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002091/0.4358, allocations: 1.353 MB / 0.5083 GB, free: 13 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004707/0.4363, allocations: 0.8613 MB / 0.5091 GB, free: 12.11 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002129/0.4384, allocations: 1.784 MB / 0.5109 GB, free: 10.33 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000364/0.4388, allocations: 87.36 kB / 0.511 GB, free: 10.25 MB / 430.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4388, allocations: 0 / 0.511 GB, free: 10.25 MB / 430.1 MB Notification: Performance of Templates: time 0.2267/0.6655, allocations: 41.71 MB / 0.5517 GB, free: 107.9 MB / 446.1 MB " [Timeout remaining time 659] 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.540449812076986]