Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001752/0.001751, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001976/0.001976, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.5/1.5, allocations: 227.7 MB / 247.7 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001949/0.00195, allocations: 69.22 kB / 307.9 MB, free: 0.4922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1118, allocations: 50.54 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01765/0.1295, allocations: 13.45 MB / 371.9 MB, free: 440 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1763/0.3058, allocations: 15.54 MB / 387.4 MB, free: 4.637 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001911/0.3061, allocations: 1.281 kB / 387.4 MB, free: 4.637 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003681/0.3064, allocations: 85.81 kB / 387.5 MB, free: 4.594 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003435/0.3068, allocations: 108.9 kB / 387.6 MB, free: 4.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01636/0.3232, allocations: 5.978 MB / 393.6 MB, free: 2.133 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004842/0.3237, allocations: 336.6 kB / 393.9 MB, free: 1.945 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.503e-05/0.3237, allocations: 20.52 kB / 393.9 MB, free: 1.938 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004201/0.3241, allocations: 228.1 kB / 394.2 MB, free: 1.797 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001475/0.3243, allocations: 108.2 kB / 394.3 MB, free: 1.734 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.075e-05/0.3243, allocations: 14.34 kB / 394.3 MB, free: 1.734 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01479/0.3391, allocations: 6.616 MB / 400.9 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001293/0.3393, allocations: 40.7 kB / 400.9 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002422/0.3396, allocations: 109.5 kB / 401 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01267/0.3522, allocations: 3.908 MB / 405 MB, free: 11.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.3523, allocations: 2.5 kB / 405 MB, free: 11.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3523, allocations: 3.938 kB / 405 MB, free: 11.81 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.3523, allocations: 4 kB / 405 MB, free: 11.81 MB / 318.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.003383/0.3557, allocations: 0.9974 MB / 406 MB, free: 11.04 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.3558, allocations: 11.56 kB / 406 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001404/0.3572, allocations: 169.1 kB / 406.1 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003389/0.3575, allocations: 261.3 kB / 406.4 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.209e-05/0.3576, allocations: 17.81 kB / 406.4 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.237e-05/0.3577, allocations: 27.72 kB / 406.4 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003215/0.3609, allocations: 0.9069 MB / 407.3 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.3609, allocations: 0 / 407.3 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.197e-05/0.361, allocations: 12 kB / 407.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.361, allocations: 3.938 kB / 407.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003344/0.3643, allocations: 0.9733 MB / 408.3 MB, free: 9.164 MB / 318.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.002042/0.3664, allocations: 1.346 MB / 409.7 MB, free: 7.688 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002748/0.3692, allocations: 0.7403 MB / 410.4 MB, free: 6.938 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000305/0.3695, allocations: 152.8 kB / 410.6 MB, free: 6.785 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08874/0.4582, allocations: 42.01 MB / 452.6 MB, free: 7.402 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.872e-05/0.4583, allocations: 34.56 kB / 452.6 MB, free: 7.359 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 3.125e-06/0.4583, allocations: 4 kB / 452.6 MB, free: 7.355 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.005651/0.464, allocations: 1.361 MB / 454 MB, free: 5.988 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.4641, allocations: 63.34 kB / 454 MB, free: 5.914 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001477/0.4642, allocations: 117.8 kB / 454.2 MB, free: 5.789 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.857e-05/0.4643, allocations: 29.7 kB / 454.2 MB, free: 5.754 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.646e-05/0.4644, allocations: 116.6 kB / 454.3 MB, free: 5.637 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001733/0.4646, allocations: 122.3 kB / 454.4 MB, free: 5.516 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003025/0.4649, allocations: 161.6 kB / 454.6 MB, free: 5.352 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.4651, allocations: 323.2 kB / 454.9 MB, free: 5.027 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006922/0.4658, allocations: 339.8 kB / 455.2 MB, free: 4.695 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007807/0.4666, allocations: 415.2 kB / 455.6 MB, free: 4.262 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001476/0.4681, allocations: 0.7114 MB / 456.3 MB, free: 3.523 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.4681, allocations: 0 / 456.3 MB, free: 3.523 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002019/0.4701, allocations: 0.8759 MB / 457.2 MB, free: 2.641 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.4701, allocations: 11.98 kB / 457.2 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.4701, allocations: 0 / 457.2 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.4702, allocations: 7.938 kB / 457.2 MB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006788/0.4709, allocations: 179.8 kB / 457.4 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.4709, allocations: 0 / 457.4 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003575/0.4712, allocations: 31.77 kB / 457.4 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/0.4714, allocations: 63.94 kB / 457.5 MB, free: 2.352 MB / 366.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.000264/0.4716, allocations: 137.8 kB / 457.6 MB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001707/0.4718, allocations: 23.8 kB / 457.7 MB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008853/0.4807, allocations: 7.962 MB / 465.6 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-05/0.4808, allocations: 31.89 kB / 465.7 MB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.4808, allocations: 0 / 465.7 MB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/0.4808, allocations: 7.984 kB / 465.7 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00381/0.4846, allocations: 3.6 MB / 469.3 MB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.261e-05/0.4847, allocations: 0 / 469.3 MB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006898/0.4854, allocations: 115.7 kB / 469.4 MB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.713e-06/0.4854, allocations: 0 / 469.4 MB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.4e-05/0.4855, allocations: 15.98 kB / 469.4 MB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.043e-05/0.4855, allocations: 7.938 kB / 469.4 MB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.4855, allocations: 0 / 469.4 MB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00281/0.4883, allocations: 1.831 MB / 471.2 MB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001359/0.4885, allocations: 152.1 kB / 471.4 MB, free: 4.148 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.851e-05/0.4885, allocations: 8 kB / 471.4 MB, free: 4.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003015/0.4888, allocations: 16.81 kB / 471.4 MB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.489, allocations: 27.95 kB / 471.4 MB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.387e-05/0.489, allocations: 19.98 kB / 471.5 MB, free: 4.078 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.359e-05/0.4891, allocations: 99.27 kB / 471.5 MB, free: 3.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4891, allocations: 0 / 471.5 MB, free: 3.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003427/0.4926, allocations: 0.9838 MB / 472.5 MB, free: 2.996 MB / 382.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.004973/0.4976, allocations: 1.153 MB / 473.7 MB, free: 1.836 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002179/0.4998, allocations: 0.9223 MB / 474.6 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.4998, allocations: 0 / 474.6 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008531/0.5006, allocations: 0.592 MB / 475.2 MB, free: 332 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006861/0.5013, allocations: 87.2 kB / 475.3 MB, free: 248 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002134/0.5035, allocations: 1.355 MB / 476.6 MB, free: 14.85 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005159/0.504, allocations: 0.8536 MB / 477.5 MB, free: 13.96 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003624/0.5044, allocations: 95.34 kB / 477.6 MB, free: 13.88 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.5044, allocations: 0 / 477.6 MB, free: 13.88 MB / 398.1 MB Notification: Performance of Templates: time 0.03965/0.544, allocations: 24.16 MB / 0.49 GB, free: 5.656 MB / 414.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches