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.0009741/0.0009741, allocations: 80.92 kB / 21.5 MB, free: 2.992 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.001146/0.001146, allocations: 176.5 kB / 24.92 MB, free: 9.152 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 1/1, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.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.2499/0.2499, allocations: 34.26 MB / 296.1 MB, free: 0.7266 MB / 266.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.663e-06/1.663e-06, allocations: 0 / 325.2 MB, free: 7.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.414e-05/1.58e-05, allocations: 3.406 kB / 325.2 MB, free: 7.727 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001363/0.001379, allocations: 0.4978 MB / 325.7 MB, free: 7.227 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001842/0.003221, allocations: 1.146 MB / 326.9 MB, free: 6.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.905e-05/0.00324, allocations: 0 / 326.9 MB, free: 6.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.344e-05/0.003253, allocations: 0 / 326.9 MB, free: 6.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.312e-06/0.00326, allocations: 0 / 326.9 MB, free: 6.07 MB / 298.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.001776/0.005036, allocations: 0.7501 MB / 327.6 MB, free: 5.332 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.346e-05/0.005079, allocations: 12.41 kB / 327.6 MB, free: 5.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.787e-05/0.005117, allocations: 4 kB / 327.6 MB, free: 5.316 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.796e-05/0.005145, allocations: 0 / 327.6 MB, free: 5.316 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.674e-05/0.005162, allocations: 0 / 327.6 MB, free: 5.316 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.103e-06/0.005169, allocations: 0 / 327.6 MB, free: 5.316 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002509/0.007678, allocations: 2.191 MB / 329.8 MB, free: 3.125 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.159e-05/0.00769, allocations: 3.938 kB / 329.8 MB, free: 3.121 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.979e-05/0.007709, allocations: 11.98 kB / 329.8 MB, free: 3.109 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000504/0.008213, allocations: 375.3 kB / 330.2 MB, free: 2.742 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.764e-06/0.008215, allocations: 0 / 330.2 MB, free: 2.742 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.008216, allocations: 0 / 330.2 MB, free: 2.742 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.008219, allocations: 0 / 330.2 MB, free: 2.742 MB / 298.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.0003353/0.008555, allocations: 277.8 kB / 330.5 MB, free: 2.441 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.008589, allocations: 8.031 kB / 330.5 MB, free: 2.434 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.427e-05/0.008614, allocations: 0 / 330.5 MB, free: 2.434 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.881e-05/0.008682, allocations: 113.2 kB / 330.6 MB, free: 2.297 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.468e-06/0.008692, allocations: 0 / 330.6 MB, free: 2.297 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.548e-06/0.008701, allocations: 0 / 330.6 MB, free: 2.297 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.636e-05/0.008778, allocations: 67.34 kB / 330.7 MB, free: 2.219 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.008784, allocations: 0 / 330.7 MB, free: 2.219 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.799e-06/0.008789, allocations: 0 / 330.7 MB, free: 2.219 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.008794, allocations: 0 / 330.7 MB, free: 2.219 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.592e-05/0.00881, allocations: 25.7 kB / 330.7 MB, free: 2.188 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.062e-05/0.00888, allocations: 61.03 kB / 330.7 MB, free: 2.113 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.376e-05/0.008934, allocations: 48.25 kB / 330.8 MB, free: 2.051 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.971e-05/0.008954, allocations: 30.56 kB / 330.8 MB, free: 2.012 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.046e-06/0.008957, allocations: 0 / 330.8 MB, free: 2.012 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.49e-05/0.008992, allocations: 60.33 kB / 330.9 MB, free: 1.938 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.21e-07/0.008992, allocations: 4 kB / 330.9 MB, free: 1.934 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001171/0.009109, allocations: 114.7 kB / 331 MB, free: 1.797 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.059e-05/0.00915, allocations: 81.05 kB / 331.1 MB, free: 1.699 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.859e-05/0.009189, allocations: 97.86 kB / 331.2 MB, free: 1.594 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.077e-05/0.009199, allocations: 25.7 kB / 331.2 MB, free: 1.562 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.159e-05/0.009221, allocations: 84.08 kB / 331.3 MB, free: 1.477 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.467e-05/0.009236, allocations: 1.375 kB / 331.3 MB, free: 1.477 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.507e-05/0.009261, allocations: 13.72 kB / 331.3 MB, free: 1.457 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.813e-05/0.009349, allocations: 314.8 kB / 331.6 MB, free: 1.141 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.626e-05/0.009365, allocations: 29.81 kB / 331.6 MB, free: 1.105 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.361e-05/0.009379, allocations: 33.72 kB / 331.7 MB, free: 1.066 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.321e-05/0.009422, allocations: 60.27 kB / 331.7 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.009424, allocations: 0 / 331.7 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.19e-05/0.009486, allocations: 85.09 kB / 331.8 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.009513, allocations: 29.7 kB / 331.8 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.009517, allocations: 3.938 kB / 331.8 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.00953, allocations: 4 kB / 331.8 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.891e-06/0.009536, allocations: 3.938 kB / 331.8 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.645e-06/0.009539, allocations: 0 / 331.8 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.276e-05/0.009552, allocations: 4.094 kB / 331.8 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.009557, allocations: 0 / 331.8 MB, free: 0.8398 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 7.043e-05/0.009627, allocations: 135.5 kB / 332 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.294e-06/0.009635, allocations: 4 kB / 332 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.17e-05/0.009646, allocations: 10.97 kB / 332 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.009648, allocations: 0 / 332 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.009652, allocations: 11.94 kB / 332 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.009654, allocations: 0 / 332 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.237e-05/0.009706, allocations: 57.91 kB / 332.1 MB, free: 0.5898 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.009707, allocations: 0 / 332.1 MB, free: 0.5898 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.009708, allocations: 4 kB / 332.1 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.123e-06/0.009709, allocations: 0 / 332.1 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.789e-06/0.009714, allocations: 4 kB / 332.1 MB, free: 0.582 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.009715, allocations: 0 / 332.1 MB, free: 0.582 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.009716, allocations: 0 / 332.1 MB, free: 0.582 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.988e-05/0.009796, allocations: 120.4 kB / 332.2 MB, free: 444 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.229e-06/0.009801, allocations: 4.344 kB / 332.2 MB, free: 440 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.105e-05/0.009812, allocations: 0 / 332.2 MB, free: 440 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.394e-06/0.009819, allocations: 0 / 332.2 MB, free: 440 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.087e-06/0.009828, allocations: 3.984 kB / 332.2 MB, free: 436 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.009831, allocations: 32 / 332.2 MB, free: 436 kB / 298.7 MB Notification: Performance of sorting global known variables: time 7.825e-06/0.009838, allocations: 16.8 kB / 332.2 MB, free: 416 kB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009839, allocations: 3.938 kB / 332.2 MB, free: 412 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003043/0.01014, allocations: 51.73 kB / 332.3 MB, free: 360 kB / 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.001589/0.01173, allocations: 0.599 MB / 332.9 MB, free: 15.88 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001043/0.01184, allocations: 115.6 kB / 333 MB, free: 15.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.01184, allocations: 4 kB / 333 MB, free: 15.74 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.659e-05/0.01188, allocations: 81.97 kB / 333.1 MB, free: 15.64 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.069e-05/0.01193, allocations: 4 kB / 333.1 MB, free: 15.64 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000156/0.01208, allocations: 120.5 kB / 333.2 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.06e-05/0.01211, allocations: 51.36 kB / 333.2 MB, free: 15.41 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.05e-06/0.01212, allocations: 0 / 333.2 MB, free: 15.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.671e-05/0.01216, allocations: 59.5 kB / 333.3 MB, free: 15.36 MB / 314.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01216, allocations: 0 / 333.3 MB, free: 15.36 MB / 314.7 MB Notification: Performance of Templates: time 0.005205/0.01736, allocations: 2.42 MB / 335.7 MB, free: 12.93 MB / 314.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 -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.9633005899377167]