Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestColorMapToSvg.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadModel(ModelicaTest): time 2.258/2.258, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.208e-05/1.193e-05, allocations: 0 / 303.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.3434, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1302/0.4737, allocations: 83.66 MB / 441.7 MB, free: 11.17 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/0.4739, allocations: 55.98 kB / 441.7 MB, free: 11.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4377/0.9116, allocations: 29.95 MB / 471.7 MB, free: 103.7 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.143e-06/0.9117, allocations: 0 / 471.7 MB, free: 103.7 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.709e-06/0.9117, allocations: 0 / 471.7 MB, free: 103.7 MB / 394.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.000459/0.9122, allocations: 413.4 kB / 472.1 MB, free: 103.3 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.9122, allocations: 8.594 kB / 472.1 MB, free: 103.3 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.38e-05/0.9123, allocations: 5.328 kB / 472.1 MB, free: 103.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.064e-05/0.9123, allocations: 160.5 kB / 472.3 MB, free: 103.1 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.9123, allocations: 0 / 472.3 MB, free: 103.1 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.042e-06/0.9124, allocations: 1.594 kB / 472.3 MB, free: 103.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.463e-05/0.9124, allocations: 6.125 kB / 472.3 MB, free: 103.1 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.553e-05/0.9125, allocations: 28.06 kB / 472.3 MB, free: 103.1 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.298e-06/0.9125, allocations: 0 / 472.3 MB, free: 103.1 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.436e-06/0.9125, allocations: 0.9375 kB / 472.3 MB, free: 103.1 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.148e-06/0.9125, allocations: 5.297 kB / 472.3 MB, free: 103.1 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.171e-05/0.9126, allocations: 122.9 kB / 472.4 MB, free: 102.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.866e-05/0.9127, allocations: 22.86 kB / 472.5 MB, free: 102.9 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.337e-05/0.9127, allocations: 9.922 kB / 472.5 MB, free: 102.9 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.337e-06/0.9127, allocations: 0.6094 kB / 472.5 MB, free: 102.9 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.9127, allocations: 62.67 kB / 472.5 MB, free: 102.8 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 2.002e-06/0.9127, allocations: 0 / 472.5 MB, free: 102.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001634/0.9129, allocations: 37.2 kB / 472.6 MB, free: 102.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.5e-05/0.913, allocations: 81.48 kB / 472.6 MB, free: 102.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.837e-05/0.913, allocations: 85 kB / 472.7 MB, free: 102.6 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.037e-06/0.913, allocations: 31.17 kB / 472.8 MB, free: 102.6 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.23e-05/0.913, allocations: 150.6 kB / 472.9 MB, free: 102.4 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.496e-05/0.9131, allocations: 0.75 kB / 472.9 MB, free: 102.4 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.598e-06/0.9131, allocations: 3.938 kB / 472.9 MB, free: 102.4 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.74e-05/0.9131, allocations: 318.2 kB / 473.2 MB, free: 102.1 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.737e-06/0.9132, allocations: 1.891 kB / 473.2 MB, free: 102.1 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.878e-06/0.9132, allocations: 0 / 473.2 MB, free: 102.1 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.362e-05/0.9132, allocations: 4.859 kB / 473.2 MB, free: 102.1 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.052e-06/0.9132, allocations: 0 / 473.2 MB, free: 102.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.143e-05/0.9133, allocations: 32.92 kB / 473.3 MB, free: 102.1 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.959e-05/0.9134, allocations: 32.31 kB / 473.3 MB, free: 102 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.112e-06/0.9134, allocations: 3.938 kB / 473.3 MB, free: 102 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.9134, allocations: 0.7031 kB / 473.3 MB, free: 102 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.599e-06/0.9134, allocations: 1.375 kB / 473.3 MB, free: 102 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.535e-06/0.9134, allocations: 0 / 473.3 MB, free: 102 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.868e-05/0.9135, allocations: 1.281 kB / 473.3 MB, free: 102 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.037e-06/0.9135, allocations: 0.6562 kB / 473.3 MB, free: 102 MB / 394.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 () * 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 5.923e-05/0.9135, allocations: 140.8 kB / 473.4 MB, free: 101.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.148e-05/0.9136, allocations: 2.156 kB / 473.4 MB, free: 101.9 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.106e-05/0.9136, allocations: 7.453 kB / 473.4 MB, free: 101.9 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.873e-06/0.9136, allocations: 4.375 kB / 473.5 MB, free: 101.9 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.291e-06/0.9136, allocations: 3.688 kB / 473.5 MB, free: 101.9 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.094e-06/0.9136, allocations: 1.312 kB / 473.5 MB, free: 101.9 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.046e-05/0.9137, allocations: 126 kB / 473.6 MB, free: 101.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.727e-06/0.9137, allocations: 0 / 473.6 MB, free: 101.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.502e-06/0.9137, allocations: 4.469 kB / 473.6 MB, free: 101.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.589e-06/0.9137, allocations: 0 / 473.6 MB, free: 101.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.798e-06/0.9137, allocations: 2.844 kB / 473.6 MB, free: 101.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.54e-06/0.9137, allocations: 0.6094 kB / 473.6 MB, free: 101.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.214e-06/0.9138, allocations: 1.469 kB / 473.6 MB, free: 101.7 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.399e-05/0.9139, allocations: 66.45 kB / 473.7 MB, free: 101.7 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.781e-05/0.9139, allocations: 77.11 kB / 473.7 MB, free: 101.6 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.9139, allocations: 9.594 kB / 473.7 MB, free: 101.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.207e-05/0.9139, allocations: 0 / 473.7 MB, free: 101.6 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.37e-05/0.914, allocations: 2.281 kB / 473.7 MB, free: 101.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.914, allocations: 2.688 kB / 473.7 MB, free: 101.6 MB / 394.7 MB Notification: Performance of sorting global known variables: time 1.744e-05/0.914, allocations: 79.88 kB / 473.8 MB, free: 101.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.56e-07/0.914, allocations: 0 / 473.8 MB, free: 101.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005228/0.9145, allocations: 66.98 kB / 473.9 MB, free: 101.5 MB / 394.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) * 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.002947/0.9175, allocations: 0.5371 MB / 474.4 MB, free: 101.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000104/0.9177, allocations: 60.48 kB / 474.5 MB, free: 101.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.904e-06/0.9177, allocations: 3.828 kB / 474.5 MB, free: 101.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.49e-05/0.9177, allocations: 55.72 kB / 474.5 MB, free: 101.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001075/0.9178, allocations: 1.219 kB / 474.5 MB, free: 101.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001466/0.918, allocations: 74.75 kB / 474.6 MB, free: 101.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001046/0.9181, allocations: 0.6738 MB / 475.3 MB, free: 100.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.257e-05/0.9181, allocations: 8.906 kB / 475.3 MB, free: 100.4 MB / 394.7 MB Notification: Performance of SimCode: time 1.526e-06/0.9181, allocations: 0 / 475.3 MB, free: 100.4 MB / 394.7 MB Notification: Performance of Templates: time 0.005967/0.9241, allocations: 2.682 MB / 478 MB, free: 100.1 MB / 394.7 MB