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.001345/0.001345, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.00171/0.00171, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.381/1.381, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 50.14 kB / 301.3 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09976/0.1009, allocations: 49.44 MB / 350.7 MB, free: 4.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01584/0.1168, allocations: 12.9 MB / 363.6 MB, free: 7.484 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1812/0.298, allocations: 11.54 MB / 375.2 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.2982, allocations: 1.469 kB / 375.2 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003272/0.2985, allocations: 77.86 kB / 375.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002902/0.2989, allocations: 79.47 kB / 375.3 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01352/0.3124, allocations: 5.08 MB / 380.4 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003545/0.3128, allocations: 227.3 kB / 380.6 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.73e-05/0.3128, allocations: 9.234 kB / 380.6 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004228/0.3133, allocations: 194.9 kB / 380.8 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001351/0.3134, allocations: 71.53 kB / 380.9 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.216e-05/0.3134, allocations: 7.688 kB / 380.9 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01341/0.3268, allocations: 6.83 MB / 387.7 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.783e-05/0.327, allocations: 26.34 kB / 387.7 MB, free: 7.359 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.3271, allocations: 70.66 kB / 387.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00943/0.3366, allocations: 3.879 MB / 391.7 MB, free: 5.027 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.3366, allocations: 0 / 391.7 MB, free: 5.027 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3366, allocations: 2.125 kB / 391.7 MB, free: 5.027 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.315e-06/0.3366, allocations: 0 / 391.7 MB, free: 5.027 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.005389/0.342, allocations: 1.14 MB / 392.8 MB, free: 4.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.3421, allocations: 12.14 kB / 392.8 MB, free: 4.227 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004867/0.3426, allocations: 54.7 kB / 392.9 MB, free: 4.203 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002135/0.3428, allocations: 217.1 kB / 393.1 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.163e-05/0.3429, allocations: 14.02 kB / 393.1 MB, free: 3.957 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.289e-05/0.3429, allocations: 19.25 kB / 393.1 MB, free: 3.949 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.3441, allocations: 389.2 kB / 393.5 MB, free: 3.672 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.3441, allocations: 1.375 kB / 393.5 MB, free: 3.672 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.579e-05/0.3442, allocations: 6.75 kB / 393.5 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.3442, allocations: 4.125 kB / 393.5 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.3456, allocations: 361 kB / 393.9 MB, free: 3.492 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.001127/0.3467, allocations: 1.185 MB / 395.1 MB, free: 2.324 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007923/0.3475, allocations: 283.8 kB / 395.4 MB, free: 2.141 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002661/0.3478, allocations: 110.4 kB / 395.5 MB, free: 2.074 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1026/0.4504, allocations: 47.46 MB / 442.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.686e-05/0.4505, allocations: 34.56 kB / 443 MB, free: 15.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.645e-06/0.4505, allocations: 0 / 443 MB, free: 15.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.00754/0.458, allocations: 1.575 MB / 444.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.087e-05/0.4582, allocations: 110.8 kB / 444.6 MB, free: 13.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/0.4583, allocations: 121.8 kB / 444.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.865e-05/0.4583, allocations: 29.7 kB / 444.8 MB, free: 13.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.976e-05/0.4584, allocations: 111.1 kB / 444.9 MB, free: 13.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.4585, allocations: 118.3 kB / 445 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001326/0.4587, allocations: 69.59 kB / 445.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.4588, allocations: 326.8 kB / 445.4 MB, free: 12.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004166/0.4592, allocations: 136.8 kB / 445.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004574/0.4597, allocations: 194.6 kB / 445.7 MB, free: 12.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008779/0.4606, allocations: 354.5 kB / 446.1 MB, free: 12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.4606, allocations: 3.938 kB / 446.1 MB, free: 12 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001194/0.4618, allocations: 426 kB / 446.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.4618, allocations: 8 kB / 446.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.4618, allocations: 0 / 446.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002724/0.4621, allocations: 37.58 kB / 446.5 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000507/0.4626, allocations: 91.81 kB / 446.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004751/0.4631, allocations: 0.5561 MB / 447.2 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003185/0.4635, allocations: 24.11 kB / 447.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.95e-05/0.4635, allocations: 19.98 kB / 447.2 MB, free: 10.82 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.0001888/0.4637, allocations: 135.1 kB / 447.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.4638, allocations: 15.91 kB / 447.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002543/0.4664, allocations: 1.439 MB / 448.8 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.343e-05/0.4664, allocations: 35.83 kB / 448.8 MB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.4665, allocations: 0 / 448.8 MB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.4665, allocations: 4 kB / 448.8 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003172/0.4697, allocations: 1.972 MB / 450.8 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.437e-05/0.4697, allocations: 4 kB / 450.8 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004582/0.4702, allocations: 79.86 kB / 450.9 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00033/0.4705, allocations: 76.77 kB / 451 MB, free: 6.977 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.621e-05/0.4706, allocations: 19.98 kB / 451 MB, free: 6.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004235/0.471, allocations: 0.5758 MB / 451.6 MB, free: 6.355 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.471, allocations: 11.91 kB / 451.6 MB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00249/0.4735, allocations: 1.685 MB / 453.3 MB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/0.4736, allocations: 128.4 kB / 453.4 MB, free: 4.484 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.372e-05/0.4737, allocations: 15.94 kB / 453.4 MB, free: 4.469 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003787/0.4741, allocations: 27.08 kB / 453.4 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.656e-05/0.4742, allocations: 31.91 kB / 453.5 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.616e-05/0.4742, allocations: 15.98 kB / 453.5 MB, free: 4.398 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.102e-05/0.4743, allocations: 91.27 kB / 453.6 MB, free: 4.309 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4743, allocations: 0 / 453.6 MB, free: 4.309 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004074/0.4784, allocations: 0.9605 MB / 454.5 MB, free: 3.348 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.006568/0.485, allocations: 1.142 MB / 455.7 MB, free: 2.301 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001936/0.4869, allocations: 0.6319 MB / 456.3 MB, free: 1.668 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.487, allocations: 4.125 kB / 456.3 MB, free: 1.664 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000943/0.4879, allocations: 0.5046 MB / 456.8 MB, free: 1.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009657/0.4889, allocations: 76.53 kB / 456.9 MB, free: 1.086 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002677/0.4916, allocations: 1.341 MB / 458.2 MB, free: 15.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000476/0.4921, allocations: 0.8217 MB / 459 MB, free: 14.85 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001702/0.4923, allocations: 35.42 kB / 459.1 MB, free: 14.81 MB / 382.1 MB Notification: Performance of SimCode: time 1.312e-06/0.4923, allocations: 0 / 459.1 MB, free: 14.81 MB / 382.1 MB Notification: Performance of Templates: time 0.03659/0.5289, allocations: 21.82 MB / 480.9 MB, free: 8.969 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/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