Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.ComplexMath.TestComplexOperations.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: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadModel(ModelicaTest): time 2.359/2.359, allocations: 234.9 MB / 251.1 MB, free: 9.488 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005982/0.0005984, allocations: 12 kB / 314.9 MB, free: 9.551 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3511, allocations: 54.87 MB / 369.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0006462/0.3518, allocations: 200.5 kB / 370 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004598/0.3564, allocations: 2.137 MB / 372.1 MB, free: 8.367 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.206e-05/0.3565, allocations: 0 / 372.1 MB, free: 8.367 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.542e-05/0.3565, allocations: 0 / 372.1 MB, free: 8.367 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.861e-06/0.3565, allocations: 0 / 372.1 MB, free: 8.367 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003625/0.3602, allocations: 0.9036 MB / 373 MB, free: 7.461 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.745e-05/0.3602, allocations: 4 kB / 373 MB, free: 7.457 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.859e-05/0.3603, allocations: 7.922 kB / 373.1 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.743e-05/0.3603, allocations: 0 / 373.1 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.605e-05/0.3604, allocations: 0 / 373.1 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.848e-06/0.3604, allocations: 0 / 373.1 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002265/0.3626, allocations: 0.8076 MB / 373.9 MB, free: 6.641 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.243e-06/0.3627, allocations: 0 / 373.9 MB, free: 6.641 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.646e-05/0.3628, allocations: 25.7 kB / 373.9 MB, free: 6.609 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006824/0.3634, allocations: 263.5 kB / 374.1 MB, free: 6.352 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.3635, allocations: 0 / 374.1 MB, free: 6.352 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3635, allocations: 0 / 374.1 MB, free: 6.352 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.578e-06/0.3635, allocations: 0 / 374.1 MB, free: 6.352 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.0005042/0.364, allocations: 424.9 kB / 374.6 MB, free: 5.883 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.3641, allocations: 12.03 kB / 374.6 MB, free: 5.871 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.39e-05/0.3641, allocations: 0 / 374.6 MB, free: 5.871 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.3642, allocations: 163 kB / 374.7 MB, free: 5.672 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.3642, allocations: 0 / 374.7 MB, free: 5.672 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.3643, allocations: 0 / 374.7 MB, free: 5.672 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.39e-05/0.3644, allocations: 33.69 kB / 374.8 MB, free: 5.633 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.3644, allocations: 0 / 374.8 MB, free: 5.633 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.3644, allocations: 0 / 374.8 MB, free: 5.633 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.3644, allocations: 7.953 kB / 374.8 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.921e-05/0.3644, allocations: 0 / 374.8 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001575/0.3646, allocations: 153.7 kB / 374.9 MB, free: 5.426 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.41e-05/0.3647, allocations: 18.52 kB / 374.9 MB, free: 5.398 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.027e-05/0.3647, allocations: 3.984 kB / 374.9 MB, free: 5.395 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.4e-05/0.3648, allocations: 60.36 kB / 375 MB, free: 5.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.583e-06/0.3648, allocations: 0 / 375 MB, free: 5.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001974/0.365, allocations: 67.31 kB / 375.1 MB, free: 5.242 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.365, allocations: 81.23 kB / 375.1 MB, free: 5.145 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.928e-05/0.3651, allocations: 89.86 kB / 375.2 MB, free: 5.047 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.3651, allocations: 25.7 kB / 375.3 MB, free: 5.016 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.271e-05/0.3652, allocations: 154.5 kB / 375.4 MB, free: 4.863 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.3652, allocations: 0 / 375.4 MB, free: 4.863 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-06/0.3652, allocations: 3.938 kB / 375.4 MB, free: 4.859 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3654, allocations: 318.8 kB / 375.7 MB, free: 4.539 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.132e-05/0.3654, allocations: 3.938 kB / 375.7 MB, free: 4.535 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.598e-06/0.3654, allocations: 4 kB / 375.7 MB, free: 4.531 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.372e-05/0.3655, allocations: 29.7 kB / 375.8 MB, free: 4.496 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.3655, allocations: 4 kB / 375.8 MB, free: 4.492 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.833e-05/0.3656, allocations: 55.41 kB / 375.8 MB, free: 4.426 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.099e-05/0.3657, allocations: 37.69 kB / 375.9 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3657, allocations: 0 / 375.9 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.3657, allocations: 3.938 kB / 375.9 MB, free: 4.379 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.463e-06/0.3657, allocations: 0 / 375.9 MB, free: 4.379 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.3657, allocations: 0 / 375.9 MB, free: 4.379 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.895e-05/0.3658, allocations: 0 / 375.9 MB, free: 4.379 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.3658, allocations: 4.094 kB / 375.9 MB, free: 4.375 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 0.0001044/0.3659, allocations: 139.5 kB / 376 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.001e-05/0.3659, allocations: 0 / 376 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.292e-05/0.3659, allocations: 3.125 kB / 376 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.3659, allocations: 7.922 kB / 376 MB, free: 4.215 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.366, allocations: 4 kB / 376 MB, free: 4.211 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.599e-05/0.366, allocations: 81.11 kB / 376.1 MB, free: 4.113 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.366, allocations: 0 / 376.1 MB, free: 4.113 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.369e-05/0.3661, allocations: 3.953 kB / 376.1 MB, free: 4.109 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.654e-05/0.3661, allocations: 4 kB / 376.1 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001517/0.3662, allocations: 194.1 kB / 376.3 MB, free: 3.891 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001745/0.3664, allocations: 236.5 kB / 376.5 MB, free: 3.637 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.672e-05/0.3665, allocations: 11.98 kB / 376.5 MB, free: 3.625 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.626e-05/0.3665, allocations: 75.28 kB / 376.6 MB, free: 3.551 MB / 298.7 MB Notification: Performance of Backend: time 6.11e-07/0.3665, allocations: 4.062 kB / 376.6 MB, free: 3.547 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001261/0.3678, allocations: 402 kB / 377 MB, free: 3.148 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004345/0.3683, allocations: 0.6064 MB / 377.6 MB, free: 2.477 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for result found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: result (no alias) initial: no arrCref index:(1) []