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.001444/0.001444, allocations: 111.4 kB / 17.99 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001419/0.001419, allocations: 209.8 kB / 18.92 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 247.1 MB, free: 10.67 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 60.31 kB / 307.1 MB, free: 0.9258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.105, allocations: 50.54 MB / 357.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01771/0.1228, allocations: 13.15 MB / 370.8 MB, free: 1.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1797/0.3026, allocations: 11.6 MB / 382.4 MB, free: 7.621 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.3027, allocations: 1.844 kB / 382.4 MB, free: 7.621 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003607/0.3031, allocations: 62.53 kB / 382.5 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003112/0.3035, allocations: 81.72 kB / 382.6 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0157/0.3192, allocations: 4.47 MB / 387 MB, free: 6.461 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004019/0.3196, allocations: 227.2 kB / 387.2 MB, free: 6.398 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.261e-05/0.3196, allocations: 17.86 kB / 387.3 MB, free: 6.391 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004883/0.3201, allocations: 187.5 kB / 387.4 MB, free: 6.324 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001339/0.3203, allocations: 81.55 kB / 387.5 MB, free: 6.301 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.271e-05/0.3203, allocations: 10.97 kB / 387.5 MB, free: 6.297 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01436/0.3347, allocations: 6.889 MB / 394.4 MB, free: 3.426 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.346e-05/0.3348, allocations: 29.41 kB / 394.5 MB, free: 3.402 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001615/0.335, allocations: 68.73 kB / 394.5 MB, free: 3.367 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006146/0.3411, allocations: 2.616 MB / 397.1 MB, free: 1.844 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3412, allocations: 0 / 397.1 MB, free: 1.844 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3412, allocations: 1.375 kB / 397.1 MB, free: 1.844 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.3412, allocations: 0 / 397.1 MB, free: 1.844 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.005617/0.3468, allocations: 1.145 MB / 398.3 MB, free: 1.039 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.3469, allocations: 9.625 kB / 398.3 MB, free: 1.039 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004921/0.3474, allocations: 51.23 kB / 398.3 MB, free: 1.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002201/0.3476, allocations: 219.4 kB / 398.6 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.973e-05/0.3477, allocations: 10.88 kB / 398.6 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.059e-05/0.3477, allocations: 14.59 kB / 398.6 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.3489, allocations: 390.2 kB / 399 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.3489, allocations: 0 / 399 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.608e-05/0.349, allocations: 7.219 kB / 399 MB, free: 500 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.349, allocations: 8.875 kB / 399 MB, free: 496 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.3503, allocations: 357.5 kB / 399.3 MB, free: 320 kB / 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.001495/0.3518, allocations: 1.197 MB / 400.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008472/0.3526, allocations: 285.4 kB / 400.8 MB, free: 14.94 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002784/0.3529, allocations: 111.4 kB / 400.9 MB, free: 14.87 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1072/0.4601, allocations: 52.56 MB / 453.5 MB, free: 5.039 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.639e-05/0.4602, allocations: 46.48 kB / 453.5 MB, free: 4.984 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.344e-06/0.4602, allocations: 4 kB / 453.5 MB, free: 4.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.007422/0.4677, allocations: 1.578 MB / 455.1 MB, free: 3.352 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.339e-05/0.4678, allocations: 114.9 kB / 455.2 MB, free: 3.215 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.4679, allocations: 113.8 kB / 455.3 MB, free: 3.094 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.628e-05/0.468, allocations: 33.7 kB / 455.4 MB, free: 3.055 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.365e-05/0.4681, allocations: 108.4 kB / 455.5 MB, free: 2.945 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.4682, allocations: 118.4 kB / 455.6 MB, free: 2.828 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.4684, allocations: 65.59 kB / 455.6 MB, free: 2.758 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.4685, allocations: 326.8 kB / 456 MB, free: 2.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004093/0.4689, allocations: 135.9 kB / 456.1 MB, free: 2.297 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004881/0.4694, allocations: 206.5 kB / 456.3 MB, free: 2.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008523/0.4703, allocations: 338.6 kB / 456.6 MB, free: 1.715 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.4703, allocations: 7.875 kB / 456.6 MB, free: 1.707 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001177/0.4715, allocations: 426 kB / 457 MB, free: 1.281 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.4715, allocations: 8 kB / 457.1 MB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.4716, allocations: 224 / 457.1 MB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002695/0.4718, allocations: 48.77 kB / 457.1 MB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005203/0.4724, allocations: 83.88 kB / 457.2 MB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004611/0.4728, allocations: 0.5522 MB / 457.7 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003502/0.4732, allocations: 28.06 kB / 457.8 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.236e-05/0.4733, allocations: 16 kB / 457.8 MB, free: 0.5195 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.0002013/0.4735, allocations: 139.3 kB / 457.9 MB, free: 384 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.4736, allocations: 15.81 kB / 457.9 MB, free: 368 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002429/0.476, allocations: 1.446 MB / 459.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.199e-05/0.4761, allocations: 23.91 kB / 459.4 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.631e-05/0.4761, allocations: 4.031 kB / 459.4 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.363e-06/0.4761, allocations: 4 kB / 459.4 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003328/0.4794, allocations: 1.967 MB / 461.4 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/0.4795, allocations: 4.375 kB / 461.4 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004766/0.4799, allocations: 84 kB / 461.5 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003413/0.4803, allocations: 72.69 kB / 461.5 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.813e-05/0.4804, allocations: 13.08 kB / 461.5 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004636/0.4808, allocations: 0.5874 MB / 462.1 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.758e-06/0.4808, allocations: 11.95 kB / 462.1 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002491/0.4833, allocations: 1.681 MB / 463.8 MB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001395/0.4835, allocations: 128.5 kB / 464 MB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.781e-05/0.4836, allocations: 12 kB / 464 MB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003896/0.484, allocations: 23.89 kB / 464 MB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.073e-05/0.4841, allocations: 31.89 kB / 464 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.022e-05/0.4841, allocations: 19.98 kB / 464 MB, free: 10.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.843e-05/0.4842, allocations: 91.28 kB / 464.1 MB, free: 10.01 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4842, allocations: 0 / 464.1 MB, free: 10.01 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003797/0.488, allocations: 0.9682 MB / 465.1 MB, free: 9.039 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.005612/0.4936, allocations: 1.139 MB / 466.2 MB, free: 7.895 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001804/0.4955, allocations: 0.6397 MB / 466.9 MB, free: 7.254 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.4955, allocations: 0 / 466.9 MB, free: 7.254 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009119/0.4964, allocations: 0.5085 MB / 467.4 MB, free: 6.746 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.4974, allocations: 81.56 kB / 467.5 MB, free: 6.668 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002866/0.5003, allocations: 1.524 MB / 469 MB, free: 5.098 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004797/0.5008, allocations: 0.8139 MB / 469.8 MB, free: 4.254 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001762/0.501, allocations: 47.34 kB / 469.8 MB, free: 4.207 MB / 382.1 MB Notification: Performance of SimCode: time 1.633e-06/0.501, allocations: 0 / 469.8 MB, free: 4.207 MB / 382.1 MB Notification: Performance of Templates: time 0.03737/0.5384, allocations: 21.95 MB / 491.8 MB, free: 14.23 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches