Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001792/0.001798, allocations: 109.3 kB / 18.4 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001941/0.001941, allocations: 185.2 kB / 19.33 MB, free: 3.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 55.92 kB / 331.5 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09608/0.09751, allocations: 46.61 MB / 378.1 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.2325/0.33, allocations: 13.33 MB / 391.5 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01826/0.3483, allocations: 15.54 MB / 407 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002415/0.3486, allocations: 3.5 kB / 407 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004978/0.3492, allocations: 76.61 kB / 407.1 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000534/0.3497, allocations: 112.2 kB / 407.2 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02196/0.3717, allocations: 5.959 MB / 413.1 MB, free: 5.973 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006378/0.3723, allocations: 337.7 kB / 413.5 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.849e-05/0.3724, allocations: 16.33 kB / 413.5 MB, free: 5.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006828/0.3731, allocations: 233.1 kB / 413.7 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000278/0.3734, allocations: 103.5 kB / 413.8 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.436e-05/0.3735, allocations: 13.94 kB / 413.8 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01639/0.3899, allocations: 6.747 MB / 420.6 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001296/0.39, allocations: 43.89 kB / 420.6 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002519/0.3903, allocations: 105.6 kB / 420.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01198/0.4023, allocations: 3.891 MB / 424.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.138e-06/0.4023, allocations: 7.984 kB / 424.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4023, allocations: 0 / 424.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.254e-05/0.4024, allocations: 0 / 424.6 MB, free: 14.93 MB / 350.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.00379/0.4062, allocations: 0.9797 MB / 425.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.4062, allocations: 12.03 kB / 425.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00149/0.4077, allocations: 176.6 kB / 425.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004712/0.4082, allocations: 248.2 kB / 426 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.577e-05/0.4083, allocations: 16.81 kB / 426.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.585e-05/0.4083, allocations: 28.03 kB / 426.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003128/0.4115, allocations: 0.9098 MB / 427 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.4115, allocations: 4 kB / 427 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.83e-05/0.4116, allocations: 11.94 kB / 427 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.4116, allocations: 8 kB / 427 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00318/0.4148, allocations: 0.9695 MB / 428 MB, free: 11.47 MB / 350.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.001761/0.4165, allocations: 1.342 MB / 429.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002525/0.4191, allocations: 0.7322 MB / 430.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002732/0.4194, allocations: 156.8 kB / 430.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07911/0.4985, allocations: 37.54 MB / 467.7 MB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.028e-05/0.4986, allocations: 42.5 kB / 467.8 MB, free: 15.06 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.635e-06/0.4986, allocations: 0 / 467.8 MB, free: 15.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005301/0.5039, allocations: 1.363 MB / 469.2 MB, free: 13.69 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/0.504, allocations: 59.39 kB / 469.2 MB, free: 13.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.5041, allocations: 121.8 kB / 469.3 MB, free: 13.49 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.983e-05/0.5042, allocations: 29.7 kB / 469.4 MB, free: 13.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.44e-05/0.5043, allocations: 112.7 kB / 469.5 MB, free: 13.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001431/0.5045, allocations: 110.4 kB / 469.6 MB, free: 13.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002806/0.5048, allocations: 169.5 kB / 469.7 MB, free: 13.06 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.5049, allocations: 322.8 kB / 470.1 MB, free: 12.74 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006255/0.5055, allocations: 342.7 kB / 470.4 MB, free: 12.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006994/0.5062, allocations: 403.3 kB / 470.8 MB, free: 11.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/0.5076, allocations: 0.7076 MB / 471.5 MB, free: 11.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.5076, allocations: 4 kB / 471.5 MB, free: 11.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001858/0.5094, allocations: 0.8721 MB / 472.4 MB, free: 10.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.5095, allocations: 8 kB / 472.4 MB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.5095, allocations: 7.875 kB / 472.4 MB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.5095, allocations: 4 kB / 472.4 MB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006444/0.5102, allocations: 175.8 kB / 472.6 MB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.5102, allocations: 4.375 kB / 472.6 MB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/0.5105, allocations: 39.62 kB / 472.6 MB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.5107, allocations: 63.92 kB / 472.7 MB, free: 10.07 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.0002879/0.5109, allocations: 141.8 kB / 472.8 MB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/0.5111, allocations: 15.81 kB / 472.8 MB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007706/0.5188, allocations: 7.974 MB / 480.8 MB, free: 1.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.342e-05/0.5189, allocations: 27.95 kB / 480.8 MB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.5189, allocations: 0 / 480.8 MB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.5189, allocations: 4 kB / 480.8 MB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003223/0.5222, allocations: 3.592 MB / 484.4 MB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.55e-05/0.5222, allocations: 4 kB / 484.4 MB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006535/0.5229, allocations: 107.8 kB / 484.5 MB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.346e-05/0.5229, allocations: 3.984 kB / 484.5 MB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.34e-05/0.523, allocations: 11.94 kB / 484.5 MB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.523, allocations: 4 kB / 484.5 MB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.523, allocations: 0 / 484.5 MB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002536/0.5255, allocations: 1.841 MB / 486.4 MB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.5257, allocations: 148.1 kB / 486.5 MB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.733e-05/0.5257, allocations: 7.938 kB / 486.5 MB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002876/0.526, allocations: 19.98 kB / 486.6 MB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.5262, allocations: 27.95 kB / 486.6 MB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.605e-05/0.5262, allocations: 15.94 kB / 486.6 MB, free: 11.8 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.168e-05/0.5263, allocations: 95.33 kB / 486.7 MB, free: 11.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5263, allocations: 0 / 486.7 MB, free: 11.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003419/0.5297, allocations: 0.9722 MB / 487.7 MB, free: 10.73 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.005558/0.5353, allocations: 1.13 MB / 488.8 MB, free: 9.598 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001903/0.5372, allocations: 0.9077 MB / 489.7 MB, free: 8.691 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.5372, allocations: 0.5 kB / 489.7 MB, free: 8.691 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008588/0.5381, allocations: 0.5908 MB / 490.3 MB, free: 8.102 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007206/0.5389, allocations: 89.7 kB / 490.4 MB, free: 8.016 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002021/0.5409, allocations: 1.331 MB / 491.7 MB, free: 6.648 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004547/0.5414, allocations: 0.8575 MB / 492.6 MB, free: 5.766 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003714/0.5418, allocations: 95.34 kB / 492.7 MB, free: 5.676 MB / 414.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5418, allocations: 0 / 492.7 MB, free: 5.676 MB / 414.1 MB Notification: Performance of Templates: time 0.03676/0.5785, allocations: 23.92 MB / 0.5045 GB, free: 13.68 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches