Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001111/0.001111, allocations: 80.8 kB / 21.5 MB, free: 2.988 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.001028/0.001028, allocations: 170.8 kB / 24.91 MB, free: 9.145 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.022/1.022, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.276/0.276, allocations: 32.81 MB / 294.6 MB, free: 1.25 MB / 266.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.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 323.2 MB, free: 9.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.707e-05/2.842e-05, allocations: 4.875 kB / 323.2 MB, free: 9.746 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001283/0.001311, allocations: 0.501 MB / 323.7 MB, free: 9.242 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.00283, allocations: 1.139 MB / 324.8 MB, free: 8.094 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.951e-05/0.002849, allocations: 0 / 324.8 MB, free: 8.094 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.365e-05/0.002863, allocations: 0 / 324.8 MB, free: 8.094 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.053e-06/0.00287, allocations: 0 / 324.8 MB, free: 8.094 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.0.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.001406/0.004275, allocations: 0.7578 MB / 325.6 MB, free: 7.348 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.304e-05/0.004318, allocations: 4.625 kB / 325.6 MB, free: 7.344 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.311e-05/0.004352, allocations: 0 / 325.6 MB, free: 7.344 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.622e-05/0.004378, allocations: 7.984 kB / 325.6 MB, free: 7.336 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.864e-05/0.004396, allocations: 4 kB / 325.6 MB, free: 7.332 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.554e-06/0.004404, allocations: 0 / 325.6 MB, free: 7.332 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001824/0.006228, allocations: 2.19 MB / 327.8 MB, free: 5.141 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.298e-06/0.006238, allocations: 7.984 kB / 327.8 MB, free: 5.133 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.335e-05/0.006251, allocations: 0 / 327.8 MB, free: 5.133 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003108/0.006562, allocations: 379.2 kB / 328.2 MB, free: 4.762 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.006566, allocations: 3.984 kB / 328.2 MB, free: 4.758 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.006568, allocations: 0 / 328.2 MB, free: 4.758 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.006572, allocations: 0 / 328.2 MB, free: 4.758 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.000273/0.006845, allocations: 281.9 kB / 328.5 MB, free: 4.453 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.006876, allocations: 8.031 kB / 328.5 MB, free: 4.445 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.424e-05/0.006901, allocations: 0 / 328.5 MB, free: 4.445 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.982e-05/0.00695, allocations: 105.2 kB / 328.6 MB, free: 4.316 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.205e-06/0.006959, allocations: 0 / 328.6 MB, free: 4.316 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.923e-06/0.006966, allocations: 0 / 328.6 MB, free: 4.316 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.36e-05/0.007029, allocations: 67.33 kB / 328.6 MB, free: 4.238 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.721e-06/0.007035, allocations: 0 / 328.6 MB, free: 4.238 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-06/0.007041, allocations: 3.938 kB / 328.6 MB, free: 4.234 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.007046, allocations: 0 / 328.6 MB, free: 4.234 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.405e-05/0.00706, allocations: 33.7 kB / 328.7 MB, free: 4.195 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.57e-05/0.007116, allocations: 56.98 kB / 328.7 MB, free: 4.125 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.882e-05/0.007154, allocations: 44.31 kB / 328.8 MB, free: 4.066 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.718e-05/0.007172, allocations: 34.55 kB / 328.8 MB, free: 4.023 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.368e-06/0.007176, allocations: 3.984 kB / 328.8 MB, free: 4.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.007208, allocations: 64.33 kB / 328.9 MB, free: 3.941 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.01e-07/0.007208, allocations: 0 / 328.9 MB, free: 3.941 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.000103/0.007311, allocations: 114.7 kB / 329 MB, free: 3.805 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.303e-05/0.007344, allocations: 85.09 kB / 329.1 MB, free: 3.703 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.761e-05/0.007372, allocations: 89.86 kB / 329.1 MB, free: 3.605 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.608e-06/0.007381, allocations: 29.83 kB / 329.2 MB, free: 3.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.656e-05/0.007398, allocations: 80.14 kB / 329.3 MB, free: 3.488 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.503e-05/0.007413, allocations: 1.203 kB / 329.3 MB, free: 3.488 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.987e-05/0.007433, allocations: 13.72 kB / 329.3 MB, free: 3.469 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.718e-05/0.00753, allocations: 314.8 kB / 329.6 MB, free: 3.152 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.349e-05/0.007544, allocations: 25.7 kB / 329.6 MB, free: 3.121 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.205e-05/0.007556, allocations: 29.72 kB / 329.6 MB, free: 3.086 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.147e-05/0.007597, allocations: 68.19 kB / 329.7 MB, free: 3.004 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.007599, allocations: 0 / 329.7 MB, free: 3.004 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.883e-05/0.007648, allocations: 89.17 kB / 329.8 MB, free: 2.898 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/0.007676, allocations: 29.7 kB / 329.8 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.007681, allocations: 4 kB / 329.8 MB, free: 2.859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.007694, allocations: 3.984 kB / 329.8 MB, free: 2.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.438e-06/0.007698, allocations: 3.938 kB / 329.8 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.304e-06/0.007701, allocations: 0 / 329.8 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.27e-05/0.007713, allocations: 0 / 329.8 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-06/0.007719, allocations: 0 / 329.8 MB, free: 2.852 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 5.727e-05/0.007776, allocations: 135.5 kB / 330 MB, free: 2.703 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.286e-06/0.007779, allocations: 0 / 330 MB, free: 2.703 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.426e-06/0.007788, allocations: 7.031 kB / 330 MB, free: 2.695 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.007789, allocations: 4 kB / 330 MB, free: 2.691 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.488e-05/0.007824, allocations: 3.938 kB / 330 MB, free: 2.688 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.007826, allocations: 0 / 330 MB, free: 2.688 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.03e-05/0.007867, allocations: 61.89 kB / 330 MB, free: 2.609 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.71e-07/0.007867, allocations: 0 / 330 MB, free: 2.609 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.142e-06/0.007868, allocations: 3.938 kB / 330 MB, free: 2.605 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.91e-07/0.007869, allocations: 4 kB / 330 MB, free: 2.602 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.417e-06/0.007872, allocations: 3.938 kB / 330 MB, free: 2.598 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-07/0.007873, allocations: 0 / 330 MB, free: 2.598 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.007874, allocations: 0 / 330 MB, free: 2.598 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.894e-05/0.007933, allocations: 120.5 kB / 330.2 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.448e-06/0.007937, allocations: 4.344 kB / 330.2 MB, free: 2.445 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.557e-06/0.007947, allocations: 0 / 330.2 MB, free: 2.445 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.989e-06/0.007952, allocations: 4 kB / 330.2 MB, free: 2.441 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.766e-06/0.00796, allocations: 4 kB / 330.2 MB, free: 2.438 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-06/0.007963, allocations: 4 kB / 330.2 MB, free: 2.434 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.833e-06/0.00797, allocations: 8.797 kB / 330.2 MB, free: 2.422 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.00797, allocations: 0 / 330.2 MB, free: 2.422 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001794/0.008149, allocations: 55.73 kB / 330.2 MB, free: 2.367 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.001075/0.009224, allocations: 0.5912 MB / 330.8 MB, free: 1.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.162e-05/0.009316, allocations: 123.6 kB / 331 MB, free: 1.762 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.009319, allocations: 0 / 331 MB, free: 1.762 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.861e-05/0.009347, allocations: 98.02 kB / 331.1 MB, free: 1.645 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.099e-05/0.009388, allocations: 0 / 331.1 MB, free: 1.645 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002332/0.009621, allocations: 108.6 kB / 331.2 MB, free: 1.504 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.416e-05/0.009645, allocations: 51.36 kB / 331.2 MB, free: 1.434 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.6e-06/0.009651, allocations: 4 kB / 331.2 MB, free: 1.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.738e-05/0.009678, allocations: 55.31 kB / 331.3 MB, free: 1.375 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.009679, allocations: 0 / 331.3 MB, free: 1.375 MB / 298.7 MB Notification: Performance of Templates: time 0.003617/0.0133, allocations: 2.426 MB / 333.7 MB, free: 14.94 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 3.05046601081267]