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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=4400,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=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001566/0.001566, allocations: 119.9 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001911/0.001911, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 60.69 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08557/0.08672, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.159/0.2458, allocations: 13.44 MB / 372.3 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01468/0.2605, allocations: 15.56 MB / 387.9 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001833/0.2607, allocations: 1.5 kB / 387.9 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003418/0.2611, allocations: 78.88 kB / 388 MB, free: 4.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003711/0.2615, allocations: 117.6 kB / 388.1 MB, free: 4.609 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01556/0.277, allocations: 5.967 MB / 394.1 MB, free: 2.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000445/0.2775, allocations: 341.2 kB / 394.4 MB, free: 1.824 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.01e-05/0.2776, allocations: 16.3 kB / 394.4 MB, free: 1.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003971/0.278, allocations: 236.9 kB / 394.6 MB, free: 1.672 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/0.2781, allocations: 108.5 kB / 394.7 MB, free: 1.609 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.859e-05/0.2782, allocations: 13 kB / 394.8 MB, free: 1.609 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01336/0.2915, allocations: 6.764 MB / 401.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.731e-05/0.2917, allocations: 44.52 kB / 401.6 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001972/0.2919, allocations: 109.1 kB / 401.7 MB, free: 14.03 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009726/0.3016, allocations: 3.899 MB / 405.6 MB, free: 11.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3017, allocations: 3.031 kB / 405.6 MB, free: 11.58 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3017, allocations: 0 / 405.6 MB, free: 11.58 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.3017, allocations: 0 / 405.6 MB, free: 11.58 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.002535/0.3042, allocations: 0.9934 MB / 406.6 MB, free: 10.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.3043, allocations: 18.67 kB / 406.6 MB, free: 10.81 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001409/0.3057, allocations: 173.8 kB / 406.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002747/0.306, allocations: 262.8 kB / 407 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.243e-05/0.306, allocations: 16.97 kB / 407 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.547e-05/0.3061, allocations: 18.5 kB / 407 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003098/0.3092, allocations: 0.9169 MB / 408 MB, free: 9.699 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.3092, allocations: 2 kB / 408 MB, free: 9.699 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.138e-05/0.3092, allocations: 12 kB / 408 MB, free: 9.688 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.3093, allocations: 4 kB / 408 MB, free: 9.684 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003201/0.3125, allocations: 0.9656 MB / 408.9 MB, free: 8.715 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.001533/0.314, allocations: 1.343 MB / 410.3 MB, free: 7.238 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002593/0.3166, allocations: 0.7402 MB / 411 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002646/0.3169, allocations: 156.8 kB / 411.2 MB, free: 6.332 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07686/0.3938, allocations: 42.17 MB / 453.4 MB, free: 6.785 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.3938, allocations: 38.56 kB / 453.4 MB, free: 6.738 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.484e-06/0.3938, allocations: 0 / 453.4 MB, free: 6.738 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.005255/0.3991, allocations: 1.358 MB / 454.8 MB, free: 5.375 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.054e-05/0.3992, allocations: 59.34 kB / 454.8 MB, free: 5.305 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.3993, allocations: 121.8 kB / 454.9 MB, free: 5.176 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.947e-05/0.3994, allocations: 29.7 kB / 455 MB, free: 5.141 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.536e-05/0.3994, allocations: 124.6 kB / 455.1 MB, free: 5.016 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.3996, allocations: 106.3 kB / 455.2 MB, free: 4.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002723/0.3998, allocations: 169.5 kB / 455.3 MB, free: 4.738 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.4, allocations: 322.8 kB / 455.7 MB, free: 4.414 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006453/0.4007, allocations: 339.6 kB / 456 MB, free: 4.082 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000675/0.4014, allocations: 411.5 kB / 456.4 MB, free: 3.652 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/0.4026, allocations: 0.7064 MB / 457.1 MB, free: 2.918 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.4027, allocations: 0 / 457.1 MB, free: 2.918 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001784/0.4044, allocations: 0.876 MB / 458 MB, free: 2.035 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.4045, allocations: 4 kB / 458 MB, free: 2.031 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.4045, allocations: 4 kB / 458 MB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.4045, allocations: 7.938 kB / 458 MB, free: 2.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006707/0.4052, allocations: 180 kB / 458.2 MB, free: 1.844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.4052, allocations: 11.98 kB / 458.2 MB, free: 1.832 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003439/0.4056, allocations: 27.78 kB / 458.2 MB, free: 1.805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.4057, allocations: 64.8 kB / 458.3 MB, free: 1.742 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.0002122/0.4059, allocations: 146 kB / 458.4 MB, free: 1.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.406, allocations: 15.81 kB / 458.4 MB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00693/0.413, allocations: 7.974 MB / 466.4 MB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.952e-05/0.413, allocations: 31.89 kB / 466.4 MB, free: 9.555 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.413, allocations: 0 / 466.4 MB, free: 9.555 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.4131, allocations: 0 / 466.4 MB, free: 9.555 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002785/0.4159, allocations: 3.607 MB / 470 MB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.261e-06/0.4159, allocations: 5.312 kB / 470 MB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006852/0.4166, allocations: 107.8 kB / 470.2 MB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.822e-06/0.4166, allocations: 4 kB / 470.2 MB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.067e-05/0.4166, allocations: 12 kB / 470.2 MB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.4166, allocations: 3.938 kB / 470.2 MB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4166, allocations: 0 / 470.2 MB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002282/0.4189, allocations: 1.838 MB / 472 MB, free: 3.695 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.405e-05/0.419, allocations: 140.2 kB / 472.1 MB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.108e-05/0.4191, allocations: 12.06 kB / 472.2 MB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003082/0.4194, allocations: 19.92 kB / 472.2 MB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.583e-05/0.4195, allocations: 31.95 kB / 472.2 MB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.133e-05/0.4196, allocations: 12 kB / 472.2 MB, free: 3.465 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.593e-05/0.4196, allocations: 95.2 kB / 472.3 MB, free: 3.371 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4196, allocations: 0 / 472.3 MB, free: 3.371 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002772/0.4224, allocations: 0.9916 MB / 473.3 MB, free: 2.379 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.004032/0.4265, allocations: 1.141 MB / 474.4 MB, free: 1.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.428, allocations: 0.899 MB / 475.3 MB, free: 340 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4281, allocations: 0 / 475.3 MB, free: 340 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007483/0.4288, allocations: 0.5918 MB / 475.9 MB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006302/0.4295, allocations: 92.28 kB / 476 MB, free: 15.65 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001827/0.4313, allocations: 1.31 MB / 477.3 MB, free: 14.31 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/0.4317, allocations: 0.8653 MB / 478.2 MB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001784/0.4335, allocations: 1.783 MB / 480 MB, free: 11.63 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003307/0.4338, allocations: 87.36 kB / 480.1 MB, free: 11.55 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4338, allocations: 0 / 480.1 MB, free: 11.55 MB / 398.1 MB Notification: Performance of Templates: time 0.05107/0.4849, allocations: 40.88 MB / 0.5087 GB, free: 2.621 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches