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.0009706/0.0009706, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001843/0.001843, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.003/1.003, allocations: 177.1 MB / 205 MB, free: 5.602 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.2659/0.2659, allocations: 34.25 MB / 295.7 MB, free: 0.7617 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.593e-06/1.593e-06, allocations: 0 / 378 MB, free: 2.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.2e-05/2.36e-05, allocations: 5.266 kB / 378 MB, free: 2.676 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001429/0.001453, allocations: 0.5047 MB / 378.5 MB, free: 2.168 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001973/0.003426, allocations: 1.135 MB / 379.7 MB, free: 1.023 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.604e-05/0.003452, allocations: 4 kB / 379.7 MB, free: 1.02 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.476e-05/0.003477, allocations: 3.938 kB / 379.7 MB, free: 1.016 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.023e-06/0.003484, allocations: 0 / 379.7 MB, free: 1.016 MB / 346.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.002078/0.005562, allocations: 0.7482 MB / 380.4 MB, free: 280 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.072e-05/0.005612, allocations: 0 / 380.4 MB, free: 280 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.435e-05/0.005647, allocations: 3.984 kB / 380.4 MB, free: 276 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.843e-05/0.005675, allocations: 4 kB / 380.4 MB, free: 272 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.892e-05/0.005694, allocations: 0 / 380.4 MB, free: 272 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.866e-06/0.005703, allocations: 0 / 380.4 MB, free: 272 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001968/0.007671, allocations: 2.466 MB / 382.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.266e-06/0.007679, allocations: 0 / 382.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.195e-05/0.007701, allocations: 4 kB / 382.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003901/0.008091, allocations: 375.3 kB / 383.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.008094, allocations: 0 / 383.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.82e-07/0.008094, allocations: 4 kB / 383.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.008099, allocations: 0 / 383.3 MB, free: 13.43 MB / 362.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.0004178/0.008517, allocations: 405.4 kB / 383.7 MB, free: 12.99 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.224e-05/0.008589, allocations: 8.031 kB / 383.7 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.306e-05/0.008632, allocations: 4 kB / 383.7 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.888e-05/0.008701, allocations: 112.1 kB / 383.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.008714, allocations: 0 / 383.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.265e-05/0.008726, allocations: 3.938 kB / 383.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001046/0.008831, allocations: 63.34 kB / 383.8 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.008843, allocations: 0 / 383.8 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.008853, allocations: 3.984 kB / 383.8 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.008862, allocations: 0 / 383.8 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.985e-05/0.008881, allocations: 33.69 kB / 383.9 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.925e-05/0.008971, allocations: 104.6 kB / 384 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.823e-05/0.009019, allocations: 52.8 kB / 384 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.192e-05/0.009041, allocations: 41.33 kB / 384.1 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.697e-06/0.009045, allocations: 64 / 384.1 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.009081, allocations: 67.08 kB / 384.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.009082, allocations: 4 kB / 384.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001693/0.009251, allocations: 118.7 kB / 384.3 MB, free: 12.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.009285, allocations: 77.11 kB / 384.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.057e-05/0.009365, allocations: 146.2 kB / 384.5 MB, free: 11.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.849e-06/0.009375, allocations: 29.7 kB / 384.5 MB, free: 11.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.638e-05/0.009402, allocations: 126.9 kB / 384.6 MB, free: 11.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.447e-05/0.009416, allocations: 352 / 384.6 MB, free: 11.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.399e-05/0.00944, allocations: 19.36 kB / 384.6 MB, free: 11.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.00955, allocations: 496.1 kB / 385.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.045e-05/0.009571, allocations: 29.64 kB / 385.2 MB, free: 11.26 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.334e-05/0.009584, allocations: 29.83 kB / 385.2 MB, free: 11.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.36e-05/0.009628, allocations: 67.09 kB / 385.3 MB, free: 11.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.00963, allocations: 3.938 kB / 385.3 MB, free: 11.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.756e-05/0.009687, allocations: 93.05 kB / 385.3 MB, free: 11.03 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.009712, allocations: 33.7 kB / 385.4 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.009725, allocations: 7.922 kB / 385.4 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.009742, allocations: 0 / 385.4 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.32e-06/0.009747, allocations: 4 kB / 385.4 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.032e-06/0.009753, allocations: 0 / 385.4 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.049e-05/0.009764, allocations: 0 / 385.4 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.00977, allocations: 4.094 kB / 385.4 MB, free: 10.98 MB / 362.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.331e-05/0.009844, allocations: 190.2 kB / 385.6 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.107e-06/0.009848, allocations: 0 / 385.6 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.627e-05/0.009864, allocations: 14.94 kB / 385.6 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.009865, allocations: 0 / 385.6 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.00987, allocations: 0 / 385.6 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.009873, allocations: 0 / 385.6 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.297e-05/0.009936, allocations: 104.6 kB / 385.7 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.009938, allocations: 0 / 385.7 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.815e-06/0.00994, allocations: 4 kB / 385.7 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.009943, allocations: 7.984 kB / 385.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.009952, allocations: 0 / 385.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.009953, allocations: 3.938 kB / 385.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.009954, allocations: 0 / 385.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.311e-05/0.01004, allocations: 127.9 kB / 385.8 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.839e-06/0.01004, allocations: 4 kB / 385.8 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.328e-05/0.01006, allocations: 0 / 385.8 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.765e-06/0.01006, allocations: 3.938 kB / 385.8 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.366e-05/0.01008, allocations: 3.938 kB / 385.9 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.853e-06/0.01008, allocations: 0 / 385.9 MB, free: 10.44 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.317e-05/0.01011, allocations: 127.2 kB / 386 MB, free: 10.31 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01011, allocations: 4 kB / 386 MB, free: 10.31 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002972/0.01041, allocations: 47.8 kB / 386 MB, free: 10.26 MB / 362.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.001483/0.01189, allocations: 0.5789 MB / 386.6 MB, free: 9.758 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001163/0.01201, allocations: 114.5 kB / 386.7 MB, free: 9.617 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.01201, allocations: 0 / 386.7 MB, free: 9.617 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.714e-05/0.01205, allocations: 92.78 kB / 386.8 MB, free: 9.504 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001229/0.01217, allocations: 4 kB / 386.8 MB, free: 9.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001827/0.01235, allocations: 121.6 kB / 386.9 MB, free: 9.344 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.178e-05/0.01238, allocations: 51.36 kB / 387 MB, free: 9.273 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.16e-06/0.01239, allocations: 3.938 kB / 387 MB, free: 9.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.595e-05/0.01241, allocations: 12.62 kB / 387 MB, free: 9.258 MB / 362.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01241, allocations: 4 kB / 387 MB, free: 9.254 MB / 362.7 MB Notification: Performance of Templates: time 0.004782/0.01719, allocations: 2.205 MB / 389.2 MB, free: 7.043 MB / 362.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: 3.3249471900053322]