Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.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.001032/0.001032, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001063/0.001063, allocations: 167.9 kB / 25.61 MB, free: 8.582 MB / 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 0.9656/0.9656, allocations: 177.1 MB / 206.1 MB, free: 4.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1525/0.1525, allocations: 32.8 MB / 295.4 MB, free: 15.37 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.334e-06/2.334e-06, allocations: 3.984 kB / 377.2 MB, free: 25.63 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.483e-05/1.716e-05, allocations: 6.312 kB / 377.2 MB, free: 25.62 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001214/0.001232, allocations: 496.9 kB / 377.7 MB, free: 25.13 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.002803, allocations: 1.395 MB / 379.1 MB, free: 23.73 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.482e-05/0.002837, allocations: 0 / 379.1 MB, free: 23.73 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.559e-05/0.002853, allocations: 4 kB / 379.1 MB, free: 23.73 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001818/0.003035, allocations: 6.734 kB / 379.1 MB, free: 23.72 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0009462/0.003981, allocations: 279.4 kB / 379.4 MB, free: 23.46 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.856e-05/0.00403, allocations: 4 kB / 379.4 MB, free: 23.45 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.608e-05/0.004066, allocations: 4 kB / 379.4 MB, free: 23.45 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.577e-05/0.004092, allocations: 0 / 379.4 MB, free: 23.45 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.294e-05/0.004134, allocations: 4 kB / 379.4 MB, free: 23.45 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.115e-06/0.004143, allocations: 0 / 379.4 MB, free: 23.45 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002998/0.007141, allocations: 1 MB / 380.4 MB, free: 22.71 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.368e-06/0.00715, allocations: 0 / 380.4 MB, free: 22.71 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.421e-05/0.007164, allocations: 0 / 380.4 MB, free: 22.71 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002761/0.00744, allocations: 219.3 kB / 380.6 MB, free: 22.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.007442, allocations: 0 / 380.6 MB, free: 22.5 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.007443, allocations: 4 kB / 380.6 MB, free: 22.5 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.007446, allocations: 0 / 380.6 MB, free: 22.5 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002732/0.007719, allocations: 413.7 kB / 381 MB, free: 22.05 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.007757, allocations: 15.98 kB / 381 MB, free: 22.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.752e-05/0.007785, allocations: 0.9375 kB / 381.1 MB, free: 22.04 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.691e-05/0.007852, allocations: 108.9 kB / 381.2 MB, free: 21.9 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.007863, allocations: 4.375 kB / 381.2 MB, free: 21.9 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.229e-06/0.007868, allocations: 384 / 381.2 MB, free: 21.9 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.685e-05/0.007925, allocations: 55.97 kB / 381.2 MB, free: 21.83 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.007932, allocations: 192 / 381.2 MB, free: 21.83 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.622e-06/0.007938, allocations: 12.11 kB / 381.2 MB, free: 21.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.007944, allocations: 0 / 381.2 MB, free: 21.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.16e-05/0.007955, allocations: 29.64 kB / 381.3 MB, free: 21.79 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.589e-05/0.008031, allocations: 97.2 kB / 381.4 MB, free: 21.66 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.755e-05/0.008069, allocations: 52.8 kB / 381.4 MB, free: 21.59 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.259e-05/0.008081, allocations: 33.39 kB / 381.4 MB, free: 21.55 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.805e-06/0.008084, allocations: 0 / 381.4 MB, free: 21.55 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.008112, allocations: 71.14 kB / 381.5 MB, free: 21.46 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 7.22e-07/0.008113, allocations: 0 / 381.5 MB, free: 21.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.000132/0.008245, allocations: 118.8 kB / 381.6 MB, free: 21.32 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.257e-05/0.008267, allocations: 77.11 kB / 381.7 MB, free: 21.23 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.323e-05/0.008321, allocations: 161.9 kB / 381.9 MB, free: 21.05 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.689e-06/0.008325, allocations: 25.7 kB / 381.9 MB, free: 21.02 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.677e-05/0.008342, allocations: 130.9 kB / 382 MB, free: 20.89 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.173e-05/0.008354, allocations: 0 / 382 MB, free: 20.89 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.789e-05/0.008382, allocations: 19.38 kB / 382 MB, free: 20.86 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.738e-05/0.008429, allocations: 496.1 kB / 382.5 MB, free: 20.37 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.859e-06/0.008439, allocations: 29.7 kB / 382.5 MB, free: 20.33 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.776e-06/0.008448, allocations: 29.69 kB / 382.6 MB, free: 20.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.596e-05/0.008474, allocations: 67.31 kB / 382.6 MB, free: 20.21 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.008475, allocations: 0 / 382.6 MB, free: 20.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.653e-05/0.008532, allocations: 89.05 kB / 382.7 MB, free: 20.11 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.008553, allocations: 29.7 kB / 382.8 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.77e-06/0.008558, allocations: 7.984 kB / 382.8 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.838e-06/0.008568, allocations: 0 / 382.8 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.008569, allocations: 0 / 382.8 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.008573, allocations: 7.922 kB / 382.8 MB, free: 20.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.173e-05/0.008585, allocations: 0 / 382.8 MB, free: 20.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.849e-06/0.00859, allocations: 0 / 382.8 MB, free: 20.06 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.905e-05/0.008639, allocations: 190.3 kB / 383 MB, free: 19.86 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.844e-06/0.008647, allocations: 0 / 383 MB, free: 19.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.066e-05/0.008657, allocations: 7.156 kB / 383 MB, free: 19.85 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.008659, allocations: 0 / 383 MB, free: 19.85 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-06/0.008661, allocations: 0 / 383 MB, free: 19.85 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.008664, allocations: 3.938 kB / 383 MB, free: 19.85 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.321e-05/0.008717, allocations: 93.25 kB / 383.1 MB, free: 19.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.01e-07/0.008718, allocations: 4 kB / 383.1 MB, free: 19.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.71e-07/0.008719, allocations: 4 kB / 383.1 MB, free: 19.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.22e-07/0.00872, allocations: 0 / 383.1 MB, free: 19.72 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.897e-06/0.008724, allocations: 7.938 kB / 383.1 MB, free: 19.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.71e-07/0.008724, allocations: 0 / 383.1 MB, free: 19.71 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.008725, allocations: 0 / 383.1 MB, free: 19.71 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.437e-05/0.008789, allocations: 139.7 kB / 383.2 MB, free: 19.54 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.21e-06/0.008795, allocations: 3.953 kB / 383.2 MB, free: 19.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.096e-05/0.008806, allocations: 4 kB / 383.2 MB, free: 19.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.436e-06/0.008814, allocations: 4 kB / 383.2 MB, free: 19.53 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.766e-06/0.008823, allocations: 3.984 kB / 383.2 MB, free: 19.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-06/0.008825, allocations: 0 / 383.2 MB, free: 19.53 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.484e-05/0.008839, allocations: 123.2 kB / 383.3 MB, free: 19.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.00884, allocations: 4.125 kB / 383.3 MB, free: 19.4 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003028/0.009142, allocations: 59.88 kB / 383.4 MB, free: 19.34 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006925/0.009835, allocations: 376.1 kB / 383.8 MB, free: 19.05 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.587e-05/0.009911, allocations: 122.4 kB / 383.9 MB, free: 18.9 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.009912, allocations: 0 / 383.9 MB, free: 18.9 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.968e-05/0.009932, allocations: 92.78 kB / 384 MB, free: 18.79 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001275/0.01006, allocations: 4 kB / 384 MB, free: 18.79 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001364/0.0102, allocations: 118.2 kB / 384.1 MB, free: 18.64 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.348e-05/0.01022, allocations: 67.14 kB / 384.2 MB, free: 18.55 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.35e-06/0.01022, allocations: 0 / 384.2 MB, free: 18.55 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.839e-05/0.01026, allocations: 74.19 kB / 384.2 MB, free: 18.48 MB / 314.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01026, allocations: 0 / 384.2 MB, free: 18.48 MB / 314.7 MB Notification: Performance of Templates: time 0.003838/0.0141, allocations: 1.89 MB / 386.1 MB, free: 16.59 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.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: 3.20703544607386]