Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.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.001063/0.001063, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001694/0.002757, allocations: 449.7 kB / 10.37 MB, free: 328 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.001101/0.001101, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004757/0.005858, allocations: 455.6 kB / 11.71 MB, free: 2.461 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 0.9476/0.9476, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1195/1.067, allocations: 53.66 MB / 243.3 MB, free: 15.57 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.2543/0.2543, allocations: 34.25 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02513/0.2794, allocations: 13.1 MB / 291.3 MB, free: 7.379 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.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 292.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.796e-05/1.953e-05, allocations: 2.312 kB / 292.6 MB, free: 6.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001264/0.001283, allocations: 0.5515 MB / 293.2 MB, free: 5.773 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.002568, allocations: 1.146 MB / 294.3 MB, free: 4.617 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.265e-05/0.002581, allocations: 0 / 294.3 MB, free: 4.617 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.476e-06/0.002584, allocations: 0 / 294.3 MB, free: 4.617 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.82e-07/0.002585, allocations: 0 / 294.3 MB, free: 4.617 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Mechanics/MultiBody/Visualizers/Colors/colorMapToSvg.mo:2:1-205:18:writable] Warning: Pure function 'Modelica.Mechanics.MultiBody.Visualizers.Colors.colorMapToSvg' contains a call to impure function 'Modelica.Utilities.Files.remove'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Math.mo:663:3-677:20:writable] Warning: Pure function 'ModelicaTest.Math.colorMapToSvg' contains a call to impure function 'Modelica.Mechanics.MultiBody.Visualizers.Colors.colorMapToSvg'. Notification: Performance of NFTyping.typeClassSections: time 0.0012/0.003785, allocations: 0.7158 MB / 295 MB, free: 3.91 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.086e-05/0.003836, allocations: 12 kB / 295 MB, free: 3.898 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.109e-05/0.003867, allocations: 0 / 295 MB, free: 3.898 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.732e-05/0.003894, allocations: 0 / 295 MB, free: 3.898 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.014e-05/0.003914, allocations: 0 / 295 MB, free: 3.898 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.975e-06/0.003922, allocations: 4 kB / 295 MB, free: 3.895 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001502/0.005425, allocations: 1.934 MB / 297 MB, free: 1.965 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.623e-06/0.005431, allocations: 0 / 297 MB, free: 1.965 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.237e-05/0.005444, allocations: 0 / 297 MB, free: 1.965 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003116/0.005755, allocations: 343.4 kB / 297.3 MB, free: 1.629 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.59e-05/0.005771, allocations: 4 kB / 297.3 MB, free: 1.625 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.005772, allocations: 0 / 297.3 MB, free: 1.625 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.526e-05/0.005787, allocations: 3.938 kB / 297.3 MB, free: 1.621 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.0003364/0.006124, allocations: 333.8 kB / 297.6 MB, free: 1.266 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.006156, allocations: 12.03 kB / 297.7 MB, free: 1.254 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.122e-05/0.006187, allocations: 3.938 kB / 297.7 MB, free: 1.25 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.292e-05/0.00624, allocations: 101.2 kB / 297.8 MB, free: 1.125 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.006252, allocations: 4 kB / 297.8 MB, free: 1.121 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.493e-06/0.006258, allocations: 0 / 297.8 MB, free: 1.121 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.572e-05/0.006324, allocations: 59.39 kB / 297.8 MB, free: 1.051 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-06/0.00633, allocations: 4 kB / 297.8 MB, free: 1.047 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-06/0.006337, allocations: 3.938 kB / 297.8 MB, free: 1.043 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.006341, allocations: 0 / 297.8 MB, free: 1.043 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.689e-05/0.006358, allocations: 29.69 kB / 297.9 MB, free: 1.008 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.849e-05/0.006416, allocations: 57.05 kB / 297.9 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.041e-05/0.006457, allocations: 52.25 kB / 298 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.714e-05/0.006474, allocations: 34.56 kB / 298 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.256e-06/0.006477, allocations: 0 / 298 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.006509, allocations: 64.31 kB / 298.1 MB, free: 0.75 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.00651, allocations: 0 / 298.1 MB, free: 0.75 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.000113/0.006623, allocations: 114.8 kB / 298.2 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.006657, allocations: 85.09 kB / 298.3 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.282e-05/0.00669, allocations: 93.8 kB / 298.3 MB, free: 420 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.138e-05/0.006701, allocations: 25.7 kB / 298.4 MB, free: 388 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.273e-05/0.006724, allocations: 80.14 kB / 298.4 MB, free: 304 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.66e-05/0.006741, allocations: 0 / 298.4 MB, free: 304 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.122e-05/0.006772, allocations: 17.72 kB / 298.5 MB, free: 280 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.006876, allocations: 314.8 kB / 298.8 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.76e-05/0.006904, allocations: 29.7 kB / 298.8 MB, free: 15.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.474e-05/0.006919, allocations: 25.7 kB / 298.8 MB, free: 15.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.391e-05/0.006963, allocations: 68.44 kB / 298.9 MB, free: 15.81 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.006965, allocations: 0 / 298.9 MB, free: 15.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.006e-05/0.007035, allocations: 89.05 kB / 299 MB, free: 15.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.474e-05/0.00707, allocations: 29.7 kB / 299 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.007074, allocations: 0 / 299 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.117e-06/0.007083, allocations: 3.984 kB / 299 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.548e-06/0.007088, allocations: 0 / 299 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.555e-06/0.00709, allocations: 0 / 299 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.039e-05/0.007111, allocations: 8.625 kB / 299 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.007117, allocations: 0 / 299 MB, free: 15.66 MB / 298.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 6.098e-05/0.007178, allocations: 135.6 kB / 299.2 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.619e-06/0.007182, allocations: 7.938 kB / 299.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.029e-05/0.007192, allocations: 3 kB / 299.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.007195, allocations: 0 / 299.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.007196, allocations: 0 / 299.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.0072, allocations: 3.938 kB / 299.2 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.301e-05/0.007253, allocations: 65.89 kB / 299.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-07/0.007254, allocations: 0 / 299.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.81e-07/0.007254, allocations: 0 / 299.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.457e-06/0.007258, allocations: 0 / 299.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.21e-07/0.007258, allocations: 4 kB / 299.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.406e-06/0.007262, allocations: 4 kB / 299.2 MB, free: 15.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.61e-07/0.007262, allocations: 0 / 299.2 MB, free: 15.4 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.007263, allocations: 0 / 299.2 MB, free: 15.4 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.891e-05/0.007332, allocations: 120.4 kB / 299.4 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.007344, allocations: 4 kB / 299.4 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.28e-06/0.007349, allocations: 0 / 299.4 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.574e-06/0.007357, allocations: 0 / 299.4 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-06/0.007359, allocations: 0 / 299.4 MB, free: 15.25 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.157e-06/0.007368, allocations: 4.859 kB / 299.4 MB, free: 15.24 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007368, allocations: 32 / 299.4 MB, free: 15.24 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001934/0.007562, allocations: 59.73 kB / 299.4 MB, free: 15.18 MB / 298.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.001196/0.008758, allocations: 0.6349 MB / 300.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001058/0.008863, allocations: 123.6 kB / 300.2 MB, free: 14.56 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.008867, allocations: 0 / 300.2 MB, free: 14.56 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.27e-05/0.0089, allocations: 93.89 kB / 300.3 MB, free: 14.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.07e-05/0.008951, allocations: 2.5 kB / 300.3 MB, free: 14.45 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001668/0.009117, allocations: 121 kB / 300.4 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.628e-05/0.009144, allocations: 51.36 kB / 300.4 MB, free: 14.22 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.26e-06/0.009149, allocations: 0 / 300.4 MB, free: 14.22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.588e-05/0.009175, allocations: 51.38 kB / 300.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of SimCode: time 4.51e-07/0.009175, allocations: 4.125 kB / 300.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of Templates: time 0.003837/0.01301, allocations: 2.423 MB / 302.9 MB, free: 11.74 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.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: 2.921259820461273]