Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestVectors.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.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestVectors") translateModel(ModelicaTest.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestVectors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001348/0.001348, allocations: 178.1 kB / 17.39 MB, free: 4.27 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.465/1.465, allocations: 205.4 MB / 223.5 MB, free: 8.992 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.0007873/0.0007872, allocations: 96.97 kB / 271.9 MB, free: 8.234 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.3846/0.3846, allocations: 43.55 MB / 363.7 MB, free: 51.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000376/0.000376, allocations: 12 kB / 432.6 MB, free: 5.602 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1203, allocations: 58.85 MB / 491.5 MB, free: 10.65 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.0005481/0.1209, allocations: 228.3 kB / 491.7 MB, free: 10.43 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002438/0.1234, allocations: 1.888 MB / 493.6 MB, free: 8.527 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.301e-05/0.1234, allocations: 0 / 493.6 MB, free: 8.527 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.378e-05/0.1234, allocations: 3.938 kB / 493.6 MB, free: 8.523 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.353e-06/0.1234, allocations: 4 kB / 493.6 MB, free: 8.52 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001648/0.1251, allocations: 0.5883 MB / 494.2 MB, free: 7.93 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.862e-05/0.1251, allocations: 3.984 kB / 494.2 MB, free: 7.926 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.874e-05/0.1252, allocations: 0 / 494.2 MB, free: 7.926 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.442e-05/0.1252, allocations: 4 kB / 494.2 MB, free: 7.922 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.577e-05/0.1252, allocations: 0 / 494.2 MB, free: 7.922 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.831e-06/0.1252, allocations: 0 / 494.2 MB, free: 7.922 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009557/0.1262, allocations: 0.6239 MB / 494.8 MB, free: 7.297 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.907e-06/0.1262, allocations: 0 / 494.8 MB, free: 7.297 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.164e-05/0.1263, allocations: 25.7 kB / 494.8 MB, free: 7.266 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004596/0.1267, allocations: 411.1 kB / 495.2 MB, free: 6.863 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1267, allocations: 3.984 kB / 495.2 MB, free: 6.859 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1267, allocations: 4 kB / 495.3 MB, free: 6.855 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.296e-06/0.1268, allocations: 0 / 495.3 MB, free: 6.855 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.000391/0.1272, allocations: 393.2 kB / 495.6 MB, free: 6.418 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.1272, allocations: 12.03 kB / 495.6 MB, free: 6.406 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.186e-05/0.1272, allocations: 8.922 kB / 495.7 MB, free: 6.398 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.055e-05/0.1273, allocations: 164.4 kB / 495.8 MB, free: 6.199 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.1274, allocations: 384 / 495.8 MB, free: 6.199 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.602e-06/0.1274, allocations: 384 / 495.8 MB, free: 6.199 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.731e-05/0.1275, allocations: 37.83 kB / 495.9 MB, free: 6.156 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.1275, allocations: 0 / 495.9 MB, free: 6.156 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/0.1275, allocations: 3.938 kB / 495.9 MB, free: 6.152 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.1275, allocations: 0 / 495.9 MB, free: 6.152 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.142e-05/0.1275, allocations: 0 / 495.9 MB, free: 6.152 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001256/0.1277, allocations: 157.6 kB / 496 MB, free: 5.949 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.124e-05/0.1277, allocations: 18.58 kB / 496 MB, free: 5.922 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.219e-05/0.1277, allocations: 4.859 kB / 496 MB, free: 5.914 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.508e-06/0.1277, allocations: 4.094 kB / 496 MB, free: 5.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.165e-05/0.1278, allocations: 60.2 kB / 496.1 MB, free: 5.836 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1278, allocations: 0 / 496.1 MB, free: 5.836 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001513/0.128, allocations: 71.39 kB / 496.2 MB, free: 5.754 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.903e-05/0.128, allocations: 85.11 kB / 496.2 MB, free: 5.652 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.337e-05/0.128, allocations: 89.86 kB / 496.3 MB, free: 5.555 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.1281, allocations: 25.7 kB / 496.4 MB, free: 5.523 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.022e-05/0.1281, allocations: 80.14 kB / 496.4 MB, free: 5.441 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.557e-05/0.1281, allocations: 0 / 496.4 MB, free: 5.441 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.874e-06/0.1281, allocations: 0 / 496.4 MB, free: 5.441 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.1282, allocations: 314.8 kB / 496.7 MB, free: 5.125 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.104e-06/0.1282, allocations: 0 / 496.7 MB, free: 5.125 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.098e-06/0.1283, allocations: 4 kB / 496.8 MB, free: 5.121 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.343e-05/0.1283, allocations: 64.25 kB / 496.8 MB, free: 5.043 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1283, allocations: 0 / 496.8 MB, free: 5.043 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.485e-05/0.1284, allocations: 67.34 kB / 496.9 MB, free: 4.965 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/0.1284, allocations: 33.64 kB / 496.9 MB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.1284, allocations: 0 / 496.9 MB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.1285, allocations: 0 / 496.9 MB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.437e-06/0.1285, allocations: 4 kB / 496.9 MB, free: 4.922 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1285, allocations: 0 / 496.9 MB, free: 4.922 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.026e-05/0.1285, allocations: 12.08 kB / 496.9 MB, free: 4.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.1285, allocations: 0 / 496.9 MB, free: 4.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 9.032e-05/0.1286, allocations: 131.5 kB / 497.1 MB, free: 4.766 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.151e-05/0.1286, allocations: 7.938 kB / 497.1 MB, free: 4.758 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.789e-06/0.1286, allocations: 3.125 kB / 497.1 MB, free: 4.754 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.1287, allocations: 0 / 497.1 MB, free: 4.754 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.1287, allocations: 0 / 497.1 MB, free: 4.754 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.904e-05/0.1287, allocations: 77.11 kB / 497.1 MB, free: 4.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.1287, allocations: 0 / 497.1 MB, free: 4.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.448e-06/0.1287, allocations: 11.92 kB / 497.2 MB, free: 4.648 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.249e-05/0.1288, allocations: 8 kB / 497.2 MB, free: 4.641 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001275/0.1289, allocations: 190 kB / 497.3 MB, free: 4.43 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001516/0.1291, allocations: 240.5 kB / 497.6 MB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.468e-05/0.1291, allocations: 0 / 497.6 MB, free: 4.172 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.826e-05/0.1291, allocations: 79.34 kB / 497.7 MB, free: 4.094 MB / 378.7 MB Notification: Performance of Backend: time 1.9e-07/0.1291, allocations: 0 / 497.7 MB, free: 4.094 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008896/0.13, allocations: 297.7 kB / 498 MB, free: 3.789 MB / 378.7 MB Notification: Performance of SimCode: time 0.0003581/0.1304, allocations: 0.5987 MB / 498.6 MB, free: 3.129 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!