Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.WaterIF97.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.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008828/0.000883, allocations: 95.8 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00093/0.0009301, allocations: 207.7 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.7 MB / 247.5 MB, free: 9.637 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002644/0.0002644, allocations: 4 kB / 308.4 MB, free: 0.6211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1018, allocations: 51.53 MB / 359.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.2096/0.3115, allocations: 13.34 MB / 373.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01521/0.3268, allocations: 12.28 MB / 385.5 MB, free: 7.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001988/0.327, allocations: 0 / 385.5 MB, free: 7.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003963/0.3274, allocations: 71.39 kB / 385.6 MB, free: 7.125 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00042/0.3279, allocations: 77.03 kB / 385.7 MB, free: 7.082 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01643/0.3443, allocations: 4.012 MB / 389.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005063/0.3448, allocations: 268.2 kB / 389.9 MB, free: 5.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.173e-05/0.3449, allocations: 19.14 kB / 390 MB, free: 5.906 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004848/0.3454, allocations: 175.2 kB / 390.1 MB, free: 5.836 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/0.3456, allocations: 81.22 kB / 390.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.348e-05/0.3456, allocations: 5.5 kB / 390.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01561/0.3612, allocations: 6.915 MB / 397.1 MB, free: 2.672 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.3613, allocations: 26.58 kB / 397.1 MB, free: 2.652 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.3615, allocations: 90.06 kB / 397.2 MB, free: 2.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005899/0.3674, allocations: 2.59 MB / 399.8 MB, free: 1.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3675, allocations: 0.8438 kB / 399.8 MB, free: 1.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3675, allocations: 0 / 399.8 MB, free: 1.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.3675, allocations: 0 / 399.8 MB, free: 1.09 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.00539/0.3729, allocations: 1.116 MB / 400.9 MB, free: 312 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.3729, allocations: 10.62 kB / 401 MB, free: 312 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004866/0.3734, allocations: 56.7 kB / 401 MB, free: 288 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002099/0.3736, allocations: 215.5 kB / 401.2 MB, free: 44 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.678e-05/0.3737, allocations: 10.91 kB / 401.2 MB, free: 40 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.118e-05/0.3737, allocations: 15.12 kB / 401.2 MB, free: 36 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.375, allocations: 397.2 kB / 401.6 MB, free: 15.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/0.3751, allocations: 5.25 kB / 401.6 MB, free: 15.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.898e-05/0.3751, allocations: 6.344 kB / 401.6 MB, free: 15.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.3751, allocations: 6.312 kB / 401.7 MB, free: 15.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001464/0.3766, allocations: 370.7 kB / 402 MB, free: 15.57 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.001423/0.378, allocations: 1.191 MB / 403.2 MB, free: 14.39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008702/0.3789, allocations: 292.6 kB / 403.5 MB, free: 14.21 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003007/0.3792, allocations: 121.5 kB / 403.6 MB, free: 14.14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1076/0.4869, allocations: 53.01 MB / 456.6 MB, free: 3.594 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/0.4869, allocations: 38.56 kB / 456.7 MB, free: 3.547 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.886e-06/0.487, allocations: 0 / 456.7 MB, free: 3.547 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.007406/0.4944, allocations: 1.613 MB / 458.3 MB, free: 1.879 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.72e-05/0.4945, allocations: 118.7 kB / 458.4 MB, free: 1.738 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.4946, allocations: 113.8 kB / 458.5 MB, free: 1.617 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.871e-05/0.4946, allocations: 33.7 kB / 458.5 MB, free: 1.578 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.705e-05/0.4947, allocations: 104.5 kB / 458.6 MB, free: 1.473 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.4948, allocations: 122.3 kB / 458.8 MB, free: 1.352 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.603e-05/0.4949, allocations: 37.7 kB / 458.8 MB, free: 1.309 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.495, allocations: 322.8 kB / 459.1 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004345/0.4955, allocations: 135.9 kB / 459.2 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004429/0.4959, allocations: 202.6 kB / 459.4 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008536/0.4968, allocations: 358.6 kB / 459.8 MB, free: 260 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.4968, allocations: 3.938 kB / 459.8 MB, free: 256 kB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001205/0.498, allocations: 441.8 kB / 460.2 MB, free: 15.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.4981, allocations: 12.22 kB / 460.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.4981, allocations: 0.875 kB / 460.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002709/0.4984, allocations: 36.83 kB / 460.3 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004831/0.4988, allocations: 91.88 kB / 460.4 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004132/0.4993, allocations: 0.5523 MB / 460.9 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000343/0.4996, allocations: 35.91 kB / 460.9 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.796e-05/0.4997, allocations: 8 kB / 461 MB, free: 15.05 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001747/0.4999, allocations: 150.7 kB / 461.1 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.761e-05/0.5, allocations: 19.98 kB / 461.1 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002342/0.5023, allocations: 1.451 MB / 462.6 MB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.788e-05/0.5024, allocations: 27.84 kB / 462.6 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.5024, allocations: 0 / 462.6 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.5024, allocations: 7.922 kB / 462.6 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003119/0.5055, allocations: 1.982 MB / 464.6 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.5056, allocations: 0 / 464.6 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000454/0.506, allocations: 91.98 kB / 464.7 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003858/0.5064, allocations: 68.8 kB / 464.7 MB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.117e-05/0.5065, allocations: 15.98 kB / 464.8 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003754/0.5069, allocations: 0.5874 MB / 465.4 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/0.5069, allocations: 11.91 kB / 465.4 MB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002408/0.5093, allocations: 1.693 MB / 467.1 MB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.5094, allocations: 128.4 kB / 467.2 MB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.876e-05/0.5095, allocations: 8 kB / 467.2 MB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004094/0.5099, allocations: 30.2 kB / 467.2 MB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.296e-05/0.51, allocations: 39.83 kB / 467.3 MB, free: 8.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.969e-05/0.51, allocations: 16 kB / 467.3 MB, free: 8.562 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.998e-05/0.5101, allocations: 91.27 kB / 467.4 MB, free: 8.473 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5101, allocations: 0 / 467.4 MB, free: 8.473 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003401/0.5135, allocations: 0.9566 MB / 468.3 MB, free: 7.516 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006038/0.5196, allocations: 1.158 MB / 469.5 MB, free: 6.348 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.521, allocations: 0.6088 MB / 470.1 MB, free: 5.738 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.5211, allocations: 0 / 470.1 MB, free: 5.738 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008707/0.5219, allocations: 0.5168 MB / 470.6 MB, free: 5.223 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000891/0.5228, allocations: 79.86 kB / 470.7 MB, free: 5.145 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002662/0.5255, allocations: 1.613 MB / 472.3 MB, free: 3.484 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003754/0.5259, allocations: 0.8142 MB / 473.1 MB, free: 2.641 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/0.5261, allocations: 43.41 kB / 473.2 MB, free: 2.598 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.5261, allocations: 0 / 473.2 MB, free: 2.598 MB / 382.1 MB Notification: Performance of Templates: time 0.03325/0.5594, allocations: 21.88 MB / 495 MB, free: 12.69 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_trunk_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches