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.0009668/0.0009668, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001094/0.001094, allocations: 170.3 kB / 24.91 MB, free: 8.723 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 0.9888/0.9888, allocations: 177.1 MB / 205.3 MB, free: 5.094 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.2356/0.2356, allocations: 32.8 MB / 294.6 MB, free: 1.191 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.614e-06/1.614e-06, allocations: 0 / 323.2 MB, free: 9.715 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.614e-05/1.775e-05, allocations: 3.672 kB / 323.2 MB, free: 9.711 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001048/0.001066, allocations: 0.5467 MB / 323.8 MB, free: 9.164 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00165/0.002716, allocations: 1.143 MB / 324.9 MB, free: 8.012 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.017e-05/0.002736, allocations: 0 / 324.9 MB, free: 8.012 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.251e-05/0.002748, allocations: 7.938 kB / 324.9 MB, free: 8.004 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.533e-06/0.002755, allocations: 0 / 324.9 MB, free: 8.004 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.001421/0.004176, allocations: 0.7314 MB / 325.7 MB, free: 7.281 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.077e-05/0.004217, allocations: 8.562 kB / 325.7 MB, free: 7.273 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.014e-05/0.004247, allocations: 3.984 kB / 325.7 MB, free: 7.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.372e-05/0.00427, allocations: 4 kB / 325.7 MB, free: 7.266 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.507e-05/0.004286, allocations: 3.938 kB / 325.7 MB, free: 7.262 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.49e-06/0.004291, allocations: 0 / 325.7 MB, free: 7.262 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001843/0.006134, allocations: 2.194 MB / 327.9 MB, free: 5.066 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.153e-06/0.006141, allocations: 3.938 kB / 327.9 MB, free: 5.062 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.217e-05/0.006153, allocations: 0 / 327.9 MB, free: 5.062 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003335/0.006487, allocations: 383.3 kB / 328.3 MB, free: 4.688 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.503e-06/0.006488, allocations: 0 / 328.3 MB, free: 4.688 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.006489, allocations: 0 / 328.3 MB, free: 4.688 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.916e-06/0.006492, allocations: 4 kB / 328.3 MB, free: 4.684 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.0002301/0.006722, allocations: 273.8 kB / 328.5 MB, free: 4.387 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.766e-05/0.00675, allocations: 12.03 kB / 328.5 MB, free: 4.375 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.863e-05/0.006768, allocations: 0 / 328.5 MB, free: 4.375 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.095e-05/0.006819, allocations: 113.1 kB / 328.6 MB, free: 4.238 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.354e-06/0.006827, allocations: 4 kB / 328.7 MB, free: 4.234 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.38e-06/0.006832, allocations: 4 kB / 328.7 MB, free: 4.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.702e-05/0.006889, allocations: 55.34 kB / 328.7 MB, free: 4.164 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.309e-06/0.006894, allocations: 0 / 328.7 MB, free: 4.164 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.719e-06/0.006899, allocations: 0 / 328.7 MB, free: 4.164 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.006903, allocations: 4 kB / 328.7 MB, free: 4.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.211e-05/0.006915, allocations: 25.7 kB / 328.7 MB, free: 4.129 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.111e-05/0.006966, allocations: 57.05 kB / 328.8 MB, free: 4.059 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.526e-05/0.007001, allocations: 48.2 kB / 328.8 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.435e-05/0.007016, allocations: 34.66 kB / 328.9 MB, free: 3.953 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.445e-06/0.007018, allocations: 4 kB / 328.9 MB, free: 3.949 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.007045, allocations: 64.27 kB / 328.9 MB, free: 3.871 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 5.41e-07/0.007045, allocations: 0 / 328.9 MB, free: 3.871 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 8.879e-05/0.007134, allocations: 118.7 kB / 329.1 MB, free: 3.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.687e-05/0.007161, allocations: 77.11 kB / 329.1 MB, free: 3.637 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.65e-05/0.007188, allocations: 89.86 kB / 329.2 MB, free: 3.539 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.015e-06/0.007196, allocations: 25.7 kB / 329.2 MB, free: 3.508 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.713e-05/0.007213, allocations: 84.08 kB / 329.3 MB, free: 3.422 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.256e-05/0.007225, allocations: 5.203 kB / 329.3 MB, free: 3.418 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.786e-05/0.007243, allocations: 9.719 kB / 329.3 MB, free: 3.402 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.408e-05/0.007307, allocations: 319 kB / 329.7 MB, free: 3.082 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.126e-05/0.007318, allocations: 25.7 kB / 329.7 MB, free: 3.051 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.047e-06/0.007328, allocations: 29.64 kB / 329.7 MB, free: 3.016 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.633e-05/0.007364, allocations: 72.23 kB / 329.8 MB, free: 2.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.007365, allocations: 0 / 329.8 MB, free: 2.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.242e-05/0.007408, allocations: 85.11 kB / 329.9 MB, free: 2.828 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.007429, allocations: 33.69 kB / 329.9 MB, free: 2.789 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.487e-06/0.007433, allocations: 0 / 329.9 MB, free: 2.789 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.296e-06/0.007441, allocations: 0 / 329.9 MB, free: 2.789 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.028e-06/0.007445, allocations: 11.97 kB / 329.9 MB, free: 2.777 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.284e-06/0.007447, allocations: 0 / 329.9 MB, free: 2.777 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.015e-05/0.007457, allocations: 4 kB / 329.9 MB, free: 2.773 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.967e-06/0.007461, allocations: 0 / 329.9 MB, free: 2.773 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.411e-05/0.007515, allocations: 131.5 kB / 330 MB, free: 2.629 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.42e-06/0.007521, allocations: 4 kB / 330 MB, free: 2.625 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.376e-06/0.007529, allocations: 3 kB / 330 MB, free: 2.621 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.61e-07/0.00753, allocations: 0 / 330 MB, free: 2.621 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.007532, allocations: 3.938 kB / 330.1 MB, free: 2.617 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.007537, allocations: 7.969 kB / 330.1 MB, free: 2.609 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.984e-05/0.007577, allocations: 65.91 kB / 330.1 MB, free: 2.527 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.007577, allocations: 0 / 330.1 MB, free: 2.527 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.8e-07/0.007578, allocations: 0 / 330.1 MB, free: 2.527 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-07/0.007578, allocations: 0 / 330.1 MB, free: 2.527 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.737e-06/0.007582, allocations: 0 / 330.1 MB, free: 2.527 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.11e-07/0.007582, allocations: 0 / 330.1 MB, free: 2.527 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.02e-07/0.007583, allocations: 0 / 330.1 MB, free: 2.527 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.497e-05/0.007638, allocations: 120.4 kB / 330.2 MB, free: 2.379 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.087e-06/0.007642, allocations: 4.344 kB / 330.2 MB, free: 2.375 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.934e-06/0.00765, allocations: 0 / 330.2 MB, free: 2.375 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.24e-06/0.007655, allocations: 4 kB / 330.2 MB, free: 2.371 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.632e-06/0.007662, allocations: 4.031 kB / 330.3 MB, free: 2.367 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-06/0.007663, allocations: 0 / 330.3 MB, free: 2.367 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.151e-06/0.00767, allocations: 12.83 kB / 330.3 MB, free: 2.352 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.00767, allocations: 0 / 330.3 MB, free: 2.352 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001875/0.007857, allocations: 55.73 kB / 330.3 MB, free: 2.297 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.001092/0.008949, allocations: 0.6001 MB / 330.9 MB, free: 1.832 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.563e-05/0.009034, allocations: 123.7 kB / 331 MB, free: 1.684 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.009036, allocations: 0 / 331 MB, free: 1.684 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.958e-05/0.009066, allocations: 85.97 kB / 331.1 MB, free: 1.578 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.408e-05/0.00911, allocations: 5.531 kB / 331.1 MB, free: 1.574 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001301/0.00924, allocations: 116.5 kB / 331.2 MB, free: 1.426 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.583e-05/0.009266, allocations: 55.48 kB / 331.3 MB, free: 1.352 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.829e-06/0.009271, allocations: 0 / 331.3 MB, free: 1.352 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.742e-05/0.009298, allocations: 51.38 kB / 331.3 MB, free: 1.301 MB / 298.7 MB Notification: Performance of SimCode: time 4.6e-07/0.009299, allocations: 0 / 331.3 MB, free: 1.301 MB / 298.7 MB Notification: Performance of Templates: time 0.003369/0.01267, allocations: 2.43 MB / 333.8 MB, free: 14.87 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 -s gbode -gbm=radauIIA3 -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: 2.8103997400030494]