Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009398/0.0009394, allocations: 178 kB / 17.39 MB, free: 4.391 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.406/1.406, allocations: 205.4 MB / 223.5 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007681/0.0007682, allocations: 88.94 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3308/0.3308, allocations: 43.55 MB / 363.7 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003842/0.0003842, allocations: 12 kB / 432.6 MB, free: 5.605 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1197, allocations: 58.85 MB / 491.5 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0005438/0.1203, allocations: 236.3 kB / 491.7 MB, free: 10.43 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.122, allocations: 1.085 MB / 492.8 MB, free: 9.348 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.552e-05/0.122, allocations: 4 kB / 492.8 MB, free: 9.344 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.476e-06/0.122, allocations: 0 / 492.8 MB, free: 9.344 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.322e-06/0.122, allocations: 0 / 492.8 MB, free: 9.344 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001551/0.1236, allocations: 0.6277 MB / 493.4 MB, free: 8.715 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.035e-05/0.1236, allocations: 4 kB / 493.4 MB, free: 8.711 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.825e-05/0.1236, allocations: 0 / 493.4 MB, free: 8.711 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.6e-05/0.1237, allocations: 4 kB / 493.4 MB, free: 8.707 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.502e-05/0.1237, allocations: 0 / 493.4 MB, free: 8.707 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.54e-06/0.1237, allocations: 0 / 493.4 MB, free: 8.707 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002897/0.1266, allocations: 2.238 MB / 495.7 MB, free: 6.465 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.134e-06/0.1266, allocations: 0 / 495.7 MB, free: 6.465 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.344e-05/0.1267, allocations: 29.64 kB / 495.7 MB, free: 6.43 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000366/0.127, allocations: 331.5 kB / 496 MB, free: 6.105 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.127, allocations: 0 / 496 MB, free: 6.105 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1271, allocations: 0 / 496 MB, free: 6.105 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.948e-06/0.1271, allocations: 0 / 496 MB, free: 6.105 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.0003826/0.1274, allocations: 385.5 kB / 496.4 MB, free: 5.676 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.1275, allocations: 8.031 kB / 496.4 MB, free: 5.668 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.621e-05/0.1275, allocations: 4.938 kB / 496.4 MB, free: 5.664 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.1276, allocations: 160.4 kB / 496.6 MB, free: 5.469 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.1277, allocations: 8.125 kB / 496.6 MB, free: 5.461 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.17e-05/0.1277, allocations: 4 kB / 496.6 MB, free: 5.457 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.686e-05/0.1278, allocations: 29.69 kB / 496.6 MB, free: 5.422 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.1278, allocations: 0 / 496.6 MB, free: 5.422 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.646e-06/0.1278, allocations: 0 / 496.6 MB, free: 5.422 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.79e-06/0.1278, allocations: 4 kB / 496.6 MB, free: 5.418 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.565e-05/0.1278, allocations: 0 / 496.6 MB, free: 5.418 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001338/0.128, allocations: 157.5 kB / 496.8 MB, free: 5.215 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.512e-05/0.128, allocations: 26.48 kB / 496.8 MB, free: 5.18 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.231e-05/0.128, allocations: 8.844 kB / 496.8 MB, free: 5.168 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.063e-06/0.128, allocations: 0 / 496.8 MB, free: 5.168 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.1281, allocations: 56.27 kB / 496.8 MB, free: 5.098 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.1281, allocations: 0 / 496.8 MB, free: 5.098 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001521/0.1283, allocations: 67.53 kB / 496.9 MB, free: 5.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.328e-05/0.1283, allocations: 89.03 kB / 497 MB, free: 4.914 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.731e-05/0.1284, allocations: 89.86 kB / 497.1 MB, free: 4.816 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.141e-05/0.1284, allocations: 29.7 kB / 497.1 MB, free: 4.781 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.372e-05/0.1284, allocations: 80.14 kB / 497.2 MB, free: 4.699 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.734e-05/0.1284, allocations: 0 / 497.2 MB, free: 4.699 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.044e-06/0.1284, allocations: 0 / 497.2 MB, free: 4.699 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.1286, allocations: 310.8 kB / 497.5 MB, free: 4.387 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.574e-06/0.1286, allocations: 0 / 497.5 MB, free: 4.387 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.852e-06/0.1286, allocations: 8 kB / 497.5 MB, free: 4.379 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.198e-05/0.1287, allocations: 60.27 kB / 497.6 MB, free: 4.305 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1287, allocations: 0 / 497.6 MB, free: 4.305 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.452e-05/0.1287, allocations: 71.27 kB / 497.6 MB, free: 4.223 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.797e-05/0.1288, allocations: 33.7 kB / 497.7 MB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.636e-06/0.1288, allocations: 0 / 497.7 MB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.1288, allocations: 0 / 497.7 MB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.1288, allocations: 0 / 497.7 MB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.1288, allocations: 0 / 497.7 MB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.354e-05/0.1288, allocations: 4.094 kB / 497.7 MB, free: 4.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.733e-06/0.1289, allocations: 0 / 497.7 MB, free: 4.18 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 7.629e-05/0.1289, allocations: 135.5 kB / 497.8 MB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.107e-06/0.129, allocations: 7.922 kB / 497.8 MB, free: 4.023 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.244e-05/0.129, allocations: 11.11 kB / 497.8 MB, free: 4.012 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.129, allocations: 0 / 497.8 MB, free: 4.012 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.11e-07/0.129, allocations: 0 / 497.8 MB, free: 4.012 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.953e-05/0.129, allocations: 81.11 kB / 497.9 MB, free: 3.914 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.074e-05/0.129, allocations: 0 / 497.9 MB, free: 3.914 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.644e-06/0.1291, allocations: 4 kB / 497.9 MB, free: 3.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.337e-05/0.1291, allocations: 0 / 497.9 MB, free: 3.91 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001327/0.1292, allocations: 198 kB / 498.1 MB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001367/0.1294, allocations: 240.5 kB / 498.3 MB, free: 3.434 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.553e-05/0.1294, allocations: 7.938 kB / 498.3 MB, free: 3.426 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.59e-05/0.1294, allocations: 79.34 kB / 498.4 MB, free: 3.348 MB / 378.7 MB Notification: Performance of Backend: time 1.5e-07/0.1294, allocations: 0 / 498.4 MB, free: 3.348 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001741/0.1312, allocations: 0.5163 MB / 498.9 MB, free: 2.844 MB / 378.7 MB Notification: Performance of SimCode: time 0.0004035/0.1316, allocations: 0.6103 MB / 499.5 MB, free: 2.168 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!