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.001109/0.001109, allocations: 80.8 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.001261/0.001261, allocations: 172.7 kB / 24.91 MB, free: 9.148 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.9991/0.9991, allocations: 177.1 MB / 205.3 MB, free: 5.48 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.2648/0.2648, allocations: 34.26 MB / 296.1 MB, free: 0.6523 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.282e-06/1.282e-06, allocations: 0 / 325.3 MB, free: 7.668 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.067e-05/2.195e-05, allocations: 4.109 kB / 325.3 MB, free: 7.664 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.00131/0.001332, allocations: 0.5385 MB / 325.8 MB, free: 7.125 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001398/0.00273, allocations: 1.143 MB / 326.9 MB, free: 5.973 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.826e-05/0.002748, allocations: 0 / 326.9 MB, free: 5.973 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.141e-05/0.00276, allocations: 0 / 326.9 MB, free: 5.973 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.191e-06/0.002766, allocations: 0 / 326.9 MB, free: 5.973 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.001467/0.004233, allocations: 0.7508 MB / 327.7 MB, free: 5.238 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.748e-05/0.00428, allocations: 0.5 kB / 327.7 MB, free: 5.238 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.345e-05/0.004314, allocations: 0 / 327.7 MB, free: 5.238 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.09e-05/0.004345, allocations: 4 kB / 327.7 MB, free: 5.234 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.593e-05/0.00436, allocations: 0 / 327.7 MB, free: 5.234 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.722e-06/0.004367, allocations: 0 / 327.7 MB, free: 5.234 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001668/0.006035, allocations: 2.206 MB / 329.9 MB, free: 3.027 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.945e-06/0.006043, allocations: 0 / 329.9 MB, free: 3.027 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.47e-05/0.006058, allocations: 0 / 329.9 MB, free: 3.027 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003564/0.006414, allocations: 383.3 kB / 330.3 MB, free: 2.652 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.006417, allocations: 0 / 330.3 MB, free: 2.652 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.006419, allocations: 7.938 kB / 330.3 MB, free: 2.645 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.177e-06/0.006423, allocations: 0 / 330.3 MB, free: 2.645 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.0002731/0.006696, allocations: 273.9 kB / 330.6 MB, free: 2.348 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.006729, allocations: 12.03 kB / 330.6 MB, free: 2.336 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.533e-05/0.006754, allocations: 0 / 330.6 MB, free: 2.336 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.475e-05/0.006809, allocations: 101.2 kB / 330.7 MB, free: 2.211 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-06/0.006817, allocations: 0 / 330.7 MB, free: 2.211 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.3e-06/0.006823, allocations: 4 kB / 330.7 MB, free: 2.207 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.64e-05/0.006889, allocations: 67.27 kB / 330.7 MB, free: 2.129 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.911e-06/0.006895, allocations: 0 / 330.7 MB, free: 2.129 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.029e-06/0.0069, allocations: 4 kB / 330.7 MB, free: 2.125 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.848e-06/0.006904, allocations: 0 / 330.7 MB, free: 2.125 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.453e-05/0.006918, allocations: 25.7 kB / 330.8 MB, free: 2.094 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.017e-05/0.006979, allocations: 57.05 kB / 330.8 MB, free: 2.023 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.965e-05/0.007018, allocations: 40.28 kB / 330.9 MB, free: 1.969 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.605e-05/0.007034, allocations: 34.66 kB / 330.9 MB, free: 1.926 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-06/0.007037, allocations: 0 / 330.9 MB, free: 1.926 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/0.007072, allocations: 68.17 kB / 331 MB, free: 1.844 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 5.31e-07/0.007072, allocations: 4 kB / 331 MB, free: 1.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001109/0.007183, allocations: 118.8 kB / 331.1 MB, free: 1.699 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/0.007216, allocations: 77.11 kB / 331.2 MB, free: 1.605 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.475e-05/0.007251, allocations: 97.78 kB / 331.3 MB, free: 1.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.007262, allocations: 29.69 kB / 331.3 MB, free: 1.465 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.959e-05/0.007281, allocations: 84.14 kB / 331.4 MB, free: 1.379 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.007296, allocations: 1.375 kB / 331.4 MB, free: 1.379 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-05/0.007317, allocations: 9.719 kB / 331.4 MB, free: 1.363 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.215e-05/0.007389, allocations: 314.8 kB / 331.7 MB, free: 1.047 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.707e-05/0.007406, allocations: 25.7 kB / 331.7 MB, free: 1.016 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.164e-05/0.007418, allocations: 29.83 kB / 331.7 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.084e-05/0.007458, allocations: 68.19 kB / 331.8 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.00746, allocations: 0 / 331.8 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.14e-05/0.007512, allocations: 85.11 kB / 331.9 MB, free: 0.793 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/0.007541, allocations: 33.7 kB / 331.9 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.007546, allocations: 0 / 331.9 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.779e-06/0.007556, allocations: 0 / 331.9 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.915e-06/0.007558, allocations: 3.938 kB / 331.9 MB, free: 0.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.765e-06/0.007561, allocations: 0 / 331.9 MB, free: 0.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.262e-05/0.007574, allocations: 4 kB / 331.9 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.00758, allocations: 8.078 kB / 331.9 MB, free: 0.7383 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 6.044e-05/0.007641, allocations: 135.5 kB / 332.1 MB, free: 0.5898 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.787e-06/0.007645, allocations: 0 / 332.1 MB, free: 0.5898 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.988e-06/0.007655, allocations: 6.938 kB / 332.1 MB, free: 0.582 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.007656, allocations: 0 / 332.1 MB, free: 0.582 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.00766, allocations: 7.938 kB / 332.1 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.007662, allocations: 0 / 332.1 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.988e-05/0.007712, allocations: 61.91 kB / 332.1 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.007713, allocations: 0 / 332.1 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.583e-06/0.007714, allocations: 3.984 kB / 332.1 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.007715, allocations: 4 kB / 332.2 MB, free: 500 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.977e-06/0.007719, allocations: 0 / 332.2 MB, free: 500 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-07/0.00772, allocations: 0 / 332.2 MB, free: 500 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.007721, allocations: 4 kB / 332.2 MB, free: 496 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.393e-05/0.007795, allocations: 116.5 kB / 332.3 MB, free: 348 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.308e-06/0.007799, allocations: 352 / 332.3 MB, free: 348 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.108e-05/0.00781, allocations: 4 kB / 332.3 MB, free: 344 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.141e-06/0.007816, allocations: 0 / 332.3 MB, free: 344 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.045e-06/0.007824, allocations: 0 / 332.3 MB, free: 344 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.007827, allocations: 3.938 kB / 332.3 MB, free: 340 kB / 298.7 MB Notification: Performance of sorting global known variables: time 9.427e-06/0.007836, allocations: 20.86 kB / 332.3 MB, free: 316 kB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007836, allocations: 3.938 kB / 332.3 MB, free: 312 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002081/0.008045, allocations: 55.73 kB / 332.4 MB, free: 256 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.001131/0.009176, allocations: 0.6002 MB / 333 MB, free: 15.79 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.666e-05/0.009272, allocations: 111.7 kB / 333.1 MB, free: 15.65 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.009276, allocations: 0 / 333.1 MB, free: 15.65 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.218e-05/0.009308, allocations: 93.95 kB / 333.2 MB, free: 15.54 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.076e-05/0.009358, allocations: 4.766 kB / 333.2 MB, free: 15.53 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001502/0.009509, allocations: 104.6 kB / 333.3 MB, free: 15.39 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.708e-05/0.009536, allocations: 55.34 kB / 333.3 MB, free: 15.32 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.561e-06/0.009541, allocations: 0 / 333.3 MB, free: 15.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.862e-05/0.00957, allocations: 51.5 kB / 333.4 MB, free: 15.27 MB / 314.7 MB Notification: Performance of SimCode: time 6.51e-07/0.009571, allocations: 4 kB / 333.4 MB, free: 15.27 MB / 314.7 MB Notification: Performance of Templates: time 0.003903/0.01347, allocations: 2.425 MB / 335.8 MB, free: 12.84 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 -s gbode -gbm=radauIIA3 -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.9887610259465873]