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.001104/0.001104, allocations: 115.9 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001108/0.001108, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 60.28 kB / 306.4 MB, free: 0.8828 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07839/0.07955, allocations: 50.54 MB / 357 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01459/0.09418, allocations: 13.15 MB / 370.1 MB, free: 1.141 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1518/0.2461, allocations: 11.61 MB / 381.7 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.626e-05/0.2462, allocations: 3.938 kB / 381.7 MB, free: 7.605 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003226/0.2465, allocations: 63.27 kB / 381.8 MB, free: 7.578 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002648/0.2468, allocations: 79.28 kB / 381.9 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0124/0.2593, allocations: 4.462 MB / 386.3 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003495/0.2596, allocations: 239.8 kB / 386.6 MB, free: 6.379 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.079e-05/0.2597, allocations: 19.97 kB / 386.6 MB, free: 6.371 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003998/0.2601, allocations: 190.2 kB / 386.8 MB, free: 6.301 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000114/0.2602, allocations: 69.92 kB / 386.8 MB, free: 6.285 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.967e-05/0.2602, allocations: 8.688 kB / 386.8 MB, free: 6.285 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01081/0.2711, allocations: 6.893 MB / 393.7 MB, free: 3.418 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.9e-05/0.2711, allocations: 30.92 kB / 393.8 MB, free: 3.395 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.06e-05/0.2712, allocations: 75.14 kB / 393.8 MB, free: 3.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006508/0.2777, allocations: 3.896 MB / 397.7 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2778, allocations: 0.9062 kB / 397.7 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2778, allocations: 0 / 397.7 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.2778, allocations: 0.9375 kB / 397.7 MB, free: 0.8633 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.00489/0.2827, allocations: 1.145 MB / 398.9 MB, free: 60 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.2827, allocations: 10.78 kB / 398.9 MB, free: 60 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004617/0.2832, allocations: 53.45 kB / 398.9 MB, free: 36 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002487/0.2835, allocations: 220.7 kB / 399.2 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.548e-05/0.2835, allocations: 9.875 kB / 399.2 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.006e-05/0.2835, allocations: 20.08 kB / 399.2 MB, free: 15.78 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.2848, allocations: 384.6 kB / 399.6 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.2849, allocations: 1.812 kB / 399.6 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.559e-05/0.2849, allocations: 5.938 kB / 399.6 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.2849, allocations: 3.875 kB / 399.6 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001374/0.2863, allocations: 357.7 kB / 399.9 MB, free: 15.33 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.001328/0.2876, allocations: 1.191 MB / 401.1 MB, free: 14.15 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000809/0.2884, allocations: 282.9 kB / 401.4 MB, free: 13.96 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002693/0.2887, allocations: 110 kB / 401.5 MB, free: 13.9 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09431/0.3831, allocations: 52.58 MB / 454.1 MB, free: 3.715 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.302e-05/0.3832, allocations: 34.5 kB / 454.1 MB, free: 3.672 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.843e-06/0.3832, allocations: 4 kB / 454.1 MB, free: 3.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.006857/0.39, allocations: 1.576 MB / 455.7 MB, free: 2.039 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/0.3901, allocations: 110.8 kB / 455.8 MB, free: 1.906 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.737e-05/0.3902, allocations: 113.8 kB / 455.9 MB, free: 1.785 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.954e-05/0.3903, allocations: 37.69 kB / 455.9 MB, free: 1.742 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.217e-05/0.3903, allocations: 108.4 kB / 456.1 MB, free: 1.633 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.931e-05/0.3904, allocations: 114.4 kB / 456.2 MB, free: 1.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/0.3906, allocations: 73.59 kB / 456.2 MB, free: 1.441 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.3907, allocations: 326.8 kB / 456.6 MB, free: 1.113 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003887/0.3911, allocations: 136.8 kB / 456.7 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004233/0.3915, allocations: 202.5 kB / 456.9 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007957/0.3923, allocations: 346.6 kB / 457.2 MB, free: 404 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.3923, allocations: 3.938 kB / 457.2 MB, free: 400 kB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001057/0.3934, allocations: 422 kB / 457.6 MB, free: 15.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.3934, allocations: 4 kB / 457.6 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.3934, allocations: 8.219 kB / 457.7 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002293/0.3937, allocations: 32.83 kB / 457.7 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004721/0.3942, allocations: 97.56 kB / 457.8 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003501/0.3945, allocations: 0.5562 MB / 458.3 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002971/0.3948, allocations: 24.08 kB / 458.4 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.552e-05/0.3949, allocations: 12 kB / 458.4 MB, free: 15.21 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.0001466/0.395, allocations: 143.3 kB / 458.5 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.3951, allocations: 19.81 kB / 458.5 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002129/0.3973, allocations: 1.439 MB / 460 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.416e-05/0.3973, allocations: 28.28 kB / 460 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.3973, allocations: 4.781 kB / 460 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.3973, allocations: 3.984 kB / 460 MB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002927/0.4003, allocations: 1.971 MB / 462 MB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.4003, allocations: 3.938 kB / 462 MB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004522/0.4007, allocations: 83.98 kB / 462.1 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000316/0.4011, allocations: 72.7 kB / 462.1 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.721e-05/0.4011, allocations: 19.92 kB / 462.2 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003492/0.4015, allocations: 0.5875 MB / 462.7 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.4015, allocations: 3.938 kB / 462.7 MB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002168/0.4037, allocations: 1.695 MB / 464.4 MB, free: 9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.019e-05/0.4038, allocations: 120.5 kB / 464.6 MB, free: 8.863 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.832e-05/0.4038, allocations: 12 kB / 464.6 MB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003807/0.4042, allocations: 23.94 kB / 464.6 MB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.51e-05/0.4043, allocations: 35.89 kB / 464.6 MB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.55e-05/0.4043, allocations: 19.98 kB / 464.6 MB, free: 8.773 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.993e-05/0.4044, allocations: 91.27 kB / 464.7 MB, free: 8.684 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4044, allocations: 0 / 464.7 MB, free: 8.684 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003324/0.4077, allocations: 0.9643 MB / 465.7 MB, free: 7.719 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.004145/0.4119, allocations: 1.144 MB / 466.8 MB, free: 6.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001508/0.4134, allocations: 0.6319 MB / 467.5 MB, free: 5.938 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4134, allocations: 0 / 467.5 MB, free: 5.938 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000777/0.4142, allocations: 0.5167 MB / 468 MB, free: 5.422 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007367/0.4149, allocations: 75.41 kB / 468.1 MB, free: 5.352 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002352/0.4173, allocations: 1.492 MB / 469.6 MB, free: 3.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000353/0.4177, allocations: 0.8178 MB / 470.4 MB, free: 2.973 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003934/0.4181, allocations: 137.1 kB / 470.5 MB, free: 2.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001289/0.4182, allocations: 39.41 kB / 470.5 MB, free: 2.801 MB / 382.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4182, allocations: 0 / 470.5 MB, free: 2.801 MB / 382.1 MB Notification: Performance of Templates: time 0.0452/0.4634, allocations: 36.31 MB / 0.495 GB, free: 14.48 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