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.001928/0.001928, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.002319/0.002319, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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.607/1.607, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] 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.2449/0.2449, allocations: 46.92 MB / 357.1 MB, free: 10.33 MB / 286.1 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 0.002087/0.002087, allocations: 67.89 kB / 0.4914 GB, free: 7.504 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1638, allocations: 66 MB / 0.5558 GB, free: 5.383 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.002046/0.1658, allocations: 497 kB / 0.5563 GB, free: 4.895 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002496/0.1683, allocations: 1.157 MB / 0.5574 GB, free: 3.73 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.694e-05/0.1683, allocations: 0 / 0.5574 GB, free: 3.73 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.246e-05/0.1683, allocations: 0 / 0.5574 GB, free: 3.73 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.744e-06/0.1684, allocations: 4 kB / 0.5574 GB, free: 3.727 MB / 414.1 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.002396/0.1707, allocations: 0.6713 MB / 0.5581 GB, free: 3.059 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.745e-05/0.1708, allocations: 7.984 kB / 0.5581 GB, free: 3.051 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.018e-05/0.1709, allocations: 4 kB / 0.5581 GB, free: 3.047 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.942e-05/0.1709, allocations: 0 / 0.5581 GB, free: 3.047 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.188e-05/0.1709, allocations: 0 / 0.5581 GB, free: 3.047 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.154e-06/0.1709, allocations: 4 kB / 0.5581 GB, free: 3.043 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003388/0.1743, allocations: 2.448 MB / 0.5605 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.889e-06/0.1743, allocations: 0 / 0.5605 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.347e-05/0.1743, allocations: 4 kB / 0.5605 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000493/0.1748, allocations: 363.3 kB / 0.5609 GB, free: 236 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.1748, allocations: 0 / 0.5609 GB, free: 236 kB / 414.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1748, allocations: 0 / 0.5609 GB, free: 236 kB / 414.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.1748, allocations: 4 kB / 0.5609 GB, free: 232 kB / 414.1 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.000594/0.1754, allocations: 388.7 kB / 0.5612 GB, free: 15.79 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.1755, allocations: 8.031 kB / 0.5612 GB, free: 15.78 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.993e-05/0.1755, allocations: 0 / 0.5612 GB, free: 15.78 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001554/0.1757, allocations: 159.1 kB / 0.5614 GB, free: 15.59 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.1757, allocations: 3.938 kB / 0.5614 GB, free: 15.58 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.235e-05/0.1757, allocations: 4 kB / 0.5614 GB, free: 15.58 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001035/0.1758, allocations: 25.7 kB / 0.5614 GB, free: 15.55 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.1758, allocations: 7.984 kB / 0.5614 GB, free: 15.54 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.1758, allocations: 3.938 kB / 0.5614 GB, free: 15.54 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.1758, allocations: 0 / 0.5614 GB, free: 15.54 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.996e-05/0.1759, allocations: 4 kB / 0.5614 GB, free: 15.53 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001873/0.176, allocations: 145.7 kB / 0.5616 GB, free: 15.34 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.683e-05/0.1761, allocations: 30.48 kB / 0.5616 GB, free: 15.3 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.659e-05/0.1761, allocations: 4.859 kB / 0.5616 GB, free: 15.29 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.035e-05/0.1761, allocations: 0 / 0.5616 GB, free: 15.29 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.299e-05/0.1762, allocations: 64.25 kB / 0.5617 GB, free: 15.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.1762, allocations: 0 / 0.5617 GB, free: 15.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002065/0.1764, allocations: 63.47 kB / 0.5617 GB, free: 15.14 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.204e-05/0.1765, allocations: 81.05 kB / 0.5618 GB, free: 15.04 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.263e-05/0.1766, allocations: 93.81 kB / 0.5619 GB, free: 14.94 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.1766, allocations: 29.7 kB / 0.5619 GB, free: 14.91 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.592e-05/0.1766, allocations: 80.14 kB / 0.562 GB, free: 14.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/0.1766, allocations: 128 / 0.562 GB, free: 14.82 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.205e-05/0.1767, allocations: 17.7 kB / 0.562 GB, free: 14.8 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.1768, allocations: 310.8 kB / 0.5623 GB, free: 14.49 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.034e-05/0.1768, allocations: 4 kB / 0.5623 GB, free: 14.48 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.965e-06/0.1768, allocations: 4 kB / 0.5623 GB, free: 14.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.013e-05/0.1769, allocations: 60.27 kB / 0.5624 GB, free: 14.41 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1769, allocations: 0 / 0.5624 GB, free: 14.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.329e-05/0.177, allocations: 67.33 kB / 0.5624 GB, free: 14.33 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.104e-05/0.177, allocations: 39.92 kB / 0.5625 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.177, allocations: 0 / 0.5625 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.177, allocations: 0 / 0.5625 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.21e-07/0.177, allocations: 0 / 0.5625 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.1771, allocations: 0 / 0.5625 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.797e-05/0.1771, allocations: 4 kB / 0.5625 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.1771, allocations: 3.984 kB / 0.5625 GB, free: 14.28 MB / 430.1 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 0.0001273/0.1772, allocations: 139.5 kB / 0.5626 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.235e-05/0.1772, allocations: 7.984 kB / 0.5626 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.52e-05/0.1772, allocations: 11.11 kB / 0.5626 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.1772, allocations: 4 kB / 0.5626 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.1772, allocations: 0 / 0.5626 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1772, allocations: 3.938 kB / 0.5627 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001482/0.1774, allocations: 145.6 kB / 0.5628 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.92e-07/0.1774, allocations: 3.938 kB / 0.5628 GB, free: 13.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.026e-06/0.1774, allocations: 4 kB / 0.5628 GB, free: 13.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.1774, allocations: 0 / 0.5628 GB, free: 13.9 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.331e-06/0.1774, allocations: 0 / 0.5628 GB, free: 13.9 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.1774, allocations: 3.984 kB / 0.5628 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1774, allocations: 0 / 0.5628 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001259/0.1775, allocations: 102.6 kB / 0.5629 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.583e-05/0.1776, allocations: 81.09 kB / 0.563 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.1776, allocations: 0 / 0.563 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.275e-06/0.1776, allocations: 0 / 0.563 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.284e-05/0.1777, allocations: 4 kB / 0.563 GB, free: 13.67 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-06/0.1777, allocations: 0 / 0.563 GB, free: 13.67 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.845e-05/0.1777, allocations: 75.28 kB / 0.5631 GB, free: 13.6 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1777, allocations: 4.031 kB / 0.5631 GB, free: 13.59 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003606/0.1781, allocations: 59.73 kB / 0.5631 GB, free: 13.54 MB / 430.1 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.001673/0.1797, allocations: 0.519 MB / 0.5636 GB, free: 13.07 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001261/0.1799, allocations: 59.39 kB / 0.5637 GB, free: 13 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1799, allocations: 0 / 0.5637 GB, free: 13 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.956e-05/0.1799, allocations: 55.41 kB / 0.5637 GB, free: 12.94 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000138/0.1801, allocations: 7.938 kB / 0.5637 GB, free: 12.93 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002424/0.1803, allocations: 88.92 kB / 0.5638 GB, free: 12.82 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004172/0.1807, allocations: 0.6729 MB / 0.5645 GB, free: 12.12 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.624e-06/0.1807, allocations: 0 / 0.5645 GB, free: 12.12 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.636e-05/0.1807, allocations: 15.5 kB / 0.5645 GB, free: 12.1 MB / 430.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1807, allocations: 0 / 0.5645 GB, free: 12.1 MB / 430.1 MB Notification: Performance of Templates: time 0.006163/0.1869, allocations: 2.133 MB / 0.5666 GB, free: 9.961 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.5554364286363125]