Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.315/2.315, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004366/0.0004367, allocations: 12 kB / 314.4 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3299, allocations: 54.87 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0006442/0.3306, allocations: 212.5 kB / 369.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002446/0.333, allocations: 1.026 MB / 370.5 MB, free: 9.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.661e-05/0.3331, allocations: 0 / 370.5 MB, free: 9.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.999e-06/0.3331, allocations: 0 / 370.5 MB, free: 9.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.479e-06/0.3331, allocations: 0 / 370.5 MB, free: 9.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002102/0.3352, allocations: 0.6159 MB / 371.1 MB, free: 8.863 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.275e-05/0.3353, allocations: 8 kB / 371.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.021e-05/0.3353, allocations: 0 / 371.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.46e-05/0.3354, allocations: 0 / 371.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.638e-05/0.3354, allocations: 0 / 371.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.739e-06/0.3354, allocations: 0 / 371.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001223/0.3366, allocations: 0.546 MB / 371.7 MB, free: 8.309 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.302e-06/0.3367, allocations: 0 / 371.7 MB, free: 8.309 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.738e-05/0.3367, allocations: 25.7 kB / 371.7 MB, free: 8.277 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005697/0.3373, allocations: 271.6 kB / 372 MB, free: 8.012 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.3373, allocations: 0 / 372 MB, free: 8.012 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3373, allocations: 0 / 372 MB, free: 8.012 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.3373, allocations: 0 / 372 MB, free: 8.012 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.0004406/0.3378, allocations: 397 kB / 372.4 MB, free: 7.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.3378, allocations: 8.031 kB / 372.4 MB, free: 7.562 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.461e-05/0.3379, allocations: 34.56 kB / 372.4 MB, free: 7.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.335e-05/0.3379, allocations: 4 kB / 372.4 MB, free: 7.516 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001/0.338, allocations: 163.1 kB / 372.6 MB, free: 7.316 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.338, allocations: 4 kB / 372.6 MB, free: 7.312 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.181e-05/0.3381, allocations: 0 / 372.6 MB, free: 7.312 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.145e-05/0.3382, allocations: 37.59 kB / 372.6 MB, free: 7.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.3382, allocations: 0 / 372.6 MB, free: 7.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.3382, allocations: 0 / 372.6 MB, free: 7.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3382, allocations: 0 / 372.6 MB, free: 7.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.724e-05/0.3382, allocations: 0 / 372.6 MB, free: 7.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00015/0.3384, allocations: 153.7 kB / 372.7 MB, free: 7.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.125e-05/0.3385, allocations: 22.5 kB / 372.8 MB, free: 7.039 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.296e-06/0.3385, allocations: 0 / 372.8 MB, free: 7.039 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.982e-05/0.3385, allocations: 64.3 kB / 372.8 MB, free: 6.961 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.292e-06/0.3385, allocations: 0 / 372.8 MB, free: 6.961 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001824/0.3387, allocations: 71.3 kB / 372.9 MB, free: 6.879 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.979e-05/0.3388, allocations: 85.22 kB / 373 MB, free: 6.777 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.051e-05/0.3389, allocations: 89.86 kB / 373.1 MB, free: 6.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.3389, allocations: 25.7 kB / 373.1 MB, free: 6.648 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.945e-05/0.3389, allocations: 150.6 kB / 373.2 MB, free: 6.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.816e-05/0.339, allocations: 0 / 373.2 MB, free: 6.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-06/0.339, allocations: 0 / 373.2 MB, free: 6.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.3391, allocations: 310.8 kB / 373.5 MB, free: 6.188 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.979e-06/0.3391, allocations: 4 kB / 373.6 MB, free: 6.184 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.752e-06/0.3391, allocations: 0 / 373.6 MB, free: 6.184 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.465e-05/0.3392, allocations: 29.77 kB / 373.6 MB, free: 6.148 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.3392, allocations: 3.938 kB / 373.6 MB, free: 6.145 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000109/0.3393, allocations: 67.39 kB / 373.7 MB, free: 6.066 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.74e-05/0.3394, allocations: 29.7 kB / 373.7 MB, free: 6.031 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.738e-06/0.3394, allocations: 4 kB / 373.7 MB, free: 6.027 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.3394, allocations: 0 / 373.7 MB, free: 6.027 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.623e-06/0.3394, allocations: 0 / 373.7 MB, free: 6.027 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.3394, allocations: 3.953 kB / 373.7 MB, free: 6.023 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.793e-05/0.3395, allocations: 0 / 373.7 MB, free: 6.023 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.575e-06/0.3395, allocations: 0 / 373.7 MB, free: 6.023 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 9.783e-05/0.3396, allocations: 140.6 kB / 373.8 MB, free: 5.871 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.294e-05/0.3396, allocations: 7.969 kB / 373.8 MB, free: 5.863 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.013e-05/0.3396, allocations: 3.125 kB / 373.8 MB, free: 5.863 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3396, allocations: 0 / 373.8 MB, free: 5.863 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.3396, allocations: 0 / 373.8 MB, free: 5.863 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.3397, allocations: 7.953 kB / 373.8 MB, free: 5.855 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001033/0.3398, allocations: 145.7 kB / 374 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3398, allocations: 0 / 374 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.073e-06/0.3398, allocations: 0 / 374 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.3398, allocations: 4 kB / 374 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.3398, allocations: 3.984 kB / 374 MB, free: 5.656 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.165e-06/0.3398, allocations: 4 kB / 374 MB, free: 5.652 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3398, allocations: 7.875 kB / 374 MB, free: 5.645 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001073/0.34, allocations: 86.8 kB / 374.1 MB, free: 5.535 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.313e-05/0.34, allocations: 81.09 kB / 374.2 MB, free: 5.438 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.68e-05/0.34, allocations: 4 kB / 374.2 MB, free: 5.434 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.242e-05/0.3401, allocations: 4.031 kB / 374.2 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.574e-05/0.3401, allocations: 0 / 374.2 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-06/0.3401, allocations: 0 / 374.2 MB, free: 5.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.211e-05/0.3401, allocations: 75.28 kB / 374.3 MB, free: 5.355 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.3402, allocations: 0 / 374.3 MB, free: 5.355 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005474/0.3407, allocations: 91.92 kB / 374.3 MB, free: 5.266 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.0014/0.3421, allocations: 0.913 MB / 375.3 MB, free: 4.379 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.986e-05/0.3422, allocations: 67.33 kB / 375.3 MB, free: 4.301 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3423, allocations: 0 / 375.3 MB, free: 4.301 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.299e-05/0.3423, allocations: 55.41 kB / 375.4 MB, free: 4.234 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.87e-05/0.3424, allocations: 4 kB / 375.4 MB, free: 4.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004346/0.3429, allocations: 174 kB / 375.5 MB, free: 4.012 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.3431, allocations: 0.6731 MB / 376.2 MB, free: 3.312 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.552e-05/0.3431, allocations: 7.438 kB / 376.2 MB, free: 3.305 MB / 298.7 MB Notification: Performance of SimCode: time 6.21e-07/0.3432, allocations: 0 / 376.2 MB, free: 3.305 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.799/3.142, allocations: 3.342 MB / 379.6 MB, free: 15.96 MB / 314.7 MB