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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.00122/0.00122, allocations: 199.2 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009055/0.0009056, allocations: 94.5 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.85e-05/1.91e-05, allocations: 4 kB / 343.7 MB, free: 8.328 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1115, allocations: 51.49 MB / 395.2 MB, free: 4.801 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.05/8.161, allocations: 2.787 GB / 3.173 GB, free: 77.8 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003172/8.162, allocations: 62.98 kB / 3.173 GB, free: 77.78 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6649/8.826, allocations: 106.4 MB / 3.277 GB, free: 77.12 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.583e-06/8.826, allocations: 0 / 3.277 GB, free: 77.12 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.868e-05/8.827, allocations: 3.219 kB / 3.277 GB, free: 77.12 MB / 458.7 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.006964/8.833, allocations: 1.153 MB / 3.278 GB, free: 76.59 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/8.834, allocations: 11.06 kB / 3.278 GB, free: 76.59 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005452/8.834, allocations: 57.67 kB / 3.278 GB, free: 76.58 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/8.834, allocations: 225 kB / 3.278 GB, free: 76.39 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.268e-05/8.834, allocations: 3.188 kB / 3.278 GB, free: 76.39 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.363e-05/8.835, allocations: 11.75 kB / 3.278 GB, free: 76.39 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000417/8.835, allocations: 206.7 kB / 3.279 GB, free: 76.39 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002993/8.835, allocations: 200.5 kB / 3.279 GB, free: 76.29 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/8.835, allocations: 4.438 kB / 3.279 GB, free: 76.29 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/8.835, allocations: 3.609 kB / 3.279 GB, free: 76.29 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.138e-06/8.835, allocations: 3.156 kB / 3.279 GB, free: 76.29 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or 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.001279/8.837, allocations: 1.146 MB / 3.28 GB, free: 75.34 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002314/8.837, allocations: 167.8 kB / 3.28 GB, free: 75.27 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/8.837, allocations: 93.83 kB / 3.28 GB, free: 75.24 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1081/8.945, allocations: 52.48 MB / 3.331 GB, free: 40.7 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.551e-05/8.945, allocations: 43.22 kB / 3.331 GB, free: 40.65 MB / 458.7 MB Notification: Performance of pre-optimization done (n=23): time 2.986e-06/8.945, allocations: 1.125 kB / 3.331 GB, free: 40.65 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.006609/8.952, allocations: 1.225 MB / 3.333 GB, free: 40.34 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.879e-05/8.952, allocations: 115.2 kB / 3.333 GB, free: 40.21 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/8.952, allocations: 111.7 kB / 3.333 GB, free: 40.12 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.886e-05/8.952, allocations: 25.7 kB / 3.333 GB, free: 40.09 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.383e-05/8.952, allocations: 109.2 kB / 3.333 GB, free: 39.99 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/8.952, allocations: 112.1 kB / 3.333 GB, free: 39.92 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.184e-05/8.952, allocations: 0 / 3.333 GB, free: 39.92 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/8.953, allocations: 324.8 kB / 3.333 GB, free: 39.61 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/8.953, allocations: 98.12 kB / 3.333 GB, free: 39.61 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000265/8.953, allocations: 162.8 kB / 3.334 GB, free: 39.54 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008565/8.954, allocations: 174.9 kB / 3.334 GB, free: 39.53 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/8.954, allocations: 4 kB / 3.334 GB, free: 39.53 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00133/8.955, allocations: 391.7 kB / 3.334 GB, free: 39.48 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/8.955, allocations: 5.562 kB / 3.334 GB, free: 39.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/8.955, allocations: 5.641 kB / 3.334 GB, free: 39.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002229/8.956, allocations: 37.45 kB / 3.334 GB, free: 39.47 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005351/8.956, allocations: 92.97 kB / 3.334 GB, free: 39.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004474/8.957, allocations: 0.5567 MB / 3.335 GB, free: 38.94 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003613/8.957, allocations: 24.25 kB / 3.335 GB, free: 38.94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.731e-05/8.957, allocations: 13.62 kB / 3.335 GB, free: 38.94 MB / 458.7 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 () * 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.0001655/8.957, allocations: 122.3 kB / 3.335 GB, free: 38.83 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/8.957, allocations: 19.73 kB / 3.335 GB, free: 38.82 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002689/8.96, allocations: 1.403 MB / 3.336 GB, free: 38.64 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-05/8.96, allocations: 29.88 kB / 3.336 GB, free: 38.63 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.395e-05/8.96, allocations: 1.562 kB / 3.336 GB, free: 38.63 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.652e-05/8.96, allocations: 3.938 kB / 3.336 GB, free: 38.63 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004004/8.964, allocations: 1.875 MB / 3.338 GB, free: 38.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/8.964, allocations: 1.156 kB / 3.338 GB, free: 38.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005223/8.965, allocations: 86.75 kB / 3.338 GB, free: 38.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002785/8.965, allocations: 64.5 kB / 3.338 GB, free: 38.23 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.387e-05/8.965, allocations: 12.55 kB / 3.338 GB, free: 38.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004652/8.966, allocations: 0.612 MB / 3.339 GB, free: 37.71 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/8.966, allocations: 2.188 kB / 3.339 GB, free: 37.71 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00265/8.968, allocations: 1.659 MB / 3.341 GB, free: 37.22 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001964/8.968, allocations: 129.1 kB / 3.341 GB, free: 37.09 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.601e-05/8.969, allocations: 8.016 kB / 3.341 GB, free: 37.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004484/8.969, allocations: 29.36 kB / 3.341 GB, free: 37.08 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/8.969, allocations: 37.16 kB / 3.341 GB, free: 37.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.233e-05/8.969, allocations: 14.86 kB / 3.341 GB, free: 37.07 MB / 458.7 MB Notification: Performance of sorting global known variables: time 7.111e-05/8.969, allocations: 93.67 kB / 3.341 GB, free: 37 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/8.969, allocations: 0 / 3.341 GB, free: 37 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008608/8.978, allocations: 0.9586 MB / 3.342 GB, free: 36.84 MB / 458.7 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 () * 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.01245/8.99, allocations: 1.264 MB / 3.343 GB, free: 36.55 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001568/8.992, allocations: 0.5373 MB / 3.344 GB, free: 36.54 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/8.992, allocations: 0 / 3.344 GB, free: 36.54 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009269/8.993, allocations: 484.9 kB / 3.344 GB, free: 36.53 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009524/8.994, allocations: 66.16 kB / 3.344 GB, free: 36.52 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002433/8.996, allocations: 1.033 MB / 3.345 GB, free: 36.18 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/8.997, allocations: 0.8305 MB / 3.346 GB, free: 35.48 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0004963/8.997, allocations: 142.2 kB / 3.346 GB, free: 35.45 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/8.998, allocations: 37.81 kB / 3.346 GB, free: 35.45 MB / 458.7 MB Notification: Performance of SimCode: time 8.12e-07/8.998, allocations: 0 / 3.346 GB, free: 35.45 MB / 458.7 MB Notification: Performance of Templates: time 0.04811/9.046, allocations: 25.31 MB / 3.371 GB, free: 33.85 MB / 458.7 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","../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches