Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001233/0.001233, allocations: 88.28 kB / 21.44 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.005181/0.005181, allocations: 158.2 kB / 24.7 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8352/0.8352, allocations: 177 MB / 204.9 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 328.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.754e-05/1.869e-05, allocations: 2.984 kB / 328.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.009269/0.009288, allocations: 12.32 MB / 340.8 MB, free: 240 kB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009786/0.01907, allocations: 13.63 MB / 354.5 MB, free: 2.551 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.203e-05/0.01916, allocations: 0 / 354.5 MB, free: 2.551 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002879/0.01944, allocations: 83.39 kB / 354.6 MB, free: 2.469 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002648/0.01971, allocations: 119.1 kB / 354.7 MB, free: 2.352 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009706/0.02941, allocations: 6.005 MB / 360.7 MB, free: 12.35 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003286/0.02974, allocations: 354.3 kB / 361 MB, free: 12 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.787e-05/0.02979, allocations: 9.812 kB / 361 MB, free: 11.99 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003542/0.03015, allocations: 259.1 kB / 361.3 MB, free: 11.74 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.03026, allocations: 83.78 kB / 361.4 MB, free: 11.66 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.301e-05/0.03028, allocations: 16 kB / 361.4 MB, free: 11.64 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007205/0.03749, allocations: 6.497 MB / 367.9 MB, free: 5.137 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.645e-05/0.03756, allocations: 43.83 kB / 367.9 MB, free: 5.094 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.519e-05/0.03763, allocations: 83.81 kB / 368 MB, free: 5.012 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004967/0.0426, allocations: 4.981 MB / 373 MB, free: 20 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.0426, allocations: 0 / 373 MB, free: 20 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.0426, allocations: 4 kB / 373 MB, free: 16 kB / 330.7 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.04261, allocations: 0 / 373 MB, free: 16 kB / 330.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.001344/0.04395, allocations: 0.9351 MB / 373.9 MB, free: 15.05 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.04399, allocations: 15.97 kB / 373.9 MB, free: 15.03 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006889/0.04468, allocations: 180.6 kB / 374.1 MB, free: 14.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002729/0.04495, allocations: 193.5 kB / 374.3 MB, free: 14.64 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.749e-05/0.04498, allocations: 20.88 kB / 374.3 MB, free: 14.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.472e-05/0.04501, allocations: 24.38 kB / 374.3 MB, free: 14.6 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.0466, allocations: 0.9606 MB / 375.3 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.04661, allocations: 3.938 kB / 375.3 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.246e-05/0.04663, allocations: 8 kB / 375.3 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.04664, allocations: 7.938 kB / 375.3 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001603/0.04824, allocations: 0.9697 MB / 376.3 MB, free: 12.61 MB / 346.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.0009093/0.04915, allocations: 0.9051 MB / 377.2 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.05054, allocations: 0.729 MB / 377.9 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.05069, allocations: 152.8 kB / 378.1 MB, free: 10.78 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0321/0.08279, allocations: 20.61 MB / 398.7 MB, free: 6.145 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.08282, allocations: 30.56 kB / 398.7 MB, free: 6.105 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 1.974e-06/0.08283, allocations: 0 / 398.7 MB, free: 6.105 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.002846/0.08567, allocations: 1.364 MB / 400.1 MB, free: 4.734 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.004e-05/0.0857, allocations: 55.41 kB / 400.1 MB, free: 4.668 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.333e-05/0.08579, allocations: 129.7 kB / 400.3 MB, free: 4.531 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.137e-05/0.08583, allocations: 29.7 kB / 400.3 MB, free: 4.496 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.821e-05/0.08588, allocations: 112.9 kB / 400.4 MB, free: 4.379 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.147e-05/0.08596, allocations: 123 kB / 400.5 MB, free: 4.258 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.08612, allocations: 161.5 kB / 400.7 MB, free: 4.094 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.147e-05/0.08619, allocations: 326.8 kB / 401 MB, free: 3.766 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003732/0.08656, allocations: 339.8 kB / 401.3 MB, free: 3.434 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004257/0.08699, allocations: 407.5 kB / 401.7 MB, free: 3.008 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007982/0.08779, allocations: 0.7114 MB / 402.4 MB, free: 2.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.08779, allocations: 0 / 402.4 MB, free: 2.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001076/0.08886, allocations: 0.8681 MB / 403.3 MB, free: 1.395 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.08888, allocations: 8 kB / 403.3 MB, free: 1.387 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.08889, allocations: 3.938 kB / 403.3 MB, free: 1.383 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.08891, allocations: 8.25 kB / 403.3 MB, free: 1.375 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002972/0.0892, allocations: 175.8 kB / 403.5 MB, free: 1.203 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.08921, allocations: 3.984 kB / 403.5 MB, free: 1.199 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001493/0.08936, allocations: 40.03 kB / 403.5 MB, free: 1.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.394e-05/0.08942, allocations: 67.92 kB / 403.6 MB, free: 1.094 MB / 362.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.0001395/0.08956, allocations: 141.7 kB / 403.8 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.459e-05/0.08964, allocations: 15.91 kB / 403.8 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004939/0.09458, allocations: 8.522 MB / 412.3 MB, free: 8.398 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.867e-05/0.0946, allocations: 27.95 kB / 412.3 MB, free: 8.371 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.0946, allocations: 0 / 412.3 MB, free: 8.371 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.09461, allocations: 3.938 kB / 412.3 MB, free: 8.367 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002026/0.09663, allocations: 3.633 MB / 416 MB, free: 4.492 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.09664, allocations: 4 kB / 416 MB, free: 4.488 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002703/0.09691, allocations: 107.8 kB / 416.1 MB, free: 4.383 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.165e-06/0.09691, allocations: 4 kB / 416.1 MB, free: 4.379 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.341e-05/0.09693, allocations: 15.98 kB / 416.1 MB, free: 4.363 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.09694, allocations: 4 kB / 416.1 MB, free: 4.359 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.09694, allocations: 0 / 416.1 MB, free: 4.359 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001471/0.09841, allocations: 1.889 MB / 418 MB, free: 2.453 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.703e-05/0.09845, allocations: 75.28 kB / 418.1 MB, free: 2.379 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.235e-05/0.09848, allocations: 8 kB / 418.1 MB, free: 2.371 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.0986, allocations: 20.05 kB / 418.1 MB, free: 2.352 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.251e-05/0.09866, allocations: 31.94 kB / 418.1 MB, free: 2.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.151e-05/0.09868, allocations: 12 kB / 418.1 MB, free: 2.309 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.533e-05/0.09872, allocations: 99.2 kB / 418.2 MB, free: 2.211 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.09872, allocations: 0 / 418.2 MB, free: 2.211 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002069/0.1008, allocations: 0.998 MB / 419.2 MB, free: 1.211 MB / 378.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.002396/0.1032, allocations: 1.282 MB / 420.5 MB, free: 15.91 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.1043, allocations: 0.888 MB / 421.4 MB, free: 15.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1043, allocations: 4.062 kB / 421.4 MB, free: 15.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004443/0.1047, allocations: 0.5322 MB / 421.9 MB, free: 14.49 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003768/0.1051, allocations: 83.14 kB / 422 MB, free: 14.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.1063, allocations: 1.324 MB / 423.3 MB, free: 13.05 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001356/0.1064, allocations: 259.1 kB / 423.6 MB, free: 12.78 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.1067, allocations: 88.42 kB / 423.7 MB, free: 12.69 MB / 394.7 MB Notification: Performance of SimCode: time 5.01e-07/0.1067, allocations: 0 / 423.7 MB, free: 12.69 MB / 394.7 MB Notification: Performance of Templates: time 0.01977/0.1264, allocations: 24.46 MB / 448.1 MB, free: 4.168 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 6.184298222884536]