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.0009479/0.0009479, 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.0008588/0.0008588, allocations: 141.1 kB / 24.54 MB, free: 36 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.8837/0.8837, allocations: 173.3 MB / 201.1 MB, free: 9.316 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.603e-06/1.603e-06, allocations: 0 / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.386e-05/2.546e-05, allocations: 2.312 kB / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01115/0.01118, allocations: 12.93 MB / 280.9 MB, free: 9.461 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1056/0.1167, allocations: 11.27 MB / 292.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.1168, allocations: 1.188 kB / 292.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002952/0.1171, allocations: 62.94 kB / 292.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002573/0.1174, allocations: 90.7 kB / 292.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009055/0.1264, allocations: 5.094 MB / 297.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002602/0.1267, allocations: 239.8 kB / 297.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.457e-05/0.1267, allocations: 5.922 kB / 297.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003099/0.127, allocations: 211.8 kB / 297.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.661e-05/0.1271, allocations: 65.53 kB / 297.9 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.014e-05/0.1272, allocations: 8.656 kB / 297.9 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007803/0.135, allocations: 6.691 MB / 304.6 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.252e-05/0.135, allocations: 29.36 kB / 304.6 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.615e-05/0.1351, allocations: 50.48 kB / 304.7 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004401/0.1395, allocations: 4.951 MB / 309.6 MB, free: 9.668 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.1395, allocations: 0 / 309.6 MB, free: 9.668 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1395, allocations: 0 / 309.6 MB, free: 9.668 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.1395, allocations: 0 / 309.6 MB, free: 9.668 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.002186/0.1417, allocations: 1.113 MB / 310.8 MB, free: 8.875 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.1417, allocations: 10.02 kB / 310.8 MB, free: 8.875 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002829/0.142, allocations: 84.44 kB / 310.8 MB, free: 8.828 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/0.1422, allocations: 163 kB / 311 MB, free: 8.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.985e-05/0.1422, allocations: 13.84 kB / 311 MB, free: 8.652 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.624e-05/0.1422, allocations: 20.47 kB / 311 MB, free: 8.645 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005757/0.1428, allocations: 430.5 kB / 311.5 MB, free: 8.309 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.1428, allocations: 384 / 311.5 MB, free: 8.309 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.466e-05/0.1428, allocations: 15.53 kB / 311.5 MB, free: 8.297 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.956e-06/0.1428, allocations: 6.25 kB / 311.5 MB, free: 8.297 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004254/0.1433, allocations: 262.8 kB / 311.7 MB, free: 8.199 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.000644/0.1439, allocations: 1.344 MB / 313.1 MB, free: 6.891 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000364/0.1443, allocations: 281.7 kB / 313.4 MB, free: 6.703 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.006e-05/0.1444, allocations: 89.06 kB / 313.4 MB, free: 6.648 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04/0.1844, allocations: 25.18 MB / 338.6 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.713e-05/0.1844, allocations: 41.39 kB / 338.7 MB, free: 14.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 2.295e-06/0.1844, allocations: 0 / 338.7 MB, free: 14.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.002677/0.1871, allocations: 1.239 MB / 339.9 MB, free: 13.03 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.1871, allocations: 113 kB / 340 MB, free: 12.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.288e-05/0.1872, allocations: 185.8 kB / 340.2 MB, free: 12.7 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.1872, allocations: 33.77 kB / 340.2 MB, free: 12.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.619e-05/0.1873, allocations: 158.8 kB / 340.4 MB, free: 12.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.079e-05/0.1873, allocations: 119 kB / 340.5 MB, free: 12.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.982e-05/0.1874, allocations: 75.34 kB / 340.6 MB, free: 12.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.1875, allocations: 0.502 MB / 341.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.1876, allocations: 91.94 kB / 341.2 MB, free: 11.7 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001542/0.1878, allocations: 179.6 kB / 341.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002675/0.1881, allocations: 285.2 kB / 341.6 MB, free: 11.19 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.1881, allocations: 0 / 341.6 MB, free: 11.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004107/0.1885, allocations: 356.2 kB / 342 MB, free: 10.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.1885, allocations: 7.938 kB / 342 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.1885, allocations: 4 kB / 342 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001344/0.1886, allocations: 35.66 kB / 342 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.1888, allocations: 79.05 kB / 342.1 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002717/0.1891, allocations: 0.7993 MB / 342.9 MB, free: 9.891 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.875e-05/0.1892, allocations: 20 kB / 342.9 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.1892, allocations: 15.98 kB / 342.9 MB, free: 9.855 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 9.606e-05/0.1893, allocations: 181.9 kB / 343.1 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.454e-05/0.1894, allocations: 23.91 kB / 343.1 MB, free: 9.648 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008561/0.1902, allocations: 0.9571 MB / 344.1 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.42e-05/0.1903, allocations: 21.84 kB / 344.1 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.1903, allocations: 4 kB / 344.1 MB, free: 8.664 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.1903, allocations: 3.984 kB / 344.1 MB, free: 8.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/0.1914, allocations: 1.323 MB / 345.4 MB, free: 7.297 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.1915, allocations: 4 kB / 345.4 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001843/0.1916, allocations: 74.89 kB / 345.5 MB, free: 7.223 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000149/0.1918, allocations: 59.7 kB / 345.6 MB, free: 7.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.437e-05/0.1918, allocations: 19.92 kB / 345.6 MB, free: 7.141 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002198/0.192, allocations: 0.7952 MB / 346.4 MB, free: 6.316 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.192, allocations: 0 / 346.4 MB, free: 6.316 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008484/0.1929, allocations: 1.251 MB / 347.6 MB, free: 5.027 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.63e-05/0.1929, allocations: 47.53 kB / 347.7 MB, free: 4.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.977e-05/0.1929, allocations: 11.98 kB / 347.7 MB, free: 4.969 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001505/0.1931, allocations: 19.56 kB / 347.7 MB, free: 4.953 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.22e-05/0.1931, allocations: 34.75 kB / 347.7 MB, free: 4.922 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.01e-05/0.1932, allocations: 15.98 kB / 347.8 MB, free: 4.906 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.957e-05/0.1932, allocations: 139.1 kB / 347.9 MB, free: 4.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1932, allocations: 0 / 347.9 MB, free: 4.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001578/0.1948, allocations: 0.9631 MB / 348.9 MB, free: 3.805 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.002444/0.1972, allocations: 1.288 MB / 350.2 MB, free: 2.613 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005303/0.1977, allocations: 400.4 kB / 350.5 MB, free: 2.227 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1978, allocations: 0 / 350.5 MB, free: 2.227 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002805/0.198, allocations: 302.1 kB / 350.8 MB, free: 1.938 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004414/0.1985, allocations: 98.95 kB / 350.9 MB, free: 1.848 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001448/0.1999, allocations: 1.084 MB / 352 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.743e-05/0.2, allocations: 127.8 kB / 352.1 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001985/0.2002, allocations: 138.4 kB / 352.3 MB, free: 464 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.134e-05/0.2003, allocations: 36.48 kB / 352.3 MB, free: 428 kB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.2003, allocations: 0 / 352.3 MB, free: 428 kB / 298.7 MB Notification: Performance of Templates: time 0.0381/0.2384, allocations: 43.23 MB / 395.5 MB, free: 5.293 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.59230200201273]