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.00169/0.00169, allocations: 107.6 kB / 21.18 MB, free: 0.6758 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.002092/0.002092, allocations: 210.1 kB / 24.48 MB, free: 3.977 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.581/1.581, allocations: 230.7 MB / 258.3 MB, free: 7.809 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.001692/0.001692, allocations: 47.92 kB / 379.8 MB, free: 1.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2943, allocations: 53.37 MB / 433.2 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01789/0.3122, allocations: 12.31 MB / 445.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01907/0.3312, allocations: 13.63 MB / 459.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000201/0.3314, allocations: 4 kB / 459.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003989/0.3318, allocations: 75.52 kB / 459.2 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003955/0.3322, allocations: 115.2 kB / 459.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01773/0.35, allocations: 5.918 MB / 465.2 MB, free: 6.332 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005734/0.3505, allocations: 354.5 kB / 465.6 MB, free: 5.984 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.198e-05/0.3506, allocations: 13.8 kB / 465.6 MB, free: 5.969 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005319/0.3511, allocations: 223 kB / 465.8 MB, free: 5.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001899/0.3513, allocations: 103.6 kB / 465.9 MB, free: 5.648 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.348e-05/0.3514, allocations: 16 kB / 465.9 MB, free: 5.633 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01375/0.3651, allocations: 6.743 MB / 472.6 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.3652, allocations: 39.84 kB / 472.7 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000199/0.3654, allocations: 95.58 kB / 472.8 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0107/0.3761, allocations: 3.917 MB / 476.7 MB, free: 10.83 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.3762, allocations: 0 / 476.7 MB, free: 10.83 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3762, allocations: 0 / 476.7 MB, free: 10.83 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.3762, allocations: 4 kB / 476.7 MB, free: 10.82 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.003199/0.3794, allocations: 0.9428 MB / 477.6 MB, free: 9.848 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.3794, allocations: 12.03 kB / 477.6 MB, free: 9.836 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001443/0.3809, allocations: 180.5 kB / 477.8 MB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004016/0.3813, allocations: 194.2 kB / 478 MB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.571e-05/0.3813, allocations: 16.81 kB / 478 MB, free: 9.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.554e-05/0.3813, allocations: 28.12 kB / 478.1 MB, free: 9.402 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003431/0.3848, allocations: 0.963 MB / 479 MB, free: 8.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.3848, allocations: 0 / 479 MB, free: 8.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.021e-05/0.3848, allocations: 12 kB / 479 MB, free: 8.398 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.3848, allocations: 4 kB / 479 MB, free: 8.395 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003483/0.3883, allocations: 0.9578 MB / 480 MB, free: 7.434 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.001708/0.39, allocations: 0.901 MB / 480.9 MB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002853/0.3929, allocations: 0.7371 MB / 481.6 MB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003022/0.3932, allocations: 152.8 kB / 481.8 MB, free: 5.594 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07518/0.4684, allocations: 20.64 MB / 0.4906 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.853e-05/0.4684, allocations: 38.55 kB / 0.4907 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.585e-06/0.4684, allocations: 0 / 0.4907 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005868/0.4743, allocations: 1.352 MB / 0.492 GB, free: 15.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.901e-05/0.4744, allocations: 59.34 kB / 0.4921 GB, free: 15.45 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001563/0.4745, allocations: 137.7 kB / 0.4922 GB, free: 15.31 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.793e-05/0.4746, allocations: 29.7 kB / 0.4922 GB, free: 15.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.798e-05/0.4747, allocations: 116.8 kB / 0.4923 GB, free: 15.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001619/0.4749, allocations: 123.3 kB / 0.4924 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003319/0.4752, allocations: 165.5 kB / 0.4926 GB, free: 14.87 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.4754, allocations: 326.8 kB / 0.4929 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006731/0.476, allocations: 335.8 kB / 0.4932 GB, free: 14.21 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007645/0.4768, allocations: 411.5 kB / 0.4936 GB, free: 13.78 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.4783, allocations: 0.7075 MB / 0.4943 GB, free: 13.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.4783, allocations: 0 / 0.4943 GB, free: 13.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002008/0.4803, allocations: 0.8719 MB / 0.4952 GB, free: 12.17 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.4803, allocations: 8 kB / 0.4952 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.4803, allocations: 0 / 0.4952 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.66e-05/0.4803, allocations: 7.938 kB / 0.4952 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007691/0.4811, allocations: 179.8 kB / 0.4954 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.498e-05/0.4811, allocations: 8.188 kB / 0.4954 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003904/0.4815, allocations: 35.77 kB / 0.4954 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/0.4816, allocations: 67.92 kB / 0.4955 GB, free: 11.87 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.0002815/0.4819, allocations: 137.8 kB / 0.4956 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.4821, allocations: 15.91 kB / 0.4956 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009019/0.4911, allocations: 8.497 MB / 0.5039 GB, free: 3.191 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.803e-05/0.4911, allocations: 31.89 kB / 0.5039 GB, free: 3.16 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.4911, allocations: 0 / 0.5039 GB, free: 3.16 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.4911, allocations: 0 / 0.5039 GB, free: 3.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003686/0.4948, allocations: 3.639 MB / 0.5075 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.4948, allocations: 4 kB / 0.5075 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007344/0.4956, allocations: 103.8 kB / 0.5076 GB, free: 15.17 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.12e-05/0.4956, allocations: 4 kB / 0.5076 GB, free: 15.17 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.819e-05/0.4956, allocations: 15.98 kB / 0.5076 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.4956, allocations: 0 / 0.5076 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.919e-06/0.4956, allocations: 11.88 kB / 0.5076 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002705/0.4984, allocations: 1.882 MB / 0.5095 GB, free: 13.24 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.4985, allocations: 67.34 kB / 0.5095 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.792e-05/0.4985, allocations: 12 kB / 0.5095 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003098/0.4988, allocations: 8 kB / 0.5095 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.4989, allocations: 35.88 kB / 0.5096 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.513e-05/0.499, allocations: 19.98 kB / 0.5096 GB, free: 13.1 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.21e-05/0.4991, allocations: 99.27 kB / 0.5097 GB, free: 13 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4991, allocations: 0 / 0.5097 GB, free: 13 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003004/0.5021, allocations: 0.998 MB / 0.5107 GB, free: 12 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.004383/0.5064, allocations: 1.153 MB / 0.5118 GB, free: 10.84 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001891/0.5083, allocations: 0.8915 MB / 0.5127 GB, free: 9.945 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.5083, allocations: 0 / 0.5127 GB, free: 9.945 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008372/0.5092, allocations: 0.5288 MB / 0.5132 GB, free: 9.418 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007367/0.5099, allocations: 87.11 kB / 0.5133 GB, free: 9.336 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002181/0.5121, allocations: 1.382 MB / 0.5146 GB, free: 7.918 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002676/0.5124, allocations: 259.1 kB / 0.5149 GB, free: 7.641 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003867/0.5127, allocations: 91.36 kB / 0.515 GB, free: 7.551 MB / 430.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5127, allocations: 0 / 0.515 GB, free: 7.551 MB / 430.1 MB Notification: Performance of Templates: time 0.2624/0.7752, allocations: 24.34 MB / 0.5387 GB, free: 108.3 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.989410384005168]