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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001818/0.001818, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001426/0.001426, allocations: 115.4 kB / 296.7 MB, free: 6.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009574/0.0009575, allocations: 55.91 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1968/0.1977, allocations: 50.44 MB / 407 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01278/0.2105, allocations: 14.22 MB / 421.3 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.014/0.2246, allocations: 16.62 MB / 437.9 MB, free: 12.89 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.2248, allocations: 4 kB / 437.9 MB, free: 12.89 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003206/0.2251, allocations: 75.66 kB / 438 MB, free: 12.82 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002894/0.2254, allocations: 99.33 kB / 438.1 MB, free: 12.72 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0129/0.2383, allocations: 4.726 MB / 442.8 MB, free: 8.004 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000477/0.2388, allocations: 370.5 kB / 443.1 MB, free: 7.641 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.553e-05/0.2389, allocations: 17.67 kB / 443.2 MB, free: 7.621 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004776/0.2394, allocations: 211 kB / 443.4 MB, free: 7.414 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000177/0.2396, allocations: 115.5 kB / 443.5 MB, free: 7.301 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.447e-05/0.2396, allocations: 4 kB / 443.5 MB, free: 7.297 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01213/0.2517, allocations: 6.697 MB / 450.2 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.2519, allocations: 43.83 kB / 450.2 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001866/0.2521, allocations: 95.58 kB / 450.3 MB, free: 468 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008785/0.2609, allocations: 3.922 MB / 454.2 MB, free: 12.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.2609, allocations: 7.938 kB / 454.2 MB, free: 12.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2609, allocations: 0 / 454.2 MB, free: 12.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.2609, allocations: 0 / 454.2 MB, free: 12.52 MB / 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.002423/0.2634, allocations: 0.9908 MB / 455.2 MB, free: 11.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.2634, allocations: 8.594 kB / 455.2 MB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001331/0.2647, allocations: 184.5 kB / 455.4 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002825/0.265, allocations: 256.1 kB / 455.7 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.376e-05/0.2651, allocations: 20.81 kB / 455.7 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.33e-05/0.2651, allocations: 16.38 kB / 455.7 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003024/0.2682, allocations: 0.9089 MB / 456.6 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.2682, allocations: 0 / 456.6 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.765e-05/0.2682, allocations: 12 kB / 456.6 MB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.2683, allocations: 8 kB / 456.6 MB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003165/0.2714, allocations: 0.9695 MB / 457.6 MB, free: 9.047 MB / 330.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.001686/0.2731, allocations: 1.335 MB / 458.9 MB, free: 7.574 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002558/0.2757, allocations: 0.7361 MB / 459.7 MB, free: 6.828 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002797/0.276, allocations: 156.7 kB / 459.8 MB, free: 6.672 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08187/0.3579, allocations: 42.01 MB / 0.4901 GB, free: 7.289 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/0.358, allocations: 38.55 kB / 0.4901 GB, free: 7.242 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 6.332e-06/0.358, allocations: 3.984 kB / 0.4901 GB, free: 7.238 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.005267/0.3633, allocations: 1.364 MB / 0.4915 GB, free: 5.867 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.3633, allocations: 59.34 kB / 0.4915 GB, free: 5.797 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.3634, allocations: 117.8 kB / 0.4916 GB, free: 5.672 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.845e-05/0.3635, allocations: 29.7 kB / 0.4917 GB, free: 5.637 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.988e-05/0.3636, allocations: 120.7 kB / 0.4918 GB, free: 5.512 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.3638, allocations: 110.3 kB / 0.4919 GB, free: 5.402 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002932/0.3641, allocations: 169.5 kB / 0.492 GB, free: 5.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.3642, allocations: 326.8 kB / 0.4923 GB, free: 4.902 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006307/0.3648, allocations: 339.8 kB / 0.4927 GB, free: 4.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007065/0.3655, allocations: 403.3 kB / 0.4931 GB, free: 4.148 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.3669, allocations: 0.7153 MB / 0.4938 GB, free: 3.406 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.3669, allocations: 0 / 0.4938 GB, free: 3.406 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001836/0.3688, allocations: 0.8682 MB / 0.4946 GB, free: 2.531 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.3688, allocations: 8 kB / 0.4946 GB, free: 2.523 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.3688, allocations: 4 kB / 0.4946 GB, free: 2.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/0.3688, allocations: 7.938 kB / 0.4946 GB, free: 2.512 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006596/0.3695, allocations: 175.7 kB / 0.4948 GB, free: 2.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.3695, allocations: 4 kB / 0.4948 GB, free: 2.336 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004135/0.3699, allocations: 47.61 kB / 0.4948 GB, free: 2.289 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.3701, allocations: 71.92 kB / 0.4949 GB, free: 2.219 MB / 378.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.0002294/0.3703, allocations: 139.2 kB / 0.495 GB, free: 2.074 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.3705, allocations: 12.28 kB / 0.4951 GB, free: 2.062 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1671/0.5376, allocations: 7.983 MB / 0.5028 GB, free: 96.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.146e-05/0.5376, allocations: 27.38 kB / 0.5029 GB, free: 96.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.5377, allocations: 0.625 kB / 0.5029 GB, free: 96.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.5377, allocations: 0 / 0.5029 GB, free: 96.76 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002737/0.5404, allocations: 3.598 MB / 0.5064 GB, free: 94.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.5404, allocations: 1.406 kB / 0.5064 GB, free: 94.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006473/0.5411, allocations: 108.1 kB / 0.5065 GB, free: 94.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-06/0.5411, allocations: 2.625 kB / 0.5065 GB, free: 94.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.423e-05/0.5412, allocations: 16.16 kB / 0.5065 GB, free: 94.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.5412, allocations: 2.406 kB / 0.5065 GB, free: 94.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.5412, allocations: 0.6562 kB / 0.5065 GB, free: 94.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003268/0.5445, allocations: 3.288 MB / 0.5097 GB, free: 92.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.296e-05/0.5445, allocations: 144.4 kB / 0.5099 GB, free: 92.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.914e-05/0.5446, allocations: 4.781 kB / 0.5099 GB, free: 92.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003004/0.5449, allocations: 21.09 kB / 0.5099 GB, free: 92.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.049e-05/0.545, allocations: 29.52 kB / 0.5099 GB, free: 92.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.734e-05/0.545, allocations: 19.53 kB / 0.5099 GB, free: 92.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.93e-05/0.5451, allocations: 93.89 kB / 0.51 GB, free: 92.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5451, allocations: 0 / 0.51 GB, free: 92.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00246/0.5475, allocations: 1.015 MB / 0.511 GB, free: 91.64 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.003652/0.5512, allocations: 1.146 MB / 0.5121 GB, free: 90.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001305/0.5525, allocations: 0.9123 MB / 0.513 GB, free: 89.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.5525, allocations: 0 / 0.513 GB, free: 89.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000548/0.5531, allocations: 0.5869 MB / 0.5136 GB, free: 89.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006195/0.5537, allocations: 82.83 kB / 0.5137 GB, free: 89.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001825/0.5556, allocations: 2.223 MB / 0.5158 GB, free: 87.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002008/0.5558, allocations: 0.8919 MB / 0.5167 GB, free: 86.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001295/0.5571, allocations: 1.784 MB / 0.5185 GB, free: 84.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003141/0.5574, allocations: 87.36 kB / 0.5185 GB, free: 84.39 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.5574, allocations: 0 / 0.5185 GB, free: 84.39 MB / 378.7 MB Notification: Performance of Templates: time 0.03762/0.595, allocations: 41.18 MB / 0.5588 GB, free: 43.23 MB / 378.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches