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.001102/0.001102, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001206/0.001206, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 58.12 kB / 306.9 MB, free: 0.6641 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08378/0.08491, allocations: 50.54 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01493/0.09988, allocations: 13.02 MB / 370.5 MB, free: 1.047 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1552/0.2551, allocations: 11.53 MB / 382 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.2553, allocations: 1.031 kB / 382 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000284/0.2556, allocations: 72.55 kB / 382.1 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002378/0.2559, allocations: 79.62 kB / 382.2 MB, free: 7.484 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01323/0.2691, allocations: 5.081 MB / 387.2 MB, free: 6.125 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00029/0.2694, allocations: 233.8 kB / 387.5 MB, free: 6.059 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.108e-05/0.2695, allocations: 22.36 kB / 387.5 MB, free: 6.047 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003566/0.2698, allocations: 193.3 kB / 387.7 MB, free: 5.973 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.27, allocations: 70.98 kB / 387.7 MB, free: 5.957 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.204e-05/0.27, allocations: 7.219 kB / 387.8 MB, free: 5.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01161/0.2816, allocations: 6.836 MB / 394.6 MB, free: 2.703 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.638e-05/0.2817, allocations: 26.72 kB / 394.6 MB, free: 2.684 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.2818, allocations: 79.12 kB / 394.7 MB, free: 2.637 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006056/0.2879, allocations: 3.874 MB / 398.6 MB, free: 172 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2879, allocations: 1.719 kB / 398.6 MB, free: 172 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2879, allocations: 7.938 kB / 398.6 MB, free: 164 kB / 302.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.2879, allocations: 0 / 398.6 MB, free: 164 kB / 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.005134/0.2931, allocations: 1.142 MB / 399.7 MB, free: 15.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.2931, allocations: 9.219 kB / 399.7 MB, free: 15.36 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004982/0.2936, allocations: 55.42 kB / 399.8 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002426/0.2939, allocations: 220.2 kB / 400 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.674e-05/0.2939, allocations: 11 kB / 400 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.72e-05/0.294, allocations: 18.27 kB / 400 MB, free: 15.08 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.2952, allocations: 390 kB / 400.4 MB, free: 14.81 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.2953, allocations: 0 / 400.4 MB, free: 14.81 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.2953, allocations: 10.47 kB / 400.4 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.2953, allocations: 6.719 kB / 400.4 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001427/0.2968, allocations: 363.1 kB / 400.8 MB, free: 14.62 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.001313/0.2981, allocations: 1.182 MB / 402 MB, free: 13.45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008124/0.2989, allocations: 279.8 kB / 402.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002828/0.2992, allocations: 113.9 kB / 402.3 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1041/0.4033, allocations: 52.59 MB / 454.9 MB, free: 3.027 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.498e-05/0.4034, allocations: 34.56 kB / 455 MB, free: 2.984 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.264e-06/0.4034, allocations: 0 / 455 MB, free: 2.984 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.00707/0.4105, allocations: 1.58 MB / 456.5 MB, free: 1.348 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.286e-05/0.4105, allocations: 106.8 kB / 456.6 MB, free: 1.219 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.4106, allocations: 121.8 kB / 456.8 MB, free: 1.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.69e-05/0.4107, allocations: 37.7 kB / 456.8 MB, free: 1.047 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.253e-05/0.4107, allocations: 108.4 kB / 456.9 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.275e-05/0.4108, allocations: 114.4 kB / 457 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.411, allocations: 73.59 kB / 457.1 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.4111, allocations: 322.8 kB / 457.4 MB, free: 432 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004008/0.4115, allocations: 135.9 kB / 457.5 MB, free: 296 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004142/0.4119, allocations: 194.5 kB / 457.7 MB, free: 76 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008373/0.4128, allocations: 354.5 kB / 458.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.4128, allocations: 3.938 kB / 458.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001107/0.4139, allocations: 422 kB / 458.5 MB, free: 15.28 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.4139, allocations: 6.969 kB / 458.5 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.4139, allocations: 6.766 kB / 458.5 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000245/0.4142, allocations: 40.98 kB / 458.5 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004821/0.4147, allocations: 91.88 kB / 458.6 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003972/0.4151, allocations: 0.5561 MB / 459.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003182/0.4154, allocations: 15.98 kB / 459.2 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.806e-05/0.4155, allocations: 16.09 kB / 459.2 MB, free: 14.52 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.0001701/0.4156, allocations: 150.2 kB / 459.4 MB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.4158, allocations: 19.81 kB / 459.4 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002163/0.4179, allocations: 1.439 MB / 460.8 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.252e-05/0.418, allocations: 24.28 kB / 460.9 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.418, allocations: 0 / 460.9 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.418, allocations: 3.984 kB / 460.9 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003061/0.4211, allocations: 1.979 MB / 462.8 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.734e-06/0.4211, allocations: 3.938 kB / 462.8 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00045/0.4216, allocations: 87.8 kB / 462.9 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002999/0.4219, allocations: 76.83 kB / 463 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.586e-05/0.4219, allocations: 15.92 kB / 463 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003797/0.4223, allocations: 0.5837 MB / 463.6 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.087e-05/0.4223, allocations: 3.938 kB / 463.6 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002185/0.4245, allocations: 1.689 MB / 465.3 MB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.758e-05/0.4246, allocations: 124.5 kB / 465.4 MB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.865e-05/0.4247, allocations: 8 kB / 465.4 MB, free: 8.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003658/0.4251, allocations: 24.03 kB / 465.4 MB, free: 8.137 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.239e-05/0.4251, allocations: 39.83 kB / 465.5 MB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-05/0.4252, allocations: 15.98 kB / 465.5 MB, free: 8.082 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.086e-05/0.4252, allocations: 91.27 kB / 465.6 MB, free: 7.992 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4252, allocations: 0 / 465.6 MB, free: 7.992 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003299/0.4285, allocations: 0.9605 MB / 466.6 MB, free: 7.031 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.005368/0.4339, allocations: 1.149 MB / 467.7 MB, free: 5.871 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001501/0.4354, allocations: 0.6238 MB / 468.3 MB, free: 5.246 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4354, allocations: 448 / 468.3 MB, free: 5.246 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007869/0.4362, allocations: 0.5123 MB / 468.8 MB, free: 4.734 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007681/0.437, allocations: 80.45 kB / 468.9 MB, free: 4.656 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.4394, allocations: 1.298 MB / 470.2 MB, free: 3.316 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003811/0.4398, allocations: 0.8217 MB / 471 MB, free: 2.465 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000394/0.4402, allocations: 133.7 kB / 471.2 MB, free: 2.332 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.4403, allocations: 43.41 kB / 471.2 MB, free: 2.289 MB / 382.1 MB Notification: Performance of SimCode: time 2.8e-07/0.4403, allocations: 0 / 471.2 MB, free: 2.289 MB / 382.1 MB Notification: Performance of Templates: time 0.04956/0.4899, allocations: 36.38 MB / 0.4957 GB, free: 13.91 MB / 430.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