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.001948/0.001948, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.002432/0.002432, allocations: 185 kB / 23.7 MB, free: 4.191 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.457/1.457, allocations: 225.7 MB / 252.5 MB, free: 12.87 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.00165/0.00165, allocations: 55.84 kB / 371.7 MB, free: 8.395 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2172/0.2189, allocations: 52.18 MB / 423.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01631/0.2352, allocations: 12.21 MB / 436.1 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01863/0.2538, allocations: 13.64 MB / 449.7 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001501/0.254, allocations: 0 / 449.7 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003395/0.2543, allocations: 67.52 kB / 449.8 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003852/0.2547, allocations: 123.2 kB / 449.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01531/0.27, allocations: 5.916 MB / 455.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005118/0.2705, allocations: 350.5 kB / 456.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.323e-05/0.2706, allocations: 9.812 kB / 456.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000526/0.2711, allocations: 211.1 kB / 456.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001952/0.2713, allocations: 99.59 kB / 456.5 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.293e-05/0.2713, allocations: 20 kB / 456.5 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01279/0.2841, allocations: 6.458 MB / 463 MB, free: 7.023 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.2842, allocations: 43.83 kB / 463 MB, free: 6.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00018/0.2844, allocations: 95.64 kB / 463.1 MB, free: 6.887 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008942/0.2934, allocations: 3.913 MB / 467 MB, free: 2.965 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2934, allocations: 0 / 467 MB, free: 2.965 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2934, allocations: 0 / 467 MB, free: 2.965 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.2934, allocations: 0 / 467 MB, free: 2.965 MB / 366.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.002749/0.2961, allocations: 0.938 MB / 467.9 MB, free: 1.996 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.2962, allocations: 8.031 kB / 468 MB, free: 1.988 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001416/0.2976, allocations: 180.6 kB / 468.1 MB, free: 1.812 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004136/0.298, allocations: 206.1 kB / 468.3 MB, free: 1.586 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.9e-05/0.298, allocations: 20.81 kB / 468.4 MB, free: 1.566 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.019e-05/0.2981, allocations: 24.12 kB / 468.4 MB, free: 1.543 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003213/0.3013, allocations: 0.9552 MB / 469.3 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.3013, allocations: 0 / 469.3 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.264e-05/0.3014, allocations: 8 kB / 469.3 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.3014, allocations: 4 kB / 469.3 MB, free: 0.543 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003295/0.3047, allocations: 0.9656 MB / 470.3 MB, free: 15.57 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.001583/0.3062, allocations: 0.9088 MB / 471.2 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00265/0.3089, allocations: 0.7294 MB / 471.9 MB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002951/0.3092, allocations: 152.7 kB / 472.1 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07512/0.3843, allocations: 19.73 MB / 491.8 MB, free: 9.984 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.246e-05/0.3844, allocations: 38.55 kB / 491.9 MB, free: 9.938 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.324e-06/0.3844, allocations: 0 / 491.9 MB, free: 9.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005445/0.3898, allocations: 1.352 MB / 493.2 MB, free: 8.578 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.3898, allocations: 59.34 kB / 493.3 MB, free: 8.508 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.39, allocations: 130 kB / 493.4 MB, free: 8.371 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.232e-05/0.3901, allocations: 33.7 kB / 493.4 MB, free: 8.332 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.46e-05/0.3901, allocations: 120.8 kB / 493.5 MB, free: 8.211 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001565/0.3903, allocations: 123 kB / 493.7 MB, free: 8.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003015/0.3906, allocations: 169.5 kB / 493.8 MB, free: 7.918 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.3908, allocations: 326.8 kB / 494.2 MB, free: 7.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006842/0.3914, allocations: 335.8 kB / 494.5 MB, free: 7.262 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007848/0.3922, allocations: 403.5 kB / 494.9 MB, free: 6.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001477/0.3937, allocations: 0.7153 MB / 495.6 MB, free: 6.098 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3937, allocations: 0 / 495.6 MB, free: 6.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001968/0.3957, allocations: 0.8719 MB / 496.5 MB, free: 5.219 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.3957, allocations: 8 kB / 496.5 MB, free: 5.211 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.3957, allocations: 0 / 496.5 MB, free: 5.211 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.3957, allocations: 7.938 kB / 496.5 MB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006733/0.3964, allocations: 175.8 kB / 496.7 MB, free: 5.031 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/0.3964, allocations: 7.938 kB / 496.7 MB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003448/0.3967, allocations: 36.08 kB / 496.7 MB, free: 4.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/0.3969, allocations: 63.92 kB / 496.8 MB, free: 4.926 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.0002418/0.3971, allocations: 137.8 kB / 496.9 MB, free: 4.781 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000149/0.3973, allocations: 15.91 kB / 496.9 MB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009174/0.4064, allocations: 8.498 MB / 0.4936 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-05/0.4065, allocations: 35.89 kB / 0.4936 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.4065, allocations: 0 / 0.4936 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.4065, allocations: 3.938 kB / 0.4936 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003628/0.4101, allocations: 3.643 MB / 0.4972 GB, free: 8.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.4101, allocations: 4 kB / 0.4972 GB, free: 8.316 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006583/0.4108, allocations: 103.9 kB / 0.4973 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.87e-06/0.4108, allocations: 0 / 0.4973 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.988e-05/0.4108, allocations: 15.98 kB / 0.4973 GB, free: 8.199 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.67e-06/0.4108, allocations: 7.938 kB / 0.4973 GB, free: 8.191 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.4108, allocations: 3.938 kB / 0.4973 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00272/0.4136, allocations: 1.893 MB / 0.4991 GB, free: 6.273 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.443e-05/0.4136, allocations: 63.36 kB / 0.4992 GB, free: 6.211 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.616e-05/0.4137, allocations: 8 kB / 0.4992 GB, free: 6.203 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002938/0.414, allocations: 11.94 kB / 0.4992 GB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.735e-05/0.4141, allocations: 35.88 kB / 0.4992 GB, free: 6.156 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.185e-05/0.4141, allocations: 19.98 kB / 0.4993 GB, free: 6.137 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.05e-05/0.4142, allocations: 91.27 kB / 0.4994 GB, free: 6.047 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4142, allocations: 4.062 kB / 0.4994 GB, free: 6.043 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00256/0.4168, allocations: 0.9941 MB / 0.5003 GB, free: 5.047 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.004405/0.4212, allocations: 1.133 MB / 0.5014 GB, free: 3.906 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001728/0.4229, allocations: 0.8957 MB / 0.5023 GB, free: 3.012 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4229, allocations: 0 / 0.5023 GB, free: 3.012 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008229/0.4237, allocations: 0.5327 MB / 0.5028 GB, free: 2.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006642/0.4244, allocations: 84.12 kB / 0.5029 GB, free: 2.398 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002126/0.4265, allocations: 1.345 MB / 0.5042 GB, free: 1.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.4268, allocations: 259 kB / 0.5045 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00215/0.4289, allocations: 1.783 MB / 0.5062 GB, free: 14.96 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003478/0.4293, allocations: 91.34 kB / 0.5063 GB, free: 14.88 MB / 430.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4293, allocations: 4 kB / 0.5063 GB, free: 14.87 MB / 430.1 MB Notification: Performance of Templates: time 0.2263/0.6556, allocations: 41.83 MB / 0.5471 GB, free: 112.8 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.384859872981906]