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.001236/0.001237, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001336/0.001336, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 56.14 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2185/0.2196, allocations: 50.55 MB / 409.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01497/0.2346, allocations: 13 MB / 422.2 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01208/0.2468, allocations: 11.54 MB / 433.8 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.964e-05/0.2469, allocations: 0 / 433.8 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003203/0.2472, allocations: 71.55 kB / 433.8 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002572/0.2475, allocations: 83.44 kB / 433.9 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01239/0.2599, allocations: 5.08 MB / 439 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003415/0.2603, allocations: 231 kB / 439.2 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.405e-05/0.2603, allocations: 21.42 kB / 439.2 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004176/0.2608, allocations: 187.3 kB / 439.4 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001714/0.2609, allocations: 79.62 kB / 439.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.261, allocations: 8 kB / 439.5 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01249/0.2735, allocations: 6.993 MB / 446.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.02e-05/0.2736, allocations: 23.92 kB / 446.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.2737, allocations: 67.72 kB / 446.6 MB, free: 12.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006908/0.2806, allocations: 3.89 MB / 450.5 MB, free: 8.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.2806, allocations: 0 / 450.5 MB, free: 8.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2806, allocations: 4 kB / 450.5 MB, free: 8.246 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.2806, allocations: 0 / 450.5 MB, free: 8.246 MB / 366.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.00426/0.2849, allocations: 1.171 MB / 451.7 MB, free: 7.023 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.285, allocations: 8.031 kB / 451.7 MB, free: 7.016 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004601/0.2854, allocations: 48.84 kB / 451.7 MB, free: 6.969 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002866/0.2857, allocations: 220.1 kB / 451.9 MB, free: 6.715 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.2857, allocations: 16.66 kB / 452 MB, free: 6.699 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.675e-05/0.2858, allocations: 16.36 kB / 452 MB, free: 6.684 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001222/0.287, allocations: 388.8 kB / 452.3 MB, free: 6.273 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.2871, allocations: 0 / 452.3 MB, free: 6.273 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.138e-05/0.2871, allocations: 12 kB / 452.4 MB, free: 6.262 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.2871, allocations: 4 kB / 452.4 MB, free: 6.258 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001394/0.2885, allocations: 351.5 kB / 452.7 MB, free: 5.914 MB / 366.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.001264/0.2898, allocations: 1.184 MB / 453.9 MB, free: 4.629 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000826/0.2906, allocations: 280.9 kB / 454.2 MB, free: 4.328 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002872/0.2909, allocations: 118.9 kB / 454.3 MB, free: 4.203 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0994/0.3903, allocations: 52.81 MB / 0.4952 GB, free: 8.742 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/0.3904, allocations: 46.48 kB / 0.4952 GB, free: 8.688 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 2.575e-06/0.3904, allocations: 0 / 0.4952 GB, free: 8.688 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.00698/0.3974, allocations: 1.583 MB / 0.4968 GB, free: 7.055 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.388e-05/0.3975, allocations: 106.8 kB / 0.4969 GB, free: 6.926 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.3976, allocations: 125.7 kB / 0.497 GB, free: 6.793 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.158e-05/0.3977, allocations: 33.77 kB / 0.497 GB, free: 6.754 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.032e-05/0.3977, allocations: 108.6 kB / 0.4972 GB, free: 6.645 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.227e-05/0.3978, allocations: 119 kB / 0.4973 GB, free: 6.527 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.398, allocations: 69.69 kB / 0.4973 GB, free: 6.453 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.3981, allocations: 330.8 kB / 0.4976 GB, free: 6.121 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003887/0.3985, allocations: 131.7 kB / 0.4978 GB, free: 5.992 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004171/0.3989, allocations: 198.7 kB / 0.498 GB, free: 5.773 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008013/0.3997, allocations: 354.5 kB / 0.4983 GB, free: 5.402 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3997, allocations: 0 / 0.4983 GB, free: 5.402 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001085/0.4008, allocations: 426 kB / 0.4987 GB, free: 4.977 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.4009, allocations: 11.92 kB / 0.4987 GB, free: 4.965 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.4009, allocations: 4 kB / 0.4987 GB, free: 4.961 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002498/0.4011, allocations: 32.78 kB / 0.4988 GB, free: 4.926 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004761/0.4016, allocations: 96.03 kB / 0.4988 GB, free: 4.832 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003704/0.402, allocations: 0.5485 MB / 0.4994 GB, free: 4.258 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002676/0.4023, allocations: 19.92 kB / 0.4994 GB, free: 4.238 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.776e-05/0.4023, allocations: 19.98 kB / 0.4994 GB, free: 4.219 MB / 430.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.0001292/0.4025, allocations: 133.9 kB / 0.4995 GB, free: 4.078 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.464e-05/0.4026, allocations: 15.91 kB / 0.4996 GB, free: 4.062 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002082/0.4047, allocations: 1.447 MB / 0.501 GB, free: 2.602 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.968e-05/0.4047, allocations: 23.97 kB / 0.501 GB, free: 2.578 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4047, allocations: 4.031 kB / 0.501 GB, free: 2.574 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.4047, allocations: 3.984 kB / 0.501 GB, free: 2.57 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002794/0.4075, allocations: 1.979 MB / 0.5029 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.4075, allocations: 0 / 0.5029 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000432/0.408, allocations: 79.98 kB / 0.503 GB, free: 452 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002949/0.4083, allocations: 68.8 kB / 0.5031 GB, free: 380 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.42e-05/0.4083, allocations: 19.98 kB / 0.5031 GB, free: 360 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003471/0.4087, allocations: 0.5874 MB / 0.5037 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.4087, allocations: 8.125 kB / 0.5037 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00214/0.4108, allocations: 1.691 MB / 0.5053 GB, free: 14.01 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.792e-05/0.4109, allocations: 128.6 kB / 0.5055 GB, free: 13.87 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.645e-05/0.411, allocations: 12 kB / 0.5055 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000381/0.4114, allocations: 31.95 kB / 0.5055 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.159e-05/0.4114, allocations: 31.98 kB / 0.5055 GB, free: 13.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.204e-05/0.4115, allocations: 15.98 kB / 0.5055 GB, free: 13.78 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.985e-05/0.4115, allocations: 91.27 kB / 0.5056 GB, free: 13.69 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4115, allocations: 0 / 0.5056 GB, free: 13.69 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002358/0.4139, allocations: 0.9786 MB / 0.5066 GB, free: 12.71 MB / 446.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.003536/0.4174, allocations: 1.141 MB / 0.5077 GB, free: 11.55 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001347/0.4188, allocations: 0.6166 MB / 0.5083 GB, free: 10.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4188, allocations: 0 / 0.5083 GB, free: 10.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007982/0.4196, allocations: 0.5084 MB / 0.5088 GB, free: 10.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007547/0.4204, allocations: 84.58 kB / 0.5089 GB, free: 10.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/0.4227, allocations: 1.309 MB / 0.5102 GB, free: 8.992 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.423, allocations: 0.8332 MB / 0.511 GB, free: 8.133 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003616/0.4234, allocations: 137.7 kB / 0.5111 GB, free: 8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001263/0.4235, allocations: 31.42 kB / 0.5111 GB, free: 7.969 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4235, allocations: 0 / 0.5111 GB, free: 7.969 MB / 446.1 MB Notification: Performance of Templates: time 0.2127/0.6363, allocations: 36.32 MB / 0.5466 GB, free: 129.5 MB / 462.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches