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.001803/0.001803, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001813/0.001813, allocations: 210.9 kB / 24.48 MB, free: 3.941 MB / 14.72 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.509/1.509, allocations: 230.6 MB / 258.2 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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.2276/0.2276, allocations: 46.96 MB / 361.6 MB, free: 4.035 MB / 286.1 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 0.002086/0.002086, allocations: 67.91 kB / 0.4973 GB, free: 7.234 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2892, allocations: 66.03 MB / 0.5618 GB, free: 4.223 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001722/0.2909, allocations: 493.1 kB / 0.5623 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002174/0.2931, allocations: 1.108 MB / 0.5633 GB, free: 2.625 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.33e-05/0.2931, allocations: 0 / 0.5633 GB, free: 2.625 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.892e-05/0.2932, allocations: 3.938 kB / 0.5634 GB, free: 2.621 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.919e-06/0.2932, allocations: 4 kB / 0.5634 GB, free: 2.617 MB / 398.1 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.002085/0.2953, allocations: 0.7533 MB / 0.5641 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.934e-05/0.2953, allocations: 11.92 kB / 0.5641 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.471e-05/0.2953, allocations: 0 / 0.5641 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.317e-05/0.2954, allocations: 0 / 0.5641 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.636e-05/0.2954, allocations: 0 / 0.5641 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.96e-06/0.2954, allocations: 0 / 0.5641 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00321/0.2986, allocations: 2.468 MB / 0.5665 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.104e-05/0.2986, allocations: 7.938 kB / 0.5665 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.059e-05/0.2986, allocations: 0 / 0.5665 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004842/0.2991, allocations: 347.5 kB / 0.5669 GB, free: 15.04 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2991, allocations: 3.938 kB / 0.5669 GB, free: 15.04 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2991, allocations: 4 kB / 0.5669 GB, free: 15.04 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.2991, allocations: 0 / 0.5669 GB, free: 15.04 MB / 414.1 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.0004421/0.2996, allocations: 303.5 kB / 0.5671 GB, free: 14.7 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.2996, allocations: 8.031 kB / 0.5672 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.091e-05/0.2996, allocations: 0 / 0.5672 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.78e-05/0.2997, allocations: 109.2 kB / 0.5673 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.136e-05/0.2997, allocations: 7.938 kB / 0.5673 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.182e-05/0.2998, allocations: 0 / 0.5673 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001077/0.2999, allocations: 51.41 kB / 0.5673 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.2999, allocations: 7.938 kB / 0.5673 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.604e-06/0.2999, allocations: 4 kB / 0.5673 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.2999, allocations: 0 / 0.5673 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.243e-05/0.2999, allocations: 25.7 kB / 0.5674 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001326/0.3001, allocations: 101.3 kB / 0.5675 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.605e-05/0.3001, allocations: 48.2 kB / 0.5675 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.394e-05/0.3002, allocations: 38.59 kB / 0.5675 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.428e-06/0.3002, allocations: 0 / 0.5675 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.046e-05/0.3002, allocations: 56.27 kB / 0.5676 GB, free: 14.14 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.3002, allocations: 0 / 0.5676 GB, free: 14.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002211/0.3005, allocations: 118.8 kB / 0.5677 GB, free: 14 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.497e-05/0.3005, allocations: 89.17 kB / 0.5678 GB, free: 13.89 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.725e-05/0.3006, allocations: 93.81 kB / 0.5679 GB, free: 13.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.3006, allocations: 25.7 kB / 0.5679 GB, free: 13.76 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.939e-05/0.3006, allocations: 80.14 kB / 0.568 GB, free: 13.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/0.3007, allocations: 3.938 kB / 0.568 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.167e-05/0.3007, allocations: 17.72 kB / 0.568 GB, free: 13.65 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.3009, allocations: 310.8 kB / 0.5683 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.036e-05/0.3009, allocations: 29.69 kB / 0.5683 GB, free: 13.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.254e-05/0.3009, allocations: 29.7 kB / 0.5683 GB, free: 13.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.018e-05/0.301, allocations: 60.27 kB / 0.5684 GB, free: 13.2 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.301, allocations: 8.062 kB / 0.5684 GB, free: 13.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.747e-05/0.3011, allocations: 85.05 kB / 0.5685 GB, free: 13.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.3011, allocations: 37.69 kB / 0.5685 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.3011, allocations: 0 / 0.5685 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.3011, allocations: 0 / 0.5685 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.3011, allocations: 0 / 0.5685 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.3011, allocations: 3.938 kB / 0.5685 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.448e-05/0.3012, allocations: 0 / 0.5685 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-06/0.3012, allocations: 0 / 0.5685 GB, free: 13.04 MB / 414.1 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 0.0001051/0.3013, allocations: 135.5 kB / 0.5687 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.828e-06/0.3013, allocations: 7.969 kB / 0.5687 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.524e-05/0.3013, allocations: 15 kB / 0.5687 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.3013, allocations: 3.984 kB / 0.5687 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.3013, allocations: 0 / 0.5687 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.103e-06/0.3013, allocations: 0 / 0.5687 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.785e-05/0.3014, allocations: 93.33 kB / 0.5688 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.3014, allocations: 0 / 0.5688 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.3014, allocations: 0 / 0.5688 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.3014, allocations: 7.938 kB / 0.5688 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-06/0.3014, allocations: 3.984 kB / 0.5688 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.3014, allocations: 0 / 0.5688 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3014, allocations: 7.938 kB / 0.5688 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001239/0.3015, allocations: 116.5 kB / 0.5689 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.061e-06/0.3015, allocations: 3.938 kB / 0.5689 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.3015, allocations: 4 kB / 0.5689 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.746e-06/0.3015, allocations: 0 / 0.5689 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.723e-05/0.3016, allocations: 11.86 kB / 0.5689 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.3016, allocations: 0 / 0.5689 GB, free: 12.56 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.304e-05/0.3016, allocations: 75.28 kB / 0.569 GB, free: 12.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3016, allocations: 0 / 0.569 GB, free: 12.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003379/0.3019, allocations: 51.8 kB / 0.569 GB, free: 12.43 MB / 414.1 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.001636/0.3036, allocations: 0.5532 MB / 0.5696 GB, free: 11.95 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001248/0.3037, allocations: 114.8 kB / 0.5697 GB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3037, allocations: 4.062 kB / 0.5697 GB, free: 11.81 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.833e-05/0.3038, allocations: 81.11 kB / 0.5698 GB, free: 11.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001196/0.3039, allocations: 3.125 kB / 0.5698 GB, free: 11.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001907/0.3041, allocations: 110.7 kB / 0.5699 GB, free: 11.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.225e-05/0.3041, allocations: 55.36 kB / 0.5699 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.949e-06/0.3041, allocations: 3.938 kB / 0.5699 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.3e-05/0.3041, allocations: 7.438 kB / 0.57 GB, free: 11.49 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3041, allocations: 0 / 0.57 GB, free: 11.49 MB / 414.1 MB Notification: Performance of Templates: time 0.005852/0.31, allocations: 2.151 MB / 0.5721 GB, free: 9.332 MB / 414.1 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=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.019883052998921]