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.0008107/0.0008108, allocations: 96.36 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008475/0.0008475, allocations: 191.1 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.7 MB / 246.4 MB, free: 9.832 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002354/0.0002355, allocations: 4 kB / 307.1 MB, free: 0.9961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08922/0.08948, allocations: 51.53 MB / 358.6 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01259/0.1021, allocations: 12.06 MB / 370.7 MB, free: 1.371 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1689/0.2711, allocations: 10.71 MB / 381.4 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.2712, allocations: 0 / 381.4 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002668/0.2715, allocations: 64.8 kB / 381.4 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002455/0.2718, allocations: 74.67 kB / 381.5 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01215/0.2839, allocations: 3.881 MB / 385.4 MB, free: 7.891 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004059/0.2843, allocations: 242.2 kB / 385.6 MB, free: 7.789 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.112e-05/0.2844, allocations: 8.5 kB / 385.6 MB, free: 7.785 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004392/0.2848, allocations: 176.5 kB / 385.8 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.285, allocations: 71.05 kB / 385.9 MB, free: 7.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.96e-05/0.285, allocations: 5.625 kB / 385.9 MB, free: 7.719 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01423/0.2993, allocations: 6.658 MB / 392.5 MB, free: 5.188 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.672e-05/0.2994, allocations: 27.84 kB / 392.6 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.143e-05/0.2995, allocations: 50.95 kB / 392.6 MB, free: 5.129 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004961/0.3045, allocations: 2.583 MB / 395.2 MB, free: 3.672 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3045, allocations: 0 / 395.2 MB, free: 3.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3045, allocations: 0 / 395.2 MB, free: 3.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.3045, allocations: 0 / 395.2 MB, free: 3.672 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.004859/0.3094, allocations: 1.112 MB / 396.3 MB, free: 2.887 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.3094, allocations: 9.844 kB / 396.3 MB, free: 2.887 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004717/0.3099, allocations: 57.17 kB / 396.4 MB, free: 2.863 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002098/0.3101, allocations: 219.6 kB / 396.6 MB, free: 2.621 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.707e-05/0.3101, allocations: 9.406 kB / 396.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.283e-05/0.3102, allocations: 18.38 kB / 396.6 MB, free: 2.609 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.3113, allocations: 383.5 kB / 397 MB, free: 2.348 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.3113, allocations: 4 kB / 397 MB, free: 2.344 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.378e-05/0.3114, allocations: 10.5 kB / 397 MB, free: 2.336 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.3114, allocations: 3.656 kB / 397 MB, free: 2.336 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001231/0.3126, allocations: 370.4 kB / 397.4 MB, free: 2.164 MB / 302.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.001106/0.3137, allocations: 1.199 MB / 398.6 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000757/0.3145, allocations: 288.2 kB / 398.9 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002412/0.3148, allocations: 120.8 kB / 399 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08906/0.4038, allocations: 53.01 MB / 452 MB, free: 7.191 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.321e-05/0.4039, allocations: 42.75 kB / 452 MB, free: 7.141 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.874e-06/0.4039, allocations: 0 / 452 MB, free: 7.141 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.006298/0.4102, allocations: 1.618 MB / 453.6 MB, free: 5.469 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.194e-05/0.4103, allocations: 110.8 kB / 453.8 MB, free: 5.336 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.023e-05/0.4104, allocations: 117.8 kB / 453.9 MB, free: 5.211 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.193e-05/0.4104, allocations: 29.7 kB / 453.9 MB, free: 5.176 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.407e-05/0.4105, allocations: 104.5 kB / 454 MB, free: 5.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.588e-05/0.4106, allocations: 122.3 kB / 454.1 MB, free: 4.949 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-05/0.4106, allocations: 4 kB / 454.1 MB, free: 4.945 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.79e-05/0.4107, allocations: 330.8 kB / 454.5 MB, free: 4.613 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000354/0.4111, allocations: 135.9 kB / 454.6 MB, free: 4.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003747/0.4115, allocations: 202.8 kB / 454.8 MB, free: 4.258 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003736/0.4118, allocations: 160.3 kB / 454.9 MB, free: 4.102 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.4119, allocations: 0 / 454.9 MB, free: 4.102 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000982/0.4128, allocations: 434.2 kB / 455.4 MB, free: 3.668 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.4129, allocations: 11.95 kB / 455.4 MB, free: 3.656 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.4129, allocations: 7.938 kB / 455.4 MB, free: 3.648 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002241/0.4131, allocations: 36.83 kB / 455.4 MB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004522/0.4136, allocations: 95.86 kB / 455.5 MB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003281/0.4139, allocations: 0.5446 MB / 456.1 MB, free: 2.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002746/0.4142, allocations: 27.77 kB / 456.1 MB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.156e-05/0.4143, allocations: 19.98 kB / 456.1 MB, free: 2.902 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000134/0.4144, allocations: 147.5 kB / 456.2 MB, free: 2.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.428e-05/0.4145, allocations: 15.81 kB / 456.3 MB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002033/0.4165, allocations: 1.455 MB / 457.7 MB, free: 1.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.378e-05/0.4166, allocations: 23.95 kB / 457.7 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.4166, allocations: 4 kB / 457.7 MB, free: 1.242 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.4166, allocations: 0 / 457.7 MB, free: 1.242 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00275/0.4193, allocations: 1.979 MB / 459.7 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.4194, allocations: 0 / 459.7 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004231/0.4198, allocations: 91.98 kB / 459.8 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003238/0.4201, allocations: 72.78 kB / 459.9 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.828e-05/0.4202, allocations: 23.94 kB / 459.9 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003184/0.4205, allocations: 0.5835 MB / 460.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.4205, allocations: 4.031 kB / 460.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002082/0.4226, allocations: 1.697 MB / 462.2 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.752e-05/0.4227, allocations: 124.5 kB / 462.3 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.778e-05/0.4228, allocations: 16 kB / 462.3 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003548/0.4231, allocations: 25.86 kB / 462.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.027e-05/0.4232, allocations: 27.95 kB / 462.4 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.25e-05/0.4232, allocations: 19.98 kB / 462.4 MB, free: 12.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.951e-05/0.4233, allocations: 91.27 kB / 462.5 MB, free: 12.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.442e-06/0.4233, allocations: 0 / 462.5 MB, free: 12.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003234/0.4265, allocations: 0.9643 MB / 463.5 MB, free: 11.38 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005461/0.432, allocations: 1.143 MB / 464.6 MB, free: 10.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001123/0.4331, allocations: 0.6089 MB / 465.2 MB, free: 9.617 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.4331, allocations: 0 / 465.2 MB, free: 9.617 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007872/0.4339, allocations: 0.5128 MB / 465.7 MB, free: 9.105 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007335/0.4347, allocations: 83.81 kB / 465.8 MB, free: 9.023 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002368/0.4371, allocations: 1.561 MB / 467.4 MB, free: 7.422 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003378/0.4374, allocations: 0.8178 MB / 468.2 MB, free: 6.574 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004198/0.4378, allocations: 149.1 kB / 468.3 MB, free: 6.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.438, allocations: 35.41 kB / 468.4 MB, free: 6.395 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.438, allocations: 0 / 468.4 MB, free: 6.395 MB / 382.1 MB Notification: Performance of Templates: time 0.05095/0.4889, allocations: 36.37 MB / 0.4929 GB, free: 2.012 MB / 414.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