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.001386/0.001386, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001473/0.001473, allocations: 164.5 kB / 24.99 MB, free: 8.746 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.9298/0.9298, allocations: 177.1 MB / 205.3 MB, free: 5.633 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.2413/0.2413, allocations: 32.81 MB / 294.6 MB, free: 1.27 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.703e-06/1.703e-06, allocations: 0 / 376 MB, free: 5.016 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.67e-05/1.84e-05, allocations: 2.312 kB / 376 MB, free: 5.012 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001012/0.00103, allocations: 0.5162 MB / 376.5 MB, free: 4.492 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.002355, allocations: 1.135 MB / 377.6 MB, free: 3.348 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.095e-05/0.002376, allocations: 0 / 377.6 MB, free: 3.348 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.357e-05/0.00239, allocations: 0 / 377.6 MB, free: 3.348 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.661e-06/0.002395, allocations: 0 / 377.6 MB, free: 3.348 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.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.00136/0.003756, allocations: 0.7481 MB / 378.4 MB, free: 2.605 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.278e-05/0.003809, allocations: 0 / 378.4 MB, free: 2.605 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.391e-05/0.003843, allocations: 4 kB / 378.4 MB, free: 2.602 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.338e-05/0.003866, allocations: 0 / 378.4 MB, free: 2.602 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.876e-05/0.003885, allocations: 0 / 378.4 MB, free: 2.602 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.315e-06/0.003893, allocations: 0 / 378.4 MB, free: 2.602 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001885/0.005778, allocations: 2.466 MB / 380.8 MB, free: 140 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.863e-06/0.005785, allocations: 0 / 380.8 MB, free: 140 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.068e-05/0.005805, allocations: 8 kB / 380.9 MB, free: 132 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000335/0.00614, allocations: 371.3 kB / 381.2 MB, free: 15.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.006143, allocations: 4 kB / 381.2 MB, free: 15.76 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.006143, allocations: 0 / 381.2 MB, free: 15.76 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.006147, allocations: 0 / 381.2 MB, free: 15.76 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.0002892/0.006436, allocations: 401.5 kB / 381.6 MB, free: 15.33 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.006467, allocations: 12.03 kB / 381.6 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.054e-05/0.006498, allocations: 0 / 381.6 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.146e-05/0.006549, allocations: 112 kB / 381.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.206e-06/0.006558, allocations: 0 / 381.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.356e-06/0.006566, allocations: 4 kB / 381.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.673e-05/0.006643, allocations: 67.27 kB / 381.8 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.769e-06/0.006647, allocations: 0 / 381.8 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.334e-06/0.006655, allocations: 0 / 381.8 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.00666, allocations: 4 kB / 381.8 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.567e-05/0.006675, allocations: 33.64 kB / 381.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.739e-05/0.006753, allocations: 108.7 kB / 381.9 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.867e-05/0.006791, allocations: 52.75 kB / 382 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.799e-05/0.006809, allocations: 33.39 kB / 382 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.537e-06/0.006813, allocations: 4.062 kB / 382 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/0.006843, allocations: 63.03 kB / 382.1 MB, free: 14.72 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 4.8e-07/0.006844, allocations: 4 kB / 382.1 MB, free: 14.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001392/0.006983, allocations: 126.7 kB / 382.2 MB, free: 14.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.073e-05/0.007014, allocations: 77.11 kB / 382.3 MB, free: 14.47 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.015e-05/0.007054, allocations: 146.2 kB / 382.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.274e-06/0.007061, allocations: 25.7 kB / 382.5 MB, free: 14.29 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.371e-05/0.007085, allocations: 126.9 kB / 382.6 MB, free: 14.16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.247e-05/0.007097, allocations: 352 / 382.6 MB, free: 14.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.146e-05/0.007119, allocations: 23.38 kB / 382.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.687e-05/0.007216, allocations: 492.1 kB / 383.1 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.441e-05/0.00723, allocations: 29.69 kB / 383.1 MB, free: 13.6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.061e-05/0.007241, allocations: 29.83 kB / 383.2 MB, free: 13.56 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.727e-05/0.007278, allocations: 67.03 kB / 383.2 MB, free: 13.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.00728, allocations: 0 / 383.2 MB, free: 13.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.019e-05/0.00733, allocations: 93.06 kB / 383.3 MB, free: 13.37 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.007353, allocations: 37.69 kB / 383.3 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.007358, allocations: 3.938 kB / 383.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.007368, allocations: 0 / 383.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.007369, allocations: 0 / 383.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.038e-06/0.007373, allocations: 0 / 383.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.355e-06/0.007381, allocations: 96 / 383.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.007387, allocations: 8 kB / 383.4 MB, free: 13.32 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 5.792e-05/0.007445, allocations: 182.3 kB / 383.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.879e-06/0.00745, allocations: 4 kB / 383.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.428e-06/0.007459, allocations: 10.92 kB / 383.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.00746, allocations: 0 / 383.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.007463, allocations: 0 / 383.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.007465, allocations: 3.938 kB / 383.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.987e-05/0.007515, allocations: 104.6 kB / 383.7 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.007516, allocations: 4 kB / 383.7 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.71e-07/0.007517, allocations: 0 / 383.7 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.02e-07/0.007517, allocations: 7.938 kB / 383.7 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.562e-06/0.007524, allocations: 4 kB / 383.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.007525, allocations: 3.938 kB / 383.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.007526, allocations: 0 / 383.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.631e-05/0.007592, allocations: 123.9 kB / 383.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.258e-06/0.007596, allocations: 4 kB / 383.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.053e-05/0.007607, allocations: 0 / 383.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.35e-06/0.007612, allocations: 3.938 kB / 383.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.236e-05/0.007625, allocations: 7.984 kB / 383.8 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-06/0.007627, allocations: 4 kB / 383.8 MB, free: 12.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.616e-05/0.007653, allocations: 127.2 kB / 383.9 MB, free: 12.65 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007653, allocations: 0 / 383.9 MB, free: 12.65 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001933/0.007846, allocations: 51.8 kB / 384 MB, free: 12.6 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.001017/0.008863, allocations: 0.569 MB / 384.6 MB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.338e-05/0.008946, allocations: 122.5 kB / 384.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.008949, allocations: 4 kB / 384.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.577e-05/0.008974, allocations: 84.8 kB / 384.8 MB, free: 11.85 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.344e-05/0.009058, allocations: 4 kB / 384.8 MB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001487/0.009206, allocations: 117.6 kB / 384.9 MB, free: 11.69 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.692e-05/0.009233, allocations: 51.36 kB / 384.9 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.421e-06/0.009239, allocations: 3.938 kB / 384.9 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.461e-05/0.009253, allocations: 16.62 kB / 385 MB, free: 11.6 MB / 362.7 MB Notification: Performance of SimCode: time 5e-07/0.009254, allocations: 0 / 385 MB, free: 11.6 MB / 362.7 MB Notification: Performance of Templates: time 0.003247/0.0125, allocations: 2.21 MB / 387.2 MB, free: 9.387 MB / 362.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.2006050699856132]