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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 113 kB / 18.45 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 190.9 kB / 21.4 MB, free: 1.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.673/1.673, allocations: 225.6 MB / 249.8 MB, free: 3.629 MB / 190.1 MB " [Timeout remaining time 178] 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=5002,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=5002,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.WaterIF97") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 55.92 kB / 366.8 MB, free: 388 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09923/0.1007, allocations: 52.13 MB / 418.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01774/0.1185, allocations: 12.97 MB / 431.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01486/0.1333, allocations: 11.58 MB / 443.5 MB, free: 3.504 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001296/0.1335, allocations: 0 / 443.5 MB, free: 3.504 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003648/0.1338, allocations: 75.55 kB / 443.5 MB, free: 3.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003464/0.1342, allocations: 87.42 kB / 443.6 MB, free: 3.344 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2122/0.3464, allocations: 5.061 MB / 448.7 MB, free: 9.469 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003444/0.3468, allocations: 232.1 kB / 448.9 MB, free: 9.469 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.746e-05/0.3468, allocations: 10.41 kB / 448.9 MB, free: 9.465 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004137/0.3472, allocations: 198.4 kB / 449.1 MB, free: 9.461 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001204/0.3474, allocations: 72.78 kB / 449.2 MB, free: 9.461 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.33e-05/0.3474, allocations: 11.48 kB / 449.2 MB, free: 9.461 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01392/0.3613, allocations: 6.986 MB / 456.2 MB, free: 9.461 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.743e-05/0.3614, allocations: 33.61 kB / 456.2 MB, free: 9.461 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.3616, allocations: 72.19 kB / 456.3 MB, free: 9.461 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01106/0.3726, allocations: 3.872 MB / 460.2 MB, free: 9.355 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.3726, allocations: 0 / 460.2 MB, free: 9.355 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3726, allocations: 0.8125 kB / 460.2 MB, free: 9.355 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.3726, allocations: 0 / 460.2 MB, free: 9.355 MB / 366.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.006038/0.3787, allocations: 1.169 MB / 461.3 MB, free: 8.738 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.3787, allocations: 9.812 kB / 461.3 MB, free: 8.738 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004994/0.3792, allocations: 56.52 kB / 461.4 MB, free: 8.727 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002899/0.3795, allocations: 217.9 kB / 461.6 MB, free: 8.527 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.132e-05/0.3795, allocations: 11.06 kB / 461.6 MB, free: 8.527 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.023e-05/0.3796, allocations: 20.45 kB / 461.6 MB, free: 8.523 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/0.3809, allocations: 390.1 kB / 462 MB, free: 8.414 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.3809, allocations: 0 / 462 MB, free: 8.414 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.571e-05/0.3809, allocations: 13.88 kB / 462 MB, free: 8.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.3809, allocations: 7.406 kB / 462 MB, free: 8.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001377/0.3823, allocations: 353.4 kB / 462.4 MB, free: 8.402 MB / 366.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.001146/0.3835, allocations: 1.194 MB / 463.6 MB, free: 7.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000836/0.3843, allocations: 272.3 kB / 463.9 MB, free: 7.336 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/0.3846, allocations: 119.2 kB / 464 MB, free: 7.309 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1002/0.4848, allocations: 47.65 MB / 0.4996 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.644e-05/0.4848, allocations: 38 kB / 0.4997 GB, free: 12.78 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.924e-06/0.4848, allocations: 0 / 0.4997 GB, free: 12.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.007212/0.492, allocations: 1.589 MB / 0.5012 GB, free: 11.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.982e-05/0.4921, allocations: 110.8 kB / 0.5013 GB, free: 11.2 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001141/0.4922, allocations: 118.7 kB / 0.5014 GB, free: 11.08 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.284e-05/0.4923, allocations: 33.7 kB / 0.5015 GB, free: 11.04 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.242e-05/0.4924, allocations: 108.6 kB / 0.5016 GB, free: 10.93 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.4925, allocations: 126.3 kB / 0.5017 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.4926, allocations: 73.47 kB / 0.5018 GB, free: 10.74 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.4928, allocations: 322.8 kB / 0.5021 GB, free: 10.41 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004246/0.4932, allocations: 140.5 kB / 0.5022 GB, free: 10.28 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004674/0.4936, allocations: 194.6 kB / 0.5024 GB, free: 10.06 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008766/0.4945, allocations: 344.3 kB / 0.5027 GB, free: 9.707 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.4945, allocations: 5.906 kB / 0.5027 GB, free: 9.703 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001182/0.4957, allocations: 424.9 kB / 0.5031 GB, free: 9.289 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.4957, allocations: 4.219 kB / 0.5031 GB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.4957, allocations: 8.688 kB / 0.5031 GB, free: 9.277 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000241/0.496, allocations: 32.84 kB / 0.5032 GB, free: 9.242 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004851/0.4965, allocations: 94.41 kB / 0.5033 GB, free: 9.156 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004509/0.4969, allocations: 0.55 MB / 0.5038 GB, free: 8.582 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002813/0.4972, allocations: 20.08 kB / 0.5038 GB, free: 8.562 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-05/0.4972, allocations: 20.67 kB / 0.5038 GB, free: 8.543 MB / 414.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.0001769/0.4974, allocations: 139.2 kB / 0.504 GB, free: 8.406 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.4975, allocations: 19.91 kB / 0.504 GB, free: 8.387 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002366/0.4999, allocations: 1.438 MB / 0.5054 GB, free: 6.953 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.031e-05/0.4999, allocations: 28.52 kB / 0.5054 GB, free: 6.926 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.4999, allocations: 0 / 0.5054 GB, free: 6.926 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.4999, allocations: 1.078 kB / 0.5054 GB, free: 6.926 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003255/0.5032, allocations: 1.985 MB / 0.5074 GB, free: 4.883 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/0.5032, allocations: 3.5 kB / 0.5074 GB, free: 4.883 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004641/0.5037, allocations: 83.2 kB / 0.5074 GB, free: 4.805 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003347/0.504, allocations: 71.94 kB / 0.5075 GB, free: 4.734 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.938e-05/0.504, allocations: 20.11 kB / 0.5075 GB, free: 4.715 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004286/0.5045, allocations: 0.5797 MB / 0.5081 GB, free: 4.109 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/0.5045, allocations: 12.95 kB / 0.5081 GB, free: 4.102 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002488/0.507, allocations: 1.692 MB / 0.5098 GB, free: 2.387 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.5071, allocations: 132.6 kB / 0.5099 GB, free: 2.238 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.703e-05/0.5071, allocations: 8 kB / 0.5099 GB, free: 2.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003765/0.5075, allocations: 24.02 kB / 0.5099 GB, free: 2.207 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.525e-05/0.5076, allocations: 32.8 kB / 0.5099 GB, free: 2.176 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.632e-05/0.5076, allocations: 19.98 kB / 0.51 GB, free: 2.156 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.382e-05/0.5077, allocations: 95.11 kB / 0.5101 GB, free: 2.066 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5077, allocations: 2.906 kB / 0.5101 GB, free: 2.066 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004084/0.5118, allocations: 0.9708 MB / 0.511 GB, free: 1.094 MB / 414.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.005971/0.5177, allocations: 1.143 MB / 0.5121 GB, free: 64 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001702/0.5194, allocations: 0.5975 MB / 0.5127 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.471e-06/0.5194, allocations: 0 / 0.5127 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008419/0.5203, allocations: 456.8 kB / 0.5131 GB, free: 15.05 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007973/0.5211, allocations: 64.59 kB / 0.5132 GB, free: 14.99 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002608/0.5237, allocations: 1.338 MB / 0.5145 GB, free: 13.62 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004771/0.5242, allocations: 0.8231 MB / 0.5153 GB, free: 12.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000172/0.5243, allocations: 39.42 kB / 0.5154 GB, free: 12.73 MB / 430.1 MB Notification: Performance of SimCode: time 1.402e-06/0.5243, allocations: 0 / 0.5154 GB, free: 12.73 MB / 430.1 MB Notification: Performance of Templates: time 0.03669/0.561, allocations: 21.79 MB / 0.5366 GB, free: 6.961 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.942404194967821]