Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002003/0.002003, allocations: 92.31 kB / 20.96 MB, free: 3.477 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002305/0.002305, allocations: 165.7 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.464/1.464, allocations: 177.1 MB / 204.6 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Media.Examples.WaterIF97") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 272.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.383e-05/2.537e-05, allocations: 2.312 kB / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01796/0.01798, allocations: 11.92 MB / 284.2 MB, free: 5.883 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1185/0.1365, allocations: 10.12 MB / 294.3 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.28e-05/0.1366, allocations: 2.234 kB / 294.3 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003116/0.1369, allocations: 63.34 kB / 294.4 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002789/0.1372, allocations: 97.33 kB / 294.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01175/0.1489, allocations: 5.087 MB / 299.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002907/0.1492, allocations: 248.9 kB / 299.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.756e-05/0.1492, allocations: 5.766 kB / 299.8 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003997/0.1496, allocations: 216.4 kB / 300 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001001/0.1497, allocations: 57.25 kB / 300.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.177e-05/0.1498, allocations: 7.188 kB / 300.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01098/0.1607, allocations: 6.698 MB / 306.8 MB, free: 11.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.377e-05/0.1608, allocations: 33.39 kB / 306.8 MB, free: 11.15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.1609, allocations: 54.67 kB / 306.9 MB, free: 11.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006823/0.1677, allocations: 4.983 MB / 311.9 MB, free: 7.887 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1677, allocations: 0 / 311.9 MB, free: 7.887 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1677, allocations: 0 / 311.9 MB, free: 7.887 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1678, allocations: 0 / 311.9 MB, free: 7.887 MB / 266.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.004083/0.1718, allocations: 1.095 MB / 313 MB, free: 7.074 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.1719, allocations: 8.031 kB / 313 MB, free: 7.066 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005035/0.1724, allocations: 84.56 kB / 313 MB, free: 6.984 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002767/0.1726, allocations: 162.1 kB / 313.2 MB, free: 6.801 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.027e-05/0.1727, allocations: 16.66 kB / 313.2 MB, free: 6.785 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.267e-05/0.1727, allocations: 12.38 kB / 313.2 MB, free: 6.773 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/0.1739, allocations: 436.8 kB / 313.7 MB, free: 6.305 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.1739, allocations: 4.375 kB / 313.7 MB, free: 6.301 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.489e-05/0.1739, allocations: 11.94 kB / 313.7 MB, free: 6.289 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.1739, allocations: 4 kB / 313.7 MB, free: 6.285 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001268/0.1752, allocations: 360.3 kB / 314 MB, free: 5.934 MB / 266.7 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.001019/0.1762, allocations: 0.9972 MB / 315 MB, free: 4.887 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007566/0.177, allocations: 277.3 kB / 315.3 MB, free: 4.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002447/0.1772, allocations: 110.4 kB / 315.4 MB, free: 4.477 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0918/0.269, allocations: 26.1 MB / 341.5 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.013e-05/0.269, allocations: 38.56 kB / 341.5 MB, free: 10.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.2691, allocations: 0 / 341.5 MB, free: 10.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.007482/0.2765, allocations: 1.53 MB / 343.1 MB, free: 8.758 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.814e-05/0.2766, allocations: 110.8 kB / 343.2 MB, free: 8.625 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.2768, allocations: 118.5 kB / 343.3 MB, free: 8.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.761e-05/0.2768, allocations: 33.7 kB / 343.3 MB, free: 8.461 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.471e-05/0.2769, allocations: 104.6 kB / 343.4 MB, free: 8.355 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.277, allocations: 121.4 kB / 343.6 MB, free: 8.238 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.2772, allocations: 69.47 kB / 343.6 MB, free: 8.164 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000199/0.2774, allocations: 330.8 kB / 343.9 MB, free: 7.832 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004322/0.2778, allocations: 131.9 kB / 344.1 MB, free: 7.703 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004946/0.2783, allocations: 197.3 kB / 344.3 MB, free: 7.488 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009399/0.2792, allocations: 346.6 kB / 344.6 MB, free: 7.125 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.2792, allocations: 4 kB / 344.6 MB, free: 7.121 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001276/0.2805, allocations: 450.1 kB / 345 MB, free: 6.672 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.2805, allocations: 8 kB / 345.1 MB, free: 6.664 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.719e-06/0.2805, allocations: 4 kB / 345.1 MB, free: 6.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002545/0.2808, allocations: 36.83 kB / 345.1 MB, free: 6.621 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005243/0.2813, allocations: 91.81 kB / 345.2 MB, free: 6.531 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007373/0.282, allocations: 0.5407 MB / 345.7 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003225/0.2824, allocations: 28.11 kB / 345.8 MB, free: 5.934 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.58e-05/0.2824, allocations: 17.11 kB / 345.8 MB, free: 5.918 MB / 298.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 () * 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.000177/0.2826, allocations: 137.7 kB / 345.9 MB, free: 5.773 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.2827, allocations: 27.91 kB / 345.9 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002652/0.2854, allocations: 1.502 MB / 347.4 MB, free: 4.238 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-05/0.2854, allocations: 24 kB / 347.5 MB, free: 4.215 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.2854, allocations: 0 / 347.5 MB, free: 4.215 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.2854, allocations: 3.984 kB / 347.5 MB, free: 4.211 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003508/0.2889, allocations: 1.9 MB / 349.4 MB, free: 2.273 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.2889, allocations: 0 / 349.4 MB, free: 2.273 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004951/0.2894, allocations: 87.86 kB / 349.4 MB, free: 2.188 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003368/0.2898, allocations: 76.88 kB / 349.5 MB, free: 2.109 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.51e-05/0.2898, allocations: 15.92 kB / 349.5 MB, free: 2.094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005209/0.2903, allocations: 0.5914 MB / 350.1 MB, free: 1.477 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.2903, allocations: 0.5625 kB / 350.1 MB, free: 1.477 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002851/0.2932, allocations: 1.754 MB / 351.9 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.887e-05/0.2933, allocations: 51.53 kB / 351.9 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.927e-05/0.2933, allocations: 8 kB / 351.9 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000407/0.2937, allocations: 32.02 kB / 352 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.898e-05/0.2938, allocations: 32.5 kB / 352 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.491e-05/0.2938, allocations: 11.94 kB / 352 MB, free: 15.56 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.476e-05/0.2939, allocations: 92.48 kB / 352.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2939, allocations: 0 / 352.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003468/0.2974, allocations: 0.9747 MB / 353.1 MB, free: 14.49 MB / 314.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 () * 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.005374/0.3027, allocations: 1.293 MB / 354.4 MB, free: 13.3 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0016/0.3044, allocations: 0.6127 MB / 355 MB, free: 12.69 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3044, allocations: 0 / 355 MB, free: 12.69 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009195/0.3053, allocations: 470.5 kB / 355.4 MB, free: 12.23 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008383/0.3061, allocations: 100.4 kB / 355.5 MB, free: 12.13 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002644/0.3088, allocations: 1.249 MB / 356.8 MB, free: 10.84 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.309, allocations: 208.3 kB / 357 MB, free: 10.62 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000386/0.3094, allocations: 138.5 kB / 357.1 MB, free: 10.48 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000149/0.3095, allocations: 36.48 kB / 357.2 MB, free: 10.45 MB / 314.7 MB Notification: Performance of SimCode: time 7.21e-07/0.3095, allocations: 0 / 357.2 MB, free: 10.45 MB / 314.7 MB Notification: Performance of Templates: time 0.0593/0.3688, allocations: 36.67 MB / 393.8 MB, free: 5.871 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_4.1.0_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.01681982295122]