Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors.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.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors") translateModel(ModelicaTest.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001367/0.001367, allocations: 191.8 kB / 16.75 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.523/1.523, allocations: 226.5 MB / 244 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009811/0.0009811, allocations: 92.7 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.3623/0.3623, allocations: 44.82 MB / 392.9 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002574/0.0002575, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/0.3272, allocations: 62.96 MB / 0.5165 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.0004841/0.3277, allocations: 221.3 kB / 0.5167 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009421/0.3286, allocations: 0.7217 MB / 0.5174 GB, free: 36.64 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.508e-05/0.3287, allocations: 0 / 0.5174 GB, free: 36.64 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.566e-06/0.3287, allocations: 3.938 kB / 0.5174 GB, free: 36.64 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.752e-06/0.3287, allocations: 0 / 0.5174 GB, free: 36.64 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:612:3-661:14:writable] Warning: Pure function ‘ModelicaTest.Math.Vectors‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001267/0.33, allocations: 0.5489 MB / 0.518 GB, free: 36.34 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.75e-05/0.33, allocations: 0 / 0.518 GB, free: 36.34 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.431e-05/0.3301, allocations: 4 kB / 0.518 GB, free: 36.33 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.686e-05/0.3301, allocations: 2.938 kB / 0.518 GB, free: 36.33 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.981e-05/0.3301, allocations: 0 / 0.518 GB, free: 36.33 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.41e-06/0.3301, allocations: 3.938 kB / 0.518 GB, free: 36.33 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004987/0.3306, allocations: 361.5 kB / 0.5183 GB, free: 36.23 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.284e-06/0.3307, allocations: 4 kB / 0.5183 GB, free: 36.22 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.857e-05/0.3307, allocations: 29.64 kB / 0.5183 GB, free: 36.19 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002715/0.331, allocations: 252.3 kB / 0.5186 GB, free: 36.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.331, allocations: 0 / 0.5186 GB, free: 36.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.331, allocations: 0 / 0.5186 GB, free: 36.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.331, allocations: 0 / 0.5186 GB, free: 36.14 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.0002732/0.3313, allocations: 390.8 kB / 0.519 GB, free: 35.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.3313, allocations: 9.938 kB / 0.519 GB, free: 35.72 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.647e-05/0.3313, allocations: 0.9375 kB / 0.519 GB, free: 35.72 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.724e-05/0.3314, allocations: 160.4 kB / 0.5191 GB, free: 35.53 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.3314, allocations: 4.375 kB / 0.5191 GB, free: 35.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.658e-06/0.3314, allocations: 384 / 0.5191 GB, free: 35.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.117e-05/0.3315, allocations: 29.64 kB / 0.5191 GB, free: 35.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.3315, allocations: 192 / 0.5191 GB, free: 35.49 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.3316, allocations: 7.219 kB / 0.5192 GB, free: 35.49 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3316, allocations: 3.938 kB / 0.5192 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.518e-05/0.3316, allocations: 2.938 kB / 0.5192 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.052e-05/0.3317, allocations: 141.7 kB / 0.5193 GB, free: 35.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.969e-05/0.3317, allocations: 25.58 kB / 0.5193 GB, free: 35.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.191e-05/0.3317, allocations: 4.859 kB / 0.5193 GB, free: 35.26 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.484e-06/0.3318, allocations: 7.875 kB / 0.5193 GB, free: 35.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/0.3318, allocations: 62.17 kB / 0.5194 GB, free: 35.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.3318, allocations: 0 / 0.5194 GB, free: 35.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001732/0.332, allocations: 65.28 kB / 0.5195 GB, free: 35.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.568e-05/0.332, allocations: 84.53 kB / 0.5195 GB, free: 35.01 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.012e-05/0.332, allocations: 96.48 kB / 0.5196 GB, free: 34.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.855e-06/0.3321, allocations: 25.7 kB / 0.5197 GB, free: 34.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.116e-05/0.3321, allocations: 80.14 kB / 0.5197 GB, free: 34.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.599e-05/0.3321, allocations: 0 / 0.5197 GB, free: 34.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.823e-06/0.3321, allocations: 0 / 0.5197 GB, free: 34.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.427e-05/0.3321, allocations: 313.5 kB / 0.52 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.612e-06/0.3322, allocations: 0 / 0.52 GB, free: 34.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.168e-06/0.3322, allocations: 0 / 0.52 GB, free: 34.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.003e-05/0.3322, allocations: 63.05 kB / 0.5201 GB, free: 34.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3322, allocations: 6.469 kB / 0.5201 GB, free: 34.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.776e-05/0.3323, allocations: 64.36 kB / 0.5202 GB, free: 34.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.3323, allocations: 31.55 kB / 0.5202 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.3323, allocations: 0 / 0.5202 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.3323, allocations: 7.922 kB / 0.5202 GB, free: 34.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.062e-06/0.3323, allocations: 0 / 0.5202 GB, free: 34.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.3323, allocations: 3.281 kB / 0.5202 GB, free: 34.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.402e-05/0.3323, allocations: 2.906 kB / 0.5202 GB, free: 34.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-06/0.3324, allocations: 32 / 0.5202 GB, free: 34.3 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.893e-05/0.3324, allocations: 138.5 kB / 0.5203 GB, free: 34.15 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.913e-06/0.3324, allocations: 4 kB / 0.5203 GB, free: 34.15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.574e-06/0.3324, allocations: 3.125 kB / 0.5203 GB, free: 34.15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.3324, allocations: 3.938 kB / 0.5203 GB, free: 34.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.61e-07/0.3325, allocations: 0 / 0.5203 GB, free: 34.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.603e-05/0.3325, allocations: 83.2 kB / 0.5204 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.042e-05/0.3325, allocations: 0 / 0.5204 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.526e-06/0.3325, allocations: 4 kB / 0.5204 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.511e-05/0.3325, allocations: 6.969 kB / 0.5204 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.11e-05/0.3326, allocations: 194 kB / 0.5206 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 8.135e-05/0.3327, allocations: 236.4 kB / 0.5208 GB, free: 33.6 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.597e-05/0.3327, allocations: 7.156 kB / 0.5208 GB, free: 33.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.392e-05/0.3327, allocations: 75.28 kB / 0.5209 GB, free: 33.52 MB / 378.7 MB Notification: Performance of Backend: time 2.31e-07/0.3327, allocations: 4 kB / 0.5209 GB, free: 33.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007298/0.3335, allocations: 270.4 kB / 0.5212 GB, free: 33.34 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002397/0.3337, allocations: 0.5927 MB / 0.5218 GB, free: 32.68 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!