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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.246/2.246, allocations: 234.9 MB / 250.5 MB, free: 9.602 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004403/0.0004404, allocations: 12 kB / 314.3 MB, free: 9.664 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.292, allocations: 54.87 MB / 369.2 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0005651/0.2926, allocations: 220.4 kB / 369.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002184/0.2948, allocations: 1.026 MB / 370.4 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.511e-05/0.2949, allocations: 0 / 370.4 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.818e-06/0.2949, allocations: 3.938 kB / 370.4 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.956e-06/0.2949, allocations: 0 / 370.4 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001854/0.2968, allocations: 0.5965 MB / 371 MB, free: 10.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.603e-05/0.2968, allocations: 4 kB / 371 MB, free: 10.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.717e-05/0.2969, allocations: 0 / 371 MB, free: 10.92 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.574e-05/0.2969, allocations: 0 / 371 MB, free: 10.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.459e-05/0.2969, allocations: 3.938 kB / 371 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.923e-06/0.2969, allocations: 0 / 371 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001051/0.298, allocations: 0.5577 MB / 371.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.309e-06/0.298, allocations: 3.984 kB / 371.6 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.184e-05/0.2981, allocations: 25.7 kB / 371.6 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004926/0.2986, allocations: 263.6 kB / 371.9 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.313e-06/0.2986, allocations: 0 / 371.9 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.036e-06/0.2986, allocations: 0 / 371.9 MB, free: 10.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.724e-06/0.2986, allocations: 4 kB / 371.9 MB, free: 10.06 MB / 298.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.0004438/0.2991, allocations: 389.1 kB / 372.3 MB, free: 9.625 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.2991, allocations: 12.02 kB / 372.3 MB, free: 9.613 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.886e-05/0.2992, allocations: 8 kB / 372.3 MB, free: 9.605 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.2993, allocations: 159.1 kB / 372.4 MB, free: 9.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.2993, allocations: 0 / 372.4 MB, free: 9.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.511e-06/0.2993, allocations: 0 / 372.4 MB, free: 9.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.27e-05/0.2994, allocations: 29.7 kB / 372.5 MB, free: 9.375 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.2995, allocations: 3.953 kB / 372.5 MB, free: 9.371 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.2995, allocations: 4 kB / 372.5 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.229e-06/0.2995, allocations: 0 / 372.5 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.947e-05/0.2995, allocations: 3.938 kB / 372.5 MB, free: 9.363 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000158/0.2997, allocations: 153.6 kB / 372.6 MB, free: 9.164 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.576e-05/0.2998, allocations: 18.58 kB / 372.6 MB, free: 9.137 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.224e-06/0.2998, allocations: 3.938 kB / 372.6 MB, free: 9.133 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.938e-05/0.2999, allocations: 60.36 kB / 372.7 MB, free: 9.059 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 2.042e-06/0.2999, allocations: 4 kB / 372.7 MB, free: 9.055 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001755/0.3, allocations: 67.28 kB / 372.8 MB, free: 8.977 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.812e-05/0.3001, allocations: 81.11 kB / 372.9 MB, free: 8.879 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.702e-05/0.3002, allocations: 89.86 kB / 372.9 MB, free: 8.781 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.3002, allocations: 25.7 kB / 373 MB, free: 8.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.118e-05/0.3003, allocations: 154.6 kB / 373.1 MB, free: 8.598 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.843e-05/0.3003, allocations: 0 / 373.1 MB, free: 8.598 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.49e-06/0.3004, allocations: 0 / 373.1 MB, free: 8.598 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.3005, allocations: 318.9 kB / 373.4 MB, free: 8.277 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.287e-05/0.3006, allocations: 4 kB / 373.4 MB, free: 8.273 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.831e-06/0.3006, allocations: 0 / 373.4 MB, free: 8.273 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.761e-05/0.3006, allocations: 25.7 kB / 373.5 MB, free: 8.242 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.081e-06/0.3006, allocations: 0 / 373.5 MB, free: 8.242 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.668e-05/0.3007, allocations: 67.33 kB / 373.5 MB, free: 8.164 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.831e-05/0.3008, allocations: 29.7 kB / 373.6 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.3008, allocations: 0 / 373.6 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.3008, allocations: 4 kB / 373.6 MB, free: 8.125 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.723e-06/0.3008, allocations: 4.094 kB / 373.6 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.24e-06/0.3009, allocations: 3.953 kB / 373.6 MB, free: 8.117 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.256e-05/0.3009, allocations: 4 kB / 373.6 MB, free: 8.113 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.907e-06/0.3009, allocations: 0 / 373.6 MB, free: 8.113 MB / 298.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 () * 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 0.0001115/0.301, allocations: 139.5 kB / 373.7 MB, free: 7.961 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.997e-06/0.301, allocations: 0 / 373.7 MB, free: 7.961 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.087e-05/0.3011, allocations: 7.125 kB / 373.7 MB, free: 7.957 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.081e-06/0.3011, allocations: 0 / 373.7 MB, free: 7.957 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.195e-06/0.3011, allocations: 3.984 kB / 373.7 MB, free: 7.953 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.758e-06/0.3011, allocations: 7.953 kB / 373.7 MB, free: 7.945 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001272/0.3012, allocations: 149.7 kB / 373.9 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.72e-06/0.3013, allocations: 0 / 373.9 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.232e-06/0.3013, allocations: 0 / 373.9 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.422e-06/0.3013, allocations: 0 / 373.9 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.682e-06/0.3013, allocations: 3.984 kB / 373.9 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.199e-06/0.3013, allocations: 0 / 373.9 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.763e-06/0.3013, allocations: 0 / 373.9 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001281/0.3015, allocations: 106.7 kB / 374 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.868e-05/0.3015, allocations: 77.81 kB / 374.1 MB, free: 7.523 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.775e-05/0.3015, allocations: 4 kB / 374.1 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.258e-05/0.3016, allocations: 0 / 374.1 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.413e-05/0.3016, allocations: 0 / 374.1 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.757e-06/0.3016, allocations: 4 kB / 374.1 MB, free: 7.516 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.802e-05/0.3017, allocations: 75.28 kB / 374.1 MB, free: 7.441 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.3017, allocations: 0 / 374.1 MB, free: 7.441 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005021/0.3022, allocations: 91.91 kB / 374.2 MB, free: 7.352 MB / 298.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) * 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.001054/0.3032, allocations: 375.4 kB / 374.6 MB, free: 7.043 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001065/0.3034, allocations: 63.41 kB / 374.7 MB, free: 6.969 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.699e-06/0.3034, allocations: 3.938 kB / 374.7 MB, free: 6.965 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.254e-05/0.3035, allocations: 55.41 kB / 374.7 MB, free: 6.898 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001007/0.3036, allocations: 11.83 kB / 374.7 MB, free: 6.887 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001891/0.3038, allocations: 104.5 kB / 374.8 MB, free: 6.75 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003389/0.3041, allocations: 0.6692 MB / 375.5 MB, free: 6.055 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.146e-05/0.3042, allocations: 11.44 kB / 375.5 MB, free: 6.043 MB / 298.7 MB Notification: Performance of SimCode: time 1.317e-06/0.3042, allocations: 0 / 375.5 MB, free: 6.043 MB / 298.7 MB Notification: Performance of Templates: time 0.007141/0.3113, allocations: 3.187 MB / 378.7 MB, free: 2.852 MB / 298.7 MB