Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0007723/0.0007723, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001099/0.001871, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007116/0.0007116, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009248/0.001636, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.006/1.006, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1079/1.114, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.3109/0.3109, allocations: 34.25 MB / 278.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02958/0.3405, allocations: 13.11 MB / 291.5 MB, free: 7.332 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 3.938 kB / 292.8 MB, free: 6.238 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.469e-05/1.637e-05, allocations: 2.312 kB / 292.8 MB, free: 6.234 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001451/0.001467, allocations: 0.5478 MB / 293.4 MB, free: 5.691 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002183/0.00365, allocations: 1.422 MB / 294.8 MB, free: 4.262 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.611e-05/0.003676, allocations: 0 / 294.8 MB, free: 4.262 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.93e-06/0.003681, allocations: 0 / 294.8 MB, free: 4.262 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.969e-05/0.003771, allocations: 15.81 kB / 294.8 MB, free: 4.246 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:455:3-487: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.001233/0.005004, allocations: 239.2 kB / 295 MB, free: 4.02 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.208e-05/0.005086, allocations: 12.42 kB / 295 MB, free: 4.008 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.532e-05/0.005141, allocations: 3.984 kB / 295 MB, free: 4.004 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.496e-05/0.005206, allocations: 8 kB / 295.1 MB, free: 3.996 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.893e-05/0.005265, allocations: 3.938 kB / 295.1 MB, free: 3.992 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.187e-05/0.005277, allocations: 0 / 295.1 MB, free: 3.992 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002445/0.007722, allocations: 1.008 MB / 296.1 MB, free: 3.25 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.447e-05/0.007736, allocations: 0 / 296.1 MB, free: 3.25 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.393e-05/0.00775, allocations: 4 kB / 296.1 MB, free: 3.246 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002437/0.007994, allocations: 191.5 kB / 296.3 MB, free: 3.059 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.115e-05/0.008005, allocations: 0 / 296.3 MB, free: 3.059 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.008006, allocations: 4 kB / 296.3 MB, free: 3.055 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.008017, allocations: 0 / 296.3 MB, free: 3.055 MB / 282.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.000321/0.008338, allocations: 290 kB / 296.5 MB, free: 2.742 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.008371, allocations: 12.03 kB / 296.6 MB, free: 2.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.77e-05/0.008399, allocations: 0.9375 kB / 296.6 MB, free: 2.73 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.855e-05/0.008488, allocations: 106.5 kB / 296.7 MB, free: 2.602 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.0085, allocations: 4.375 kB / 296.7 MB, free: 2.598 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.918e-06/0.008509, allocations: 384 / 296.7 MB, free: 2.598 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.543e-05/0.008585, allocations: 63.95 kB / 296.7 MB, free: 2.523 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.008598, allocations: 192 / 296.7 MB, free: 2.523 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-06/0.008605, allocations: 8.062 kB / 296.7 MB, free: 2.516 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.008611, allocations: 0 / 296.7 MB, free: 2.516 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.694e-05/0.008628, allocations: 29.7 kB / 296.8 MB, free: 2.48 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.457e-05/0.008703, allocations: 57.55 kB / 296.8 MB, free: 2.41 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.155e-05/0.008754, allocations: 56.23 kB / 296.9 MB, free: 2.34 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.217e-05/0.008776, allocations: 34.55 kB / 296.9 MB, free: 2.297 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.068e-06/0.00878, allocations: 64 / 296.9 MB, free: 2.297 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.008818, allocations: 60.27 kB / 297 MB, free: 2.223 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.008819, allocations: 4 kB / 297 MB, free: 2.219 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001331/0.008952, allocations: 122.7 kB / 297.1 MB, free: 2.074 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.63e-05/0.009019, allocations: 154.2 kB / 297.2 MB, free: 1.887 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.544e-05/0.009084, allocations: 102.7 kB / 297.3 MB, free: 1.773 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.035e-05/0.009094, allocations: 25.7 kB / 297.4 MB, free: 1.742 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.502e-05/0.009119, allocations: 80.14 kB / 297.4 MB, free: 1.66 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.165e-05/0.009141, allocations: 3.953 kB / 297.5 MB, free: 1.656 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.567e-05/0.009167, allocations: 13.72 kB / 297.5 MB, free: 1.637 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.444e-05/0.009261, allocations: 318.8 kB / 297.8 MB, free: 1.316 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.61e-05/0.009277, allocations: 29.95 kB / 297.8 MB, free: 1.281 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.337e-05/0.009291, allocations: 29.7 kB / 297.8 MB, free: 1.246 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.716e-05/0.009328, allocations: 60.27 kB / 297.9 MB, free: 1.172 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.009329, allocations: 0 / 297.9 MB, free: 1.172 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.054e-05/0.00939, allocations: 97.03 kB / 298 MB, free: 1.059 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.231e-05/0.009432, allocations: 33.7 kB / 298 MB, free: 1.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.009437, allocations: 0 / 298 MB, free: 1.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.009452, allocations: 0 / 298 MB, free: 1.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.134e-06/0.009454, allocations: 0 / 298 MB, free: 1.02 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.517e-06/0.009457, allocations: 4 kB / 298 MB, free: 1.016 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.58e-05/0.009473, allocations: 8.031 kB / 298 MB, free: 1.008 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.623e-06/0.00948, allocations: 0 / 298 MB, free: 1.008 MB / 282.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 7.913e-05/0.009559, allocations: 139.5 kB / 298.2 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.987e-06/0.009563, allocations: 0 / 298.2 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.015e-05/0.009573, allocations: 3.156 kB / 298.2 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.009575, allocations: 0 / 298.2 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.009576, allocations: 0 / 298.2 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.009581, allocations: 7.938 kB / 298.2 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.985e-05/0.009631, allocations: 57.91 kB / 298.2 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.81e-07/0.009631, allocations: 3.938 kB / 298.2 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.014e-06/0.009633, allocations: 7.984 kB / 298.2 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.536e-06/0.009642, allocations: 8 kB / 298.3 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.21e-07/0.009643, allocations: 0 / 298.3 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.659e-06/0.009647, allocations: 0 / 298.3 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.51e-07/0.009648, allocations: 0 / 298.3 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.009648, allocations: 0 / 298.3 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.058e-05/0.009719, allocations: 120.4 kB / 298.4 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.183e-05/0.009731, allocations: 0 / 298.4 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.478e-06/0.009735, allocations: 0 / 298.4 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.197e-06/0.009744, allocations: 0 / 298.4 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-06/0.009748, allocations: 8 kB / 298.4 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.556e-06/0.009757, allocations: 8.891 kB / 298.4 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009757, allocations: 0 / 298.4 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002026/0.009959, allocations: 63.8 kB / 298.5 MB, free: 0.5234 MB / 282.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.0006734/0.01063, allocations: 426.7 kB / 298.9 MB, free: 256 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.92e-05/0.01072, allocations: 127.5 kB / 299 MB, free: 100 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.01073, allocations: 0 / 299 MB, free: 100 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.314e-05/0.01077, allocations: 86.06 kB / 299.1 MB, free: 15.99 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.811e-05/0.01083, allocations: 16.08 kB / 299.1 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001558/0.01098, allocations: 123 kB / 299.2 MB, free: 15.82 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.46e-05/0.01102, allocations: 55.34 kB / 299.3 MB, free: 15.75 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.029e-06/0.01102, allocations: 0 / 299.3 MB, free: 15.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.41e-05/0.01106, allocations: 51.38 kB / 299.3 MB, free: 15.7 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01106, allocations: 0 / 299.3 MB, free: 15.7 MB / 298.7 MB Notification: Performance of Templates: time 0.00341/0.01447, allocations: 1.882 MB / 301.2 MB, free: 13.83 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9047830402851105]