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.0009974/0.0009974, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 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.0009276/0.0009276, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 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 0.8909/0.8909, allocations: 173.3 MB / 201.1 MB, free: 9.332 MB / 186.7 MB " [Timeout remaining time 179] 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 1.402e-06/1.402e-06, allocations: 0 / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.727e-05/1.867e-05, allocations: 2.312 kB / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.0111/0.01112, allocations: 12.93 MB / 280.9 MB, free: 9.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1191/0.1302, allocations: 11.28 MB / 292.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.1303, allocations: 4.438 kB / 292.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003071/0.1306, allocations: 55.83 kB / 292.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002699/0.1309, allocations: 93.27 kB / 292.3 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01005/0.1409, allocations: 5.097 MB / 297.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002956/0.1412, allocations: 238.1 kB / 297.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.312e-05/0.1413, allocations: 6.297 kB / 297.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003372/0.1416, allocations: 213 kB / 297.8 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.413e-05/0.1417, allocations: 64.8 kB / 297.9 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.1417, allocations: 7.875 kB / 297.9 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009696/0.1514, allocations: 6.689 MB / 304.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.949e-05/0.1515, allocations: 35.02 kB / 304.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.016e-05/0.1516, allocations: 47.72 kB / 304.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005775/0.1573, allocations: 4.957 MB / 309.6 MB, free: 9.738 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1573, allocations: 2.75 kB / 309.6 MB, free: 9.738 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1573, allocations: 4 kB / 309.7 MB, free: 9.734 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1573, allocations: 0 / 309.7 MB, free: 9.734 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.002358/0.1597, allocations: 1.1 MB / 310.8 MB, free: 8.949 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.1597, allocations: 13.73 kB / 310.8 MB, free: 8.945 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003077/0.16, allocations: 77.45 kB / 310.8 MB, free: 8.906 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001696/0.1602, allocations: 168.1 kB / 311 MB, free: 8.734 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.1602, allocations: 13.94 kB / 311 MB, free: 8.727 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.861e-05/0.1603, allocations: 13.91 kB / 311 MB, free: 8.723 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005765/0.1608, allocations: 434.9 kB / 311.5 MB, free: 8.379 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.1609, allocations: 3 kB / 311.5 MB, free: 8.379 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.504e-05/0.1609, allocations: 10.72 kB / 311.5 MB, free: 8.371 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.1609, allocations: 4.156 kB / 311.5 MB, free: 8.371 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000446/0.1613, allocations: 262.5 kB / 311.7 MB, free: 8.273 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.0006841/0.162, allocations: 1.351 MB / 313.1 MB, free: 6.961 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003777/0.1624, allocations: 280.6 kB / 313.4 MB, free: 6.777 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.413e-05/0.1625, allocations: 82.62 kB / 313.4 MB, free: 6.723 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04226/0.2047, allocations: 25.18 MB / 338.6 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.502e-05/0.2048, allocations: 48.7 kB / 338.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.963e-06/0.2048, allocations: 0 / 338.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.003137/0.2079, allocations: 1.241 MB / 339.9 MB, free: 13.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.208, allocations: 113.5 kB / 340 MB, free: 12.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.172e-05/0.2081, allocations: 189.8 kB / 340.2 MB, free: 12.74 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.2081, allocations: 29.7 kB / 340.2 MB, free: 12.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.576e-05/0.2081, allocations: 151.4 kB / 340.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.447e-05/0.2082, allocations: 121.9 kB / 340.5 MB, free: 12.44 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.28e-05/0.2083, allocations: 75.34 kB / 340.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.2084, allocations: 0.4962 MB / 341.1 MB, free: 11.85 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000123/0.2085, allocations: 91.94 kB / 341.2 MB, free: 11.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001584/0.2087, allocations: 184 kB / 341.3 MB, free: 11.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/0.209, allocations: 285.1 kB / 341.6 MB, free: 11.24 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.209, allocations: 0 / 341.6 MB, free: 11.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004379/0.2094, allocations: 353.2 kB / 342 MB, free: 10.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.2094, allocations: 7.938 kB / 342 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2094, allocations: 4 kB / 342 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001502/0.2096, allocations: 35.66 kB / 342 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002247/0.2098, allocations: 81.89 kB / 342.1 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003013/0.2101, allocations: 0.7972 MB / 342.9 MB, free: 9.949 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.2102, allocations: 23.92 kB / 342.9 MB, free: 9.926 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.217e-05/0.2102, allocations: 12 kB / 342.9 MB, free: 9.914 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.0001089/0.2103, allocations: 183.6 kB / 343.1 MB, free: 9.727 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.073e-05/0.2104, allocations: 27.09 kB / 343.1 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001168/0.2116, allocations: 0.958 MB / 344.1 MB, free: 8.742 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-05/0.2116, allocations: 23.91 kB / 344.1 MB, free: 8.719 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2116, allocations: 9.531 kB / 344.1 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.2116, allocations: 3.984 kB / 344.1 MB, free: 8.707 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00125/0.2129, allocations: 1.313 MB / 345.4 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.2129, allocations: 7.984 kB / 345.4 MB, free: 7.344 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001926/0.2131, allocations: 71.08 kB / 345.5 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001614/0.2132, allocations: 59.58 kB / 345.6 MB, free: 7.215 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/0.2133, allocations: 19.92 kB / 345.6 MB, free: 7.195 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000238/0.2135, allocations: 0.7951 MB / 346.4 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2135, allocations: 0 / 346.4 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009046/0.2144, allocations: 1.247 MB / 347.6 MB, free: 5.086 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.921e-05/0.2144, allocations: 51.53 kB / 347.7 MB, free: 5.035 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.92e-05/0.2145, allocations: 11.62 kB / 347.7 MB, free: 5.027 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.2146, allocations: 19.98 kB / 347.7 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.463e-05/0.2147, allocations: 35.03 kB / 347.7 MB, free: 4.977 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.2147, allocations: 15.98 kB / 347.8 MB, free: 4.961 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.255e-05/0.2147, allocations: 135.1 kB / 347.9 MB, free: 4.828 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2147, allocations: 0 / 347.9 MB, free: 4.828 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001999/0.2167, allocations: 0.9709 MB / 348.9 MB, free: 3.855 MB / 298.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.002805/0.2195, allocations: 1.288 MB / 350.2 MB, free: 2.672 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00063/0.2202, allocations: 395.8 kB / 350.5 MB, free: 2.289 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2202, allocations: 0 / 350.5 MB, free: 2.289 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003239/0.2205, allocations: 303.9 kB / 350.8 MB, free: 2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004814/0.221, allocations: 92.52 kB / 350.9 MB, free: 1.914 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001894/0.2229, allocations: 1.089 MB / 352 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001041/0.223, allocations: 131.8 kB / 352.1 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002295/0.2232, allocations: 133.5 kB / 352.3 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.2233, allocations: 36.48 kB / 352.3 MB, free: 496 kB / 298.7 MB Notification: Performance of SimCode: time 1.232e-06/0.2233, allocations: 4 kB / 352.3 MB, free: 492 kB / 298.7 MB Notification: Performance of Templates: time 0.036/0.2593, allocations: 37.31 MB / 389.6 MB, free: 11.29 MB / 346.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.304976265877485]