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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 94.41 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001722/0.001722, allocations: 170.2 kB / 18.25 MB, free: 5.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 223.2 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.197/0.197, allocations: 44.25 MB / 337.7 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003103/0.0003103, allocations: 12 kB / 410.3 MB, free: 27.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1254, allocations: 61.92 MB / 472.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0006414/0.1261, allocations: 217.2 kB / 472.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001839/0.128, allocations: 1.167 MB / 473.6 MB, free: 12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.053e-05/0.128, allocations: 0 / 473.6 MB, free: 12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.381e-05/0.128, allocations: 0 / 473.6 MB, free: 12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.408e-06/0.128, allocations: 8 kB / 473.6 MB, free: 12 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.001739/0.1298, allocations: 0.6352 MB / 474.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.851e-05/0.1298, allocations: 4 kB / 474.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.133e-05/0.1299, allocations: 0 / 474.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.817e-05/0.1299, allocations: 0 / 474.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.175e-05/0.1299, allocations: 3.938 kB / 474.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.061e-06/0.1299, allocations: 0 / 474.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003163/0.1331, allocations: 2.597 MB / 476.9 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.365e-06/0.1331, allocations: 0 / 476.9 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.894e-05/0.1332, allocations: 29.7 kB / 476.9 MB, free: 8.723 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004925/0.1337, allocations: 423.3 kB / 477.3 MB, free: 8.309 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1337, allocations: 0 / 477.3 MB, free: 8.309 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1337, allocations: 0 / 477.3 MB, free: 8.309 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.1337, allocations: 4 kB / 477.3 MB, free: 8.305 MB / 350.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.0004192/0.1341, allocations: 377 kB / 477.7 MB, free: 7.883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.1342, allocations: 12.03 kB / 477.7 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.438e-05/0.1342, allocations: 3.938 kB / 477.7 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.536e-05/0.1343, allocations: 159.1 kB / 477.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.1343, allocations: 0 / 477.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.1344, allocations: 0 / 477.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.016e-05/0.1344, allocations: 37.62 kB / 477.9 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.971e-06/0.1345, allocations: 4 kB / 477.9 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.1345, allocations: 0 / 477.9 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.1345, allocations: 3.938 kB / 477.9 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.912e-05/0.1345, allocations: 3.938 kB / 477.9 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001322/0.1346, allocations: 149.7 kB / 478 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.75e-05/0.1347, allocations: 14.58 kB / 478.1 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.728e-05/0.1347, allocations: 8.953 kB / 478.1 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.215e-06/0.1347, allocations: 0 / 478.1 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.253e-05/0.1348, allocations: 68.19 kB / 478.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1348, allocations: 0 / 478.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001696/0.135, allocations: 63.41 kB / 478.2 MB, free: 7.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.495e-05/0.135, allocations: 77.11 kB / 478.3 MB, free: 7.137 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.697e-05/0.1351, allocations: 93.8 kB / 478.4 MB, free: 7.035 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.1351, allocations: 25.7 kB / 478.4 MB, free: 7.004 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.727e-05/0.1351, allocations: 84.08 kB / 478.5 MB, free: 6.918 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.009e-05/0.1352, allocations: 7.938 kB / 478.5 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.862e-05/0.1353, allocations: 13.84 kB / 478.5 MB, free: 6.891 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.1354, allocations: 318.8 kB / 478.8 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.474e-06/0.1354, allocations: 0 / 478.8 MB, free: 6.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.468e-06/0.1354, allocations: 0 / 478.8 MB, free: 6.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.473e-05/0.1355, allocations: 64.2 kB / 478.9 MB, free: 6.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1355, allocations: 0 / 478.9 MB, free: 6.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.076e-05/0.1355, allocations: 63.39 kB / 478.9 MB, free: 6.418 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.1356, allocations: 29.8 kB / 479 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.1356, allocations: 4 kB / 479 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.1356, allocations: 0 / 479 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.726e-06/0.1356, allocations: 7.984 kB / 479 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.1356, allocations: 0 / 479 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.672e-05/0.1356, allocations: 3.938 kB / 479 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.1357, allocations: 4 kB / 479 MB, free: 6.363 MB / 350.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 8.107e-05/0.1357, allocations: 135.5 kB / 479.1 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.422e-06/0.1358, allocations: 0 / 479.1 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.225e-05/0.1358, allocations: 11.06 kB / 479.1 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.1358, allocations: 4 kB / 479.1 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1358, allocations: 0 / 479.1 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1358, allocations: 3.938 kB / 479.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.356e-05/0.1359, allocations: 149.6 kB / 479.3 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1359, allocations: 0 / 479.3 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.014e-06/0.1359, allocations: 4 kB / 479.3 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.1359, allocations: 0 / 479.3 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.1359, allocations: 3.984 kB / 479.3 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1359, allocations: 0 / 479.3 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1359, allocations: 3.984 kB / 479.3 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.43e-05/0.136, allocations: 94.78 kB / 479.4 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.114e-05/0.1361, allocations: 81.05 kB / 479.5 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.1361, allocations: 7.984 kB / 479.5 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.395e-06/0.1361, allocations: 0 / 479.5 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.441e-05/0.1361, allocations: 3.938 kB / 479.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-06/0.1361, allocations: 4 kB / 479.5 MB, free: 5.762 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.032e-05/0.1362, allocations: 75.28 kB / 479.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1362, allocations: 7.969 kB / 479.6 MB, free: 5.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003071/0.1365, allocations: 51.98 kB / 479.6 MB, free: 5.629 MB / 350.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.001694/0.1382, allocations: 0.5272 MB / 480.1 MB, free: 5.164 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.167e-05/0.1383, allocations: 67.33 kB / 480.2 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1383, allocations: 0 / 480.2 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.093e-05/0.1383, allocations: 55.41 kB / 480.3 MB, free: 5.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001308/0.1385, allocations: 11.81 kB / 480.3 MB, free: 5.012 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001667/0.1386, allocations: 78.67 kB / 480.3 MB, free: 4.906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002337/0.1389, allocations: 0.6809 MB / 481 MB, free: 4.199 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.581e-06/0.1389, allocations: 0 / 481 MB, free: 4.199 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.135e-06/0.1389, allocations: 11.56 kB / 481 MB, free: 4.191 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1389, allocations: 0 / 481 MB, free: 4.191 MB / 350.1 MB Notification: Performance of Templates: time 0.005062/0.144, allocations: 2.121 MB / 483.2 MB, free: 2.066 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches