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.0007545/0.0007546, allocations: 90.72 kB / 17.63 MB, free: 6.293 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.0008106/0.0008105, allocations: 184.4 kB / 18.52 MB, free: 5.445 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.476/1.476, allocations: 223.2 MB / 242.5 MB, free: 328 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.2511/0.2511, allocations: 44.24 MB / 337.9 MB, free: 2.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005294/0.0005296, allocations: 15.92 kB / 410.3 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1504, allocations: 61.92 MB / 472.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0007367/0.1512, allocations: 209.3 kB / 472.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002029/0.1533, allocations: 1.077 MB / 473.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.966e-05/0.1533, allocations: 0 / 473.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.388e-05/0.1534, allocations: 0 / 473.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.284e-06/0.1534, allocations: 0 / 473.5 MB, free: 12.46 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.001917/0.1553, allocations: 0.6268 MB / 474.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.431e-05/0.1554, allocations: 3.938 kB / 474.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.395e-05/0.1554, allocations: 7.984 kB / 474.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.733e-05/0.1554, allocations: 0 / 474.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.75e-05/0.1555, allocations: 4 kB / 474.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.109e-06/0.1555, allocations: 0 / 474.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003188/0.1587, allocations: 2.238 MB / 476.3 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.436e-06/0.1587, allocations: 0 / 476.3 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.545e-05/0.1587, allocations: 25.7 kB / 476.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004168/0.1591, allocations: 327.5 kB / 476.7 MB, free: 9.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1592, allocations: 0 / 476.7 MB, free: 9.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.1592, allocations: 0 / 476.7 MB, free: 9.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.1592, allocations: 0 / 476.7 MB, free: 9.23 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.000479/0.1597, allocations: 385.3 kB / 477.1 MB, free: 8.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.1597, allocations: 12.03 kB / 477.1 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.762e-05/0.1598, allocations: 4 kB / 477.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/0.1599, allocations: 163.1 kB / 477.2 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.1599, allocations: 0 / 477.2 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.264e-05/0.1599, allocations: 0 / 477.2 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001116/0.16, allocations: 33.66 kB / 477.3 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.1601, allocations: 0 / 477.3 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.1601, allocations: 0 / 477.3 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.1601, allocations: 4 kB / 477.3 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.377e-05/0.1601, allocations: 7.938 kB / 477.3 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001828/0.1603, allocations: 145.7 kB / 477.4 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.034e-05/0.1604, allocations: 18.58 kB / 477.4 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.515e-05/0.1604, allocations: 8.953 kB / 477.4 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.494e-06/0.1604, allocations: 0 / 477.4 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.814e-05/0.1604, allocations: 60.22 kB / 477.5 MB, free: 8.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.1605, allocations: 4 kB / 477.5 MB, free: 8.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001855/0.1606, allocations: 67.33 kB / 477.6 MB, free: 8.148 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.1607, allocations: 77.11 kB / 477.7 MB, free: 8.055 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.318e-05/0.1608, allocations: 93.86 kB / 477.7 MB, free: 7.953 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/0.1608, allocations: 25.7 kB / 477.8 MB, free: 7.922 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.171e-05/0.1608, allocations: 80.14 kB / 477.8 MB, free: 7.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.1608, allocations: 4 kB / 477.9 MB, free: 7.836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-06/0.1608, allocations: 0 / 477.9 MB, free: 7.836 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.161, allocations: 318.9 kB / 478.2 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.636e-06/0.161, allocations: 3.938 kB / 478.2 MB, free: 7.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.988e-06/0.161, allocations: 0 / 478.2 MB, free: 7.512 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.339e-05/0.161, allocations: 29.7 kB / 478.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.161, allocations: 0 / 478.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.387e-05/0.1611, allocations: 67.33 kB / 478.3 MB, free: 7.398 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.1612, allocations: 33.7 kB / 478.3 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.1612, allocations: 0 / 478.3 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.1612, allocations: 3.953 kB / 478.3 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.363e-06/0.1612, allocations: 4.094 kB / 478.3 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.1612, allocations: 0 / 478.3 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.878e-05/0.1612, allocations: 8 kB / 478.3 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.1612, allocations: 0 / 478.3 MB, free: 7.344 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.377e-05/0.1613, allocations: 136.1 kB / 478.4 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.856e-06/0.1613, allocations: 7.984 kB / 478.5 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.113e-05/0.1614, allocations: 7.078 kB / 478.5 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.1614, allocations: 3.953 kB / 478.5 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1614, allocations: 0 / 478.5 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.1614, allocations: 4 kB / 478.5 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.047e-05/0.1615, allocations: 145.7 kB / 478.6 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.41e-07/0.1615, allocations: 0 / 478.6 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.014e-06/0.1615, allocations: 4 kB / 478.6 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-06/0.1615, allocations: 0 / 478.6 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.1615, allocations: 0 / 478.6 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.838e-06/0.1615, allocations: 3.984 kB / 478.6 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.1615, allocations: 3.953 kB / 478.6 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.487e-05/0.1616, allocations: 98.77 kB / 478.7 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.464e-05/0.1617, allocations: 77.11 kB / 478.8 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.1617, allocations: 0 / 478.8 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.125e-06/0.1617, allocations: 0 / 478.8 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.728e-05/0.1617, allocations: 8 kB / 478.8 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.878e-06/0.1617, allocations: 3.953 kB / 478.8 MB, free: 6.742 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.823e-05/0.1618, allocations: 75.28 kB / 478.9 MB, free: 6.668 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1618, allocations: 0 / 478.9 MB, free: 6.668 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003453/0.1621, allocations: 71.92 kB / 478.9 MB, free: 6.598 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001517/0.1636, allocations: 0.4986 MB / 479.4 MB, free: 6.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.562e-05/0.1637, allocations: 67.39 kB / 479.5 MB, free: 6.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1637, allocations: 64 / 479.5 MB, free: 6.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.181e-05/0.1638, allocations: 63.34 kB / 479.6 MB, free: 6.008 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000122/0.1639, allocations: 0 / 479.6 MB, free: 6.008 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001888/0.1641, allocations: 100.4 kB / 479.7 MB, free: 5.875 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.1644, allocations: 0.677 MB / 480.3 MB, free: 5.172 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.15e-05/0.1644, allocations: 11.38 kB / 480.4 MB, free: 5.16 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1644, allocations: 0 / 480.4 MB, free: 5.16 MB / 350.1 MB Notification: Performance of Templates: time 0.00548/0.1699, allocations: 2.86 MB / 483.2 MB, free: 2.297 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.makefile make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvgCalcHelperMain.o OMCppModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvgCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvgCalcHelperMain.o] Error 1