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.001393/0.001393, allocations: 84.55 kB / 20.68 MB, free: 1.023 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.001465/0.001465, allocations: 163.9 kB / 23.95 MB, free: 4.156 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.464/1.464, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.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.216/0.216, allocations: 34.28 MB / 295 MB, free: 14.59 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 1.633e-06/1.633e-06, allocations: 0 / 442.7 MB, free: 5.441 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.873e-05/3.037e-05, allocations: 2.281 kB / 442.7 MB, free: 5.438 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001482/0.001512, allocations: 0.5081 MB / 443.2 MB, free: 4.934 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002192/0.003704, allocations: 1.108 MB / 444.3 MB, free: 3.816 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.777e-05/0.003722, allocations: 4 kB / 444.3 MB, free: 3.812 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.347e-05/0.003735, allocations: 3.938 kB / 444.3 MB, free: 3.809 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.751e-06/0.003741, allocations: 0 / 444.3 MB, free: 3.809 MB / 366.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.002133/0.005875, allocations: 0.7387 MB / 445 MB, free: 3.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.191e-05/0.005916, allocations: 0 / 445 MB, free: 3.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.32e-05/0.00595, allocations: 0 / 445 MB, free: 3.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.196e-05/0.005972, allocations: 0 / 445 MB, free: 3.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.56e-05/0.005987, allocations: 4 kB / 445 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.903e-06/0.005994, allocations: 7.938 kB / 445 MB, free: 3.059 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003538/0.009532, allocations: 2.451 MB / 447.5 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.768e-06/0.009542, allocations: 7.984 kB / 447.5 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.762e-05/0.009559, allocations: 0 / 447.5 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005272/0.01009, allocations: 383.3 kB / 447.9 MB, free: 228 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.01009, allocations: 0 / 447.9 MB, free: 228 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.01009, allocations: 0 / 447.9 MB, free: 228 kB / 366.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.0101, allocations: 0 / 447.9 MB, free: 228 kB / 366.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.2042/0.2143, allocations: 301.3 kB / 448.2 MB, free: 19.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.645e-05/0.2143, allocations: 9.188 kB / 448.2 MB, free: 19.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.96e-05/0.2144, allocations: 0.9688 kB / 448.2 MB, free: 19.63 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.824e-05/0.2145, allocations: 102.9 kB / 448.3 MB, free: 19.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.2145, allocations: 3.562 kB / 448.3 MB, free: 19.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.323e-05/0.2145, allocations: 5.25 kB / 448.3 MB, free: 19.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001258/0.2146, allocations: 59.17 kB / 448.3 MB, free: 19.44 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.2146, allocations: 0.9375 kB / 448.3 MB, free: 19.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.2146, allocations: 2.109 kB / 448.3 MB, free: 19.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.2146, allocations: 1.062 kB / 448.3 MB, free: 19.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.348e-05/0.2147, allocations: 32.19 kB / 448.4 MB, free: 19.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001124/0.2148, allocations: 95.94 kB / 448.5 MB, free: 19.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.388e-05/0.2149, allocations: 47.45 kB / 448.5 MB, free: 19.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.975e-05/0.2149, allocations: 33.42 kB / 448.5 MB, free: 19.19 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.455e-05/0.2149, allocations: 1.031 kB / 448.5 MB, free: 19.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.92e-05/0.215, allocations: 61.56 kB / 448.6 MB, free: 19.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.215, allocations: 1.406 kB / 448.6 MB, free: 19.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002429/0.2152, allocations: 119.9 kB / 448.7 MB, free: 18.99 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.2153, allocations: 86.12 kB / 448.8 MB, free: 18.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.422e-05/0.2153, allocations: 89.86 kB / 448.9 MB, free: 18.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.097e-05/0.2153, allocations: 25.7 kB / 448.9 MB, free: 18.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.972e-05/0.2153, allocations: 81.23 kB / 449 MB, free: 18.69 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.31e-05/0.2153, allocations: 4.562 kB / 449 MB, free: 18.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.789e-05/0.2154, allocations: 13.73 kB / 449 MB, free: 18.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.666e-05/0.2154, allocations: 315.4 kB / 449.3 MB, free: 18.35 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.98e-05/0.2155, allocations: 27.89 kB / 449.4 MB, free: 18.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.065e-05/0.2155, allocations: 34.34 kB / 449.4 MB, free: 18.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.283e-05/0.2155, allocations: 60.89 kB / 449.4 MB, free: 18.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.2155, allocations: 0 / 449.4 MB, free: 18.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.437e-05/0.2156, allocations: 92.33 kB / 449.5 MB, free: 18.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.2156, allocations: 33.36 kB / 449.6 MB, free: 18.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.2156, allocations: 1.625 kB / 449.6 MB, free: 18.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.2156, allocations: 0 / 449.6 MB, free: 18.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.273e-06/0.2156, allocations: 1.25 kB / 449.6 MB, free: 18.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.2157, allocations: 1.25 kB / 449.6 MB, free: 18.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.999e-05/0.2157, allocations: 8.812 kB / 449.6 MB, free: 18.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.2157, allocations: 3.438 kB / 449.6 MB, free: 18.09 MB / 366.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 5.252e-05/0.2157, allocations: 138.7 kB / 449.7 MB, free: 17.94 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.997e-06/0.2157, allocations: 1.062 kB / 449.7 MB, free: 17.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.205e-05/0.2158, allocations: 5.625 kB / 449.7 MB, free: 17.94 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.2158, allocations: 3.125 kB / 449.7 MB, free: 17.94 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2158, allocations: 1.25 kB / 449.7 MB, free: 17.94 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.2158, allocations: 1.594 kB / 449.7 MB, free: 17.94 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.739e-05/0.2158, allocations: 100.9 kB / 449.8 MB, free: 17.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2158, allocations: 3.125 kB / 449.8 MB, free: 17.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.2158, allocations: 0 / 449.8 MB, free: 17.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.2158, allocations: 2.453 kB / 449.8 MB, free: 17.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.2158, allocations: 1.953 kB / 449.8 MB, free: 17.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.2158, allocations: 0 / 449.8 MB, free: 17.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.2158, allocations: 0 / 449.8 MB, free: 17.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.722e-05/0.2159, allocations: 127.8 kB / 450 MB, free: 17.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.402e-06/0.2159, allocations: 5.641 kB / 450 MB, free: 17.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.434e-05/0.2159, allocations: 1.609 kB / 450 MB, free: 17.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.728e-06/0.2159, allocations: 1.344 kB / 450 MB, free: 17.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.701e-05/0.216, allocations: 1.156 kB / 450 MB, free: 17.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.216, allocations: 0.9688 kB / 450 MB, free: 17.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 1.321e-05/0.216, allocations: 77.97 kB / 450.1 MB, free: 17.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 5e-08/0.216, allocations: 0 / 450.1 MB, free: 17.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004746/0.2164, allocations: 56.69 kB / 450.1 MB, free: 17.61 MB / 366.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.00169/0.2181, allocations: 0.5749 MB / 450.7 MB, free: 17.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001187/0.2183, allocations: 115.2 kB / 450.8 MB, free: 17.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2183, allocations: 0 / 450.8 MB, free: 17.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.706e-05/0.2183, allocations: 86.19 kB / 450.9 MB, free: 17.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000134/0.2184, allocations: 6.312 kB / 450.9 MB, free: 17.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002093/0.2186, allocations: 104.3 kB / 451 MB, free: 17.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.76e-05/0.2187, allocations: 55.88 kB / 451 MB, free: 16.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.831e-06/0.2187, allocations: 0 / 451 MB, free: 16.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.214e-05/0.2187, allocations: 10.62 kB / 451 MB, free: 16.97 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2187, allocations: 0 / 451 MB, free: 16.97 MB / 366.1 MB Notification: Performance of Templates: time 0.007112/0.2258, allocations: 2.177 MB / 453.2 MB, free: 16.73 MB / 366.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins/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: 4.958861351013184]