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.0008977/0.0008977, allocations: 91.52 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001079/0.001079, allocations: 202.5 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 227.7 MB / 246.8 MB, free: 9.703 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002012/0.0002012, allocations: 7.984 kB / 307.7 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08247/0.08269, allocations: 51.52 MB / 359.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.1674/0.2501, allocations: 13.33 MB / 372.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0125/0.2626, allocations: 12.28 MB / 384.8 MB, free: 7.203 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001446/0.2628, allocations: 1.719 kB / 384.8 MB, free: 7.203 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002989/0.2631, allocations: 66.72 kB / 384.9 MB, free: 7.172 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002762/0.2634, allocations: 73.98 kB / 385 MB, free: 7.133 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01343/0.2768, allocations: 4.015 MB / 389 MB, free: 6.051 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004001/0.2772, allocations: 269.9 kB / 389.3 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.729e-05/0.2773, allocations: 15.27 kB / 389.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003895/0.2777, allocations: 187.6 kB / 389.5 MB, free: 5.867 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.2778, allocations: 79.88 kB / 389.5 MB, free: 5.832 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.76e-05/0.2778, allocations: 4.406 kB / 389.5 MB, free: 5.832 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01267/0.2905, allocations: 6.908 MB / 396.4 MB, free: 2.727 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.475e-05/0.2906, allocations: 33.61 kB / 396.5 MB, free: 2.699 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001368/0.2908, allocations: 90.06 kB / 396.6 MB, free: 2.637 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007302/0.2981, allocations: 3.876 MB / 400.4 MB, free: 172 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2981, allocations: 0 / 400.4 MB, free: 172 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2981, allocations: 0 / 400.4 MB, free: 172 kB / 302.1 MB Notification: Performance of Transformations before backend: time 4.449e-06/0.2981, allocations: 0 / 400.4 MB, free: 172 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.004716/0.3028, allocations: 1.111 MB / 401.6 MB, free: 15.39 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.3029, allocations: 9.469 kB / 401.6 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000459/0.3034, allocations: 54.77 kB / 401.6 MB, free: 15.37 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002462/0.3036, allocations: 221.5 kB / 401.8 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.011e-05/0.3037, allocations: 9.812 kB / 401.8 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.228e-05/0.3037, allocations: 17.84 kB / 401.9 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.3049, allocations: 394.1 kB / 402.2 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.305, allocations: 6.719 kB / 402.3 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.429e-05/0.305, allocations: 4 kB / 402.3 MB, free: 14.83 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.305, allocations: 8.156 kB / 402.3 MB, free: 14.83 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001411/0.3064, allocations: 375.7 kB / 402.6 MB, free: 14.65 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.001317/0.3078, allocations: 1.182 MB / 403.8 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008236/0.3086, allocations: 298.7 kB / 404.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002751/0.3089, allocations: 116.9 kB / 404.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1036/0.4125, allocations: 53.01 MB / 457.2 MB, free: 2.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.892e-05/0.4126, allocations: 38.56 kB / 457.3 MB, free: 2.293 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.134e-06/0.4126, allocations: 3.938 kB / 457.3 MB, free: 2.289 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.007088/0.4197, allocations: 1.621 MB / 458.9 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.564e-05/0.4198, allocations: 110.9 kB / 459 MB, free: 496 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.4199, allocations: 117.8 kB / 459.1 MB, free: 368 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.698e-05/0.4199, allocations: 33.7 kB / 459.1 MB, free: 328 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.876e-05/0.42, allocations: 100.6 kB / 459.2 MB, free: 224 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.999e-05/0.4201, allocations: 118.3 kB / 459.4 MB, free: 104 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-05/0.4202, allocations: 37.7 kB / 459.4 MB, free: 60 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.4203, allocations: 322.8 kB / 459.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004139/0.4207, allocations: 139.9 kB / 459.9 MB, free: 15.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004359/0.4212, allocations: 210.5 kB / 460.1 MB, free: 15.37 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008319/0.422, allocations: 346.6 kB / 460.4 MB, free: 15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.422, allocations: 11.94 kB / 460.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001133/0.4232, allocations: 437.9 kB / 460.8 MB, free: 14.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.4232, allocations: 4 kB / 460.8 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.4232, allocations: 0 / 460.8 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002474/0.4234, allocations: 36.83 kB / 460.9 MB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004751/0.4239, allocations: 107.2 kB / 461 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003798/0.4243, allocations: 0.5523 MB / 461.5 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003109/0.4246, allocations: 32.02 kB / 461.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.916e-05/0.4247, allocations: 15.98 kB / 461.6 MB, free: 13.79 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.0001458/0.4249, allocations: 143.3 kB / 461.7 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.453e-05/0.425, allocations: 11.91 kB / 461.7 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002281/0.4272, allocations: 1.455 MB / 463.2 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.669e-05/0.4273, allocations: 35.84 kB / 463.2 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.4273, allocations: 0 / 463.2 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.4273, allocations: 7.984 kB / 463.2 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002954/0.4303, allocations: 1.986 MB / 465.2 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.4303, allocations: 0 / 465.2 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004533/0.4308, allocations: 83.86 kB / 465.3 MB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003588/0.4311, allocations: 76.91 kB / 465.4 MB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.809e-05/0.4312, allocations: 16.5 kB / 465.4 MB, free: 9.883 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003562/0.4315, allocations: 0.5835 MB / 466 MB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.4316, allocations: 11.95 kB / 466 MB, free: 9.262 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002243/0.4338, allocations: 1.7 MB / 467.7 MB, free: 7.531 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.626e-05/0.4339, allocations: 128.4 kB / 467.8 MB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.655e-05/0.434, allocations: 16.03 kB / 467.8 MB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003907/0.4344, allocations: 23.98 kB / 467.8 MB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.732e-05/0.4344, allocations: 35.89 kB / 467.9 MB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.298e-05/0.4345, allocations: 19.98 kB / 467.9 MB, free: 7.293 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.073e-05/0.4345, allocations: 87.28 kB / 468 MB, free: 7.207 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4345, allocations: 0 / 468 MB, free: 7.207 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00323/0.4378, allocations: 0.9644 MB / 468.9 MB, free: 6.242 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.005509/0.4433, allocations: 1.146 MB / 470.1 MB, free: 5.086 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001308/0.4446, allocations: 0.6085 MB / 470.7 MB, free: 4.477 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.4446, allocations: 0 / 470.7 MB, free: 4.477 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008669/0.4455, allocations: 0.5171 MB / 471.2 MB, free: 3.961 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008296/0.4464, allocations: 79.86 kB / 471.3 MB, free: 3.883 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00248/0.4488, allocations: 1.58 MB / 472.9 MB, free: 2.262 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000394/0.4492, allocations: 0.8139 MB / 473.7 MB, free: 1.418 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004332/0.4497, allocations: 146 kB / 473.8 MB, free: 1.273 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001422/0.4498, allocations: 39.41 kB / 473.9 MB, free: 1.234 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4499, allocations: 0 / 473.9 MB, free: 1.234 MB / 382.1 MB Notification: Performance of Templates: time 0.05245/0.5023, allocations: 35.94 MB / 0.4979 GB, free: 13.28 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