Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001529/0.001529, allocations: 199.2 kB / 16.76 MB, free: 5.016 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 226.5 MB / 244.1 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007661/0.0007661, allocations: 97.09 kB / 296.1 MB, free: 6.684 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3253/0.3253, allocations: 44.82 MB / 392.9 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003004/0.0003004, allocations: 12 kB / 465.9 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3193/0.3196, allocations: 62.96 MB / 0.5165 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0004703/0.3201, allocations: 221.8 kB / 0.5167 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001315/0.3214, allocations: 1.073 MB / 0.5178 GB, free: 36.35 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.561e-05/0.3215, allocations: 0 / 0.5178 GB, free: 36.35 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.105e-06/0.3215, allocations: 0 / 0.5178 GB, free: 36.35 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.552e-06/0.3215, allocations: 0 / 0.5178 GB, free: 36.35 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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.001354/0.3229, allocations: 0.6217 MB / 0.5184 GB, free: 36.13 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.537e-05/0.3229, allocations: 6.906 kB / 0.5184 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.981e-05/0.3229, allocations: 0 / 0.5184 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.884e-05/0.323, allocations: 0 / 0.5184 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.684e-05/0.323, allocations: 6.609 kB / 0.5184 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.589e-06/0.323, allocations: 0 / 0.5184 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002596/0.3256, allocations: 2.238 MB / 0.5206 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.065e-06/0.3256, allocations: 3.984 kB / 0.5206 GB, free: 35.83 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.658e-05/0.3256, allocations: 28.33 kB / 0.5206 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002772/0.3259, allocations: 325.9 kB / 0.5209 GB, free: 35.76 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.3259, allocations: 0 / 0.5209 GB, free: 35.76 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3259, allocations: 0 / 0.5209 GB, free: 35.76 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.3259, allocations: 0 / 0.5209 GB, free: 35.76 MB / 378.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.0002955/0.3262, allocations: 387 kB / 0.5213 GB, free: 35.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.3263, allocations: 11.91 kB / 0.5213 GB, free: 35.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.537e-05/0.3263, allocations: 4.875 kB / 0.5213 GB, free: 35.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.502e-05/0.3264, allocations: 165.9 kB / 0.5215 GB, free: 35.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.3264, allocations: 384 / 0.5215 GB, free: 35.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.554e-06/0.3264, allocations: 10.78 kB / 0.5215 GB, free: 35.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.496e-05/0.3265, allocations: 29.7 kB / 0.5215 GB, free: 35.1 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.3265, allocations: 3.031 kB / 0.5215 GB, free: 35.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.746e-06/0.3265, allocations: 0 / 0.5215 GB, free: 35.1 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3265, allocations: 3.422 kB / 0.5215 GB, free: 35.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.49e-05/0.3266, allocations: 0 / 0.5215 GB, free: 35.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.213e-05/0.3266, allocations: 144.6 kB / 0.5216 GB, free: 34.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.975e-05/0.3267, allocations: 22.45 kB / 0.5217 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.174e-05/0.3267, allocations: 11.86 kB / 0.5217 GB, free: 34.87 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.017e-06/0.3267, allocations: 0 / 0.5217 GB, free: 34.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.3267, allocations: 63.59 kB / 0.5217 GB, free: 34.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.3267, allocations: 0 / 0.5217 GB, free: 34.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001348/0.3269, allocations: 60.38 kB / 0.5218 GB, free: 34.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.115e-05/0.3269, allocations: 77.11 kB / 0.5219 GB, free: 34.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.129e-05/0.3269, allocations: 93.09 kB / 0.5219 GB, free: 34.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.355e-06/0.327, allocations: 29.83 kB / 0.522 GB, free: 34.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.467e-05/0.327, allocations: 82.64 kB / 0.5221 GB, free: 34.42 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.939e-05/0.327, allocations: 11.92 kB / 0.5221 GB, free: 34.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.874e-06/0.327, allocations: 0 / 0.5221 GB, free: 34.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.954e-05/0.3271, allocations: 310.8 kB / 0.5224 GB, free: 34.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.514e-06/0.3271, allocations: 2.875 kB / 0.5224 GB, free: 34.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.128e-06/0.3271, allocations: 0 / 0.5224 GB, free: 34.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.895e-05/0.3271, allocations: 58.83 kB / 0.5224 GB, free: 34.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.3271, allocations: 4.062 kB / 0.5224 GB, free: 34.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.078e-05/0.3272, allocations: 71.02 kB / 0.5225 GB, free: 33.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.3272, allocations: 31.14 kB / 0.5225 GB, free: 33.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.3272, allocations: 4 kB / 0.5225 GB, free: 33.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.3272, allocations: 0 / 0.5225 GB, free: 33.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.773e-06/0.3272, allocations: 0 / 0.5225 GB, free: 33.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.3273, allocations: 7.875 kB / 0.5225 GB, free: 33.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.313e-05/0.3273, allocations: 0 / 0.5225 GB, free: 33.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.962e-06/0.3273, allocations: 2.969 kB / 0.5225 GB, free: 33.91 MB / 378.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 4.832e-05/0.3273, allocations: 141.2 kB / 0.5227 GB, free: 33.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.563e-06/0.3274, allocations: 3.938 kB / 0.5227 GB, free: 33.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.832e-06/0.3274, allocations: 6.719 kB / 0.5227 GB, free: 33.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.3274, allocations: 0 / 0.5227 GB, free: 33.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.42e-07/0.3274, allocations: 0 / 0.5227 GB, free: 33.76 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.779e-05/0.3274, allocations: 83.78 kB / 0.5228 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.096e-05/0.3274, allocations: 0 / 0.5228 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.887e-06/0.3274, allocations: 7.938 kB / 0.5228 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.237e-06/0.3274, allocations: 0 / 0.5228 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 6.897e-05/0.3275, allocations: 204.1 kB / 0.523 GB, free: 33.45 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 7.485e-05/0.3276, allocations: 236.3 kB / 0.5232 GB, free: 33.2 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.475e-05/0.3276, allocations: 2.531 kB / 0.5232 GB, free: 33.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.2e-05/0.3276, allocations: 75.28 kB / 0.5233 GB, free: 33.13 MB / 378.7 MB Notification: Performance of Backend: time 1.7e-07/0.3276, allocations: 0 / 0.5233 GB, free: 33.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001624/0.3293, allocations: 0.5369 MB / 0.5238 GB, free: 32.84 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002106/0.3295, allocations: 0.5994 MB / 0.5244 GB, free: 32.18 MB / 378.7 MB Error: Internal error GetVarIndexListByMapping: No Element for result found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: result (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for result found!