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.001457/0.001457, allocations: 105.1 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001746/0.001746, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 246.3 MB, free: 9.074 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 64.14 kB / 306.2 MB, free: 0.8594 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08755/0.08867, allocations: 50.54 MB / 356.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01499/0.1037, allocations: 13.84 MB / 370.6 MB, free: 444 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1624/0.2662, allocations: 12.48 MB / 383.1 MB, free: 7.133 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.2663, allocations: 1.25 kB / 383.1 MB, free: 7.133 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.2667, allocations: 67.61 kB / 383.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002537/0.267, allocations: 74.92 kB / 383.2 MB, free: 7.062 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01216/0.2792, allocations: 4.021 MB / 387.3 MB, free: 5.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003702/0.2795, allocations: 280.4 kB / 387.5 MB, free: 5.703 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.826e-05/0.2796, allocations: 11.88 kB / 387.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003704/0.28, allocations: 182.3 kB / 387.7 MB, free: 5.621 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001091/0.2801, allocations: 72.28 kB / 387.8 MB, free: 5.594 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.11e-05/0.2801, allocations: 4.812 kB / 387.8 MB, free: 5.594 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01337/0.2935, allocations: 6.917 MB / 394.7 MB, free: 2.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.586e-05/0.2936, allocations: 26.56 kB / 394.7 MB, free: 2.559 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001675/0.2938, allocations: 64.7 kB / 394.8 MB, free: 2.527 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008388/0.3022, allocations: 3.898 MB / 398.7 MB, free: 36 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3022, allocations: 1.156 kB / 398.7 MB, free: 36 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3022, allocations: 0 / 398.7 MB, free: 36 kB / 302.1 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.3023, allocations: 4 kB / 398.7 MB, free: 32 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.005479/0.3077, allocations: 1.139 MB / 399.8 MB, free: 15.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.3078, allocations: 8.625 kB / 399.9 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004932/0.3083, allocations: 55.89 kB / 399.9 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002365/0.3085, allocations: 214.5 kB / 400.1 MB, free: 14.97 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.824e-05/0.3086, allocations: 13 kB / 400.1 MB, free: 14.97 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.921e-05/0.3086, allocations: 20.62 kB / 400.2 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.3099, allocations: 383.3 kB / 400.5 MB, free: 14.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.31, allocations: 11.92 kB / 400.5 MB, free: 14.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.489e-05/0.31, allocations: 6.625 kB / 400.5 MB, free: 14.67 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.31, allocations: 7.031 kB / 400.6 MB, free: 14.67 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/0.3114, allocations: 355.3 kB / 400.9 MB, free: 14.5 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.001322/0.3128, allocations: 1.184 MB / 402.1 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008312/0.3136, allocations: 276.5 kB / 402.4 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002832/0.3139, allocations: 115.2 kB / 402.5 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09743/0.4114, allocations: 52.58 MB / 455.1 MB, free: 2.887 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.971e-05/0.4114, allocations: 42.5 kB / 455.1 MB, free: 2.836 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.923e-06/0.4114, allocations: 0 / 455.1 MB, free: 2.836 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.006922/0.4184, allocations: 1.578 MB / 456.7 MB, free: 1.207 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.4184, allocations: 110.8 kB / 456.8 MB, free: 1.074 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.027e-05/0.4185, allocations: 117.8 kB / 456.9 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.4186, allocations: 29.7 kB / 456.9 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.44e-05/0.4186, allocations: 108.4 kB / 457 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.161e-05/0.4187, allocations: 118.4 kB / 457.1 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.4189, allocations: 77.53 kB / 457.2 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.565e-05/0.419, allocations: 322.8 kB / 457.5 MB, free: 288 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003934/0.4194, allocations: 135.9 kB / 457.7 MB, free: 152 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004372/0.4198, allocations: 202.5 kB / 457.9 MB, free: 15.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008092/0.4206, allocations: 346.5 kB / 458.2 MB, free: 15.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.4207, allocations: 11.94 kB / 458.2 MB, free: 15.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001087/0.4218, allocations: 418.5 kB / 458.6 MB, free: 15.13 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.4218, allocations: 8 kB / 458.6 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.4218, allocations: 0 / 458.6 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002386/0.422, allocations: 36.83 kB / 458.7 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004909/0.4225, allocations: 87.88 kB / 458.8 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003641/0.4229, allocations: 0.5494 MB / 459.3 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003223/0.4233, allocations: 28 kB / 459.3 MB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.756e-05/0.4233, allocations: 12 kB / 459.3 MB, free: 14.39 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.0001485/0.4235, allocations: 147.2 kB / 459.5 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.4236, allocations: 23.89 kB / 459.5 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002077/0.4257, allocations: 1.442 MB / 461 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.192e-05/0.4257, allocations: 23.91 kB / 461 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.4257, allocations: 0 / 461 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.4257, allocations: 3.984 kB / 461 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002901/0.4286, allocations: 1.975 MB / 463 MB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.4286, allocations: 4.125 kB / 463 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004562/0.4291, allocations: 83.86 kB / 463 MB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003177/0.4294, allocations: 69.08 kB / 463.1 MB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.914e-05/0.4295, allocations: 15.98 kB / 463.1 MB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000338/0.4298, allocations: 0.5875 MB / 463.7 MB, free: 9.902 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.4299, allocations: 7.969 kB / 463.7 MB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002204/0.4321, allocations: 1.689 MB / 465.4 MB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.934e-05/0.4322, allocations: 132.4 kB / 465.5 MB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.893e-05/0.4322, allocations: 8 kB / 465.5 MB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003923/0.4326, allocations: 19.98 kB / 465.6 MB, free: 7.996 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.147e-05/0.4327, allocations: 39.89 kB / 465.6 MB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.353e-05/0.4327, allocations: 15.98 kB / 465.6 MB, free: 7.941 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.49e-05/0.4328, allocations: 91.27 kB / 465.7 MB, free: 7.852 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4328, allocations: 3.938 kB / 465.7 MB, free: 7.848 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003433/0.4362, allocations: 0.9605 MB / 466.7 MB, free: 6.887 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.005871/0.4421, allocations: 1.149 MB / 467.8 MB, free: 5.727 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001486/0.4436, allocations: 0.6082 MB / 468.4 MB, free: 5.117 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.768e-06/0.4436, allocations: 0 / 468.4 MB, free: 5.117 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008189/0.4445, allocations: 0.5247 MB / 469 MB, free: 4.594 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007747/0.4453, allocations: 75.92 kB / 469 MB, free: 4.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/0.4477, allocations: 1.491 MB / 470.5 MB, free: 2.988 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00033/0.4481, allocations: 0.8178 MB / 471.3 MB, free: 2.141 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003972/0.4485, allocations: 137.7 kB / 471.5 MB, free: 2.004 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001397/0.4486, allocations: 35.42 kB / 471.5 MB, free: 1.969 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.4486, allocations: 0 / 471.5 MB, free: 1.969 MB / 382.1 MB Notification: Performance of Templates: time 0.04811/0.4967, allocations: 36 MB / 0.4956 GB, free: 13.96 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