Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 105.8 kB / 16.5 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001108, allocations: 190.6 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.279/1.279, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001015/0.001015, allocations: 46.33 kB / 299.9 MB, free: 6.316 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08501/0.08604, allocations: 49.45 MB / 349.4 MB, free: 4.859 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01481/0.1009, allocations: 13.72 MB / 363.1 MB, free: 7.078 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1526/0.2535, allocations: 12.48 MB / 375.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.267e-05/0.2536, allocations: 1.812 kB / 375.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002876/0.2539, allocations: 69.11 kB / 375.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002233/0.2542, allocations: 81.09 kB / 375.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01084/0.265, allocations: 4.011 MB / 379.7 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003446/0.2654, allocations: 268.7 kB / 380 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.936e-05/0.2654, allocations: 9.469 kB / 380 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003795/0.2658, allocations: 186 kB / 380.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.2659, allocations: 73.81 kB / 380.3 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.175e-05/0.266, allocations: 5.188 kB / 380.3 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01217/0.2781, allocations: 6.908 MB / 387.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.015e-05/0.2782, allocations: 28.72 kB / 387.2 MB, free: 8.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.2784, allocations: 76.09 kB / 387.3 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008121/0.2865, allocations: 3.883 MB / 391.2 MB, free: 5.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.2866, allocations: 0 / 391.2 MB, free: 5.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2866, allocations: 1.375 kB / 391.2 MB, free: 5.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.2866, allocations: 0 / 391.2 MB, free: 5.75 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.00487/0.2915, allocations: 1.147 MB / 392.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.2915, allocations: 10.25 kB / 392.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004599/0.292, allocations: 49.58 kB / 392.4 MB, free: 4.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001802/0.2922, allocations: 220.5 kB / 392.6 MB, free: 4.688 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.2922, allocations: 13.88 kB / 392.6 MB, free: 4.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.451e-05/0.2922, allocations: 18.09 kB / 392.6 MB, free: 4.672 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/0.2934, allocations: 386.9 kB / 393 MB, free: 4.398 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.2935, allocations: 1.375 kB / 393 MB, free: 4.398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/0.2935, allocations: 9.375 kB / 393 MB, free: 4.391 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.2935, allocations: 4.125 kB / 393 MB, free: 4.391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001375/0.2949, allocations: 357.9 kB / 393.4 MB, free: 4.219 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.00117/0.2961, allocations: 1.187 MB / 394.5 MB, free: 3.047 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008076/0.2969, allocations: 275.7 kB / 394.8 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002566/0.2972, allocations: 110.4 kB / 394.9 MB, free: 2.805 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09003/0.3872, allocations: 47.46 MB / 442.4 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.3873, allocations: 34.56 kB / 442.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.893e-06/0.3873, allocations: 0 / 442.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.007012/0.3943, allocations: 1.572 MB / 444 MB, free: 14.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.556e-05/0.3944, allocations: 114.7 kB / 444.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.376e-05/0.3945, allocations: 117.8 kB / 444.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.619e-05/0.3945, allocations: 37.77 kB / 444.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.939e-05/0.3946, allocations: 109.5 kB / 444.4 MB, free: 13.92 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.219e-05/0.3947, allocations: 118.2 kB / 444.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.3948, allocations: 65.69 kB / 444.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.395, allocations: 326.8 kB / 444.9 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003949/0.3954, allocations: 131.9 kB / 445 MB, free: 13.28 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004207/0.3958, allocations: 190.8 kB / 445.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008052/0.3966, allocations: 352.6 kB / 445.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.3966, allocations: 5.875 kB / 445.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001102/0.3977, allocations: 429.9 kB / 445.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.3978, allocations: 4 kB / 445.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.3978, allocations: 4 kB / 445.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002325/0.398, allocations: 32.84 kB / 446 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004883/0.3985, allocations: 100 kB / 446.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003664/0.3989, allocations: 0.5521 MB / 446.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000326/0.3992, allocations: 19.98 kB / 446.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.833e-05/0.3993, allocations: 15.98 kB / 446.7 MB, free: 11.52 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 (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.000143/0.3994, allocations: 141.9 kB / 446.8 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.3995, allocations: 15.81 kB / 446.8 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002163/0.4017, allocations: 1.453 MB / 448.3 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.47e-05/0.4017, allocations: 23.91 kB / 448.3 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.4018, allocations: 1.172 kB / 448.3 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.4018, allocations: 4 kB / 448.3 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002919/0.4047, allocations: 1.982 MB / 450.3 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.4047, allocations: 3.984 kB / 450.3 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004649/0.4052, allocations: 83.88 kB / 450.4 MB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003171/0.4055, allocations: 80.75 kB / 450.4 MB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.528e-05/0.4056, allocations: 8 kB / 450.5 MB, free: 7.645 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003554/0.4059, allocations: 0.5798 MB / 451 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.4059, allocations: 3.938 kB / 451 MB, free: 7.035 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002186/0.4081, allocations: 1.693 MB / 452.7 MB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.766e-05/0.4082, allocations: 124.5 kB / 452.9 MB, free: 5.172 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.226e-05/0.4083, allocations: 16.03 kB / 452.9 MB, free: 5.156 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003959/0.4087, allocations: 20.36 kB / 452.9 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.802e-05/0.4088, allocations: 42.97 kB / 452.9 MB, free: 5.098 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.518e-05/0.4088, allocations: 19.98 kB / 453 MB, free: 5.078 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.947e-05/0.4089, allocations: 91.22 kB / 453 MB, free: 4.988 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4089, allocations: 0 / 453 MB, free: 4.988 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002992/0.4119, allocations: 0.9565 MB / 454 MB, free: 4.031 MB / 366.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.004904/0.4168, allocations: 1.138 MB / 455.1 MB, free: 2.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001375/0.4182, allocations: 0.616 MB / 455.8 MB, free: 2.363 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.4182, allocations: 448 / 455.8 MB, free: 2.363 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007774/0.419, allocations: 0.5084 MB / 456.3 MB, free: 1.855 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007868/0.4198, allocations: 76.3 kB / 456.3 MB, free: 1.781 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00235/0.4221, allocations: 1.489 MB / 457.8 MB, free: 264 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003595/0.4225, allocations: 0.8177 MB / 458.6 MB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003853/0.4229, allocations: 141.7 kB / 458.8 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/0.4231, allocations: 35.41 kB / 458.8 MB, free: 15.23 MB / 382.1 MB Notification: Performance of SimCode: time 4.1e-07/0.4231, allocations: 0 / 458.8 MB, free: 15.23 MB / 382.1 MB Notification: Performance of Templates: time 0.0459/0.469, allocations: 35.94 MB / 494.8 MB, free: 11.31 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_4.0.0_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches