Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.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.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadModel(ModelicaTest): time 2.342/2.342, allocations: 234.9 MB / 251.1 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004147/0.0004147, allocations: 8 kB / 314.9 MB, free: 9.621 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.341, allocations: 54.87 MB / 369.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0007429/0.3418, allocations: 200.4 kB / 370 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005779/0.3476, allocations: 2.133 MB / 372.1 MB, free: 8.371 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.624e-05/0.3477, allocations: 0 / 372.1 MB, free: 8.371 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.158e-05/0.3477, allocations: 3.938 kB / 372.1 MB, free: 8.367 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.651e-06/0.3478, allocations: 0 / 372.1 MB, free: 8.367 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004388/0.3522, allocations: 0.9036 MB / 373 MB, free: 7.461 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.704e-05/0.3522, allocations: 0 / 373 MB, free: 7.461 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.025e-05/0.3523, allocations: 0 / 373 MB, free: 7.461 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.806e-05/0.3523, allocations: 4 kB / 373.1 MB, free: 7.457 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.924e-05/0.3524, allocations: 7.938 kB / 373.1 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.805e-06/0.3524, allocations: 0 / 373.1 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003172/0.3556, allocations: 0.796 MB / 373.9 MB, free: 6.652 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.146e-05/0.3556, allocations: 4 kB / 373.9 MB, free: 6.648 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.303e-05/0.3557, allocations: 25.7 kB / 373.9 MB, free: 6.617 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007011/0.3564, allocations: 259.5 kB / 374.1 MB, free: 6.363 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.3564, allocations: 0 / 374.1 MB, free: 6.363 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3564, allocations: 4 kB / 374.1 MB, free: 6.359 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.449e-06/0.3564, allocations: 0 / 374.1 MB, free: 6.359 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.0005856/0.357, allocations: 428.9 kB / 374.6 MB, free: 5.887 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.707e-05/0.3571, allocations: 8.031 kB / 374.6 MB, free: 5.879 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.262e-05/0.3572, allocations: 4 kB / 374.6 MB, free: 5.875 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001328/0.3573, allocations: 159.1 kB / 374.7 MB, free: 5.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.3573, allocations: 0 / 374.7 MB, free: 5.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.83e-05/0.3574, allocations: 3.984 kB / 374.7 MB, free: 5.676 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001047/0.3575, allocations: 33.64 kB / 374.8 MB, free: 5.637 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.3575, allocations: 0 / 374.8 MB, free: 5.637 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.3575, allocations: 4 kB / 374.8 MB, free: 5.633 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.3576, allocations: 7.953 kB / 374.8 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.378e-05/0.3576, allocations: 0 / 374.8 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001831/0.3578, allocations: 145.7 kB / 374.9 MB, free: 5.434 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.313e-05/0.3579, allocations: 22.5 kB / 374.9 MB, free: 5.402 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.277e-06/0.3579, allocations: 0 / 374.9 MB, free: 5.402 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.881e-05/0.358, allocations: 56.27 kB / 375 MB, free: 5.332 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.933e-06/0.358, allocations: 4.094 kB / 375 MB, free: 5.328 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002117/0.3582, allocations: 71.3 kB / 375.1 MB, free: 5.246 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.247e-05/0.3583, allocations: 81.11 kB / 375.1 MB, free: 5.148 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.458e-05/0.3584, allocations: 93.84 kB / 375.2 MB, free: 5.047 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.3584, allocations: 29.64 kB / 375.3 MB, free: 5.012 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.887e-05/0.3585, allocations: 150.6 kB / 375.4 MB, free: 4.863 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.794e-05/0.3585, allocations: 0 / 375.4 MB, free: 4.863 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.162e-06/0.3585, allocations: 0 / 375.4 MB, free: 4.863 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.3587, allocations: 318.7 kB / 375.7 MB, free: 4.543 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.251e-05/0.3587, allocations: 12.12 kB / 375.7 MB, free: 4.531 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.077e-06/0.3587, allocations: 0 / 375.7 MB, free: 4.531 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.713e-05/0.3588, allocations: 25.7 kB / 375.8 MB, free: 4.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3588, allocations: 0 / 375.8 MB, free: 4.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001143/0.3589, allocations: 63.39 kB / 375.8 MB, free: 4.426 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.689e-05/0.359, allocations: 29.7 kB / 375.9 MB, free: 4.391 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.359, allocations: 4 kB / 375.9 MB, free: 4.387 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.359, allocations: 0 / 375.9 MB, free: 4.387 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.234e-06/0.3591, allocations: 0 / 375.9 MB, free: 4.387 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.3591, allocations: 4.094 kB / 375.9 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.515e-05/0.3591, allocations: 0 / 375.9 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.3591, allocations: 3.984 kB / 375.9 MB, free: 4.379 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.0001289/0.3593, allocations: 147.4 kB / 376 MB, free: 4.219 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.262e-05/0.3593, allocations: 0 / 376 MB, free: 4.219 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.462e-05/0.3593, allocations: 7.109 kB / 376 MB, free: 4.215 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3594, allocations: 0 / 376 MB, free: 4.215 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3594, allocations: 0 / 376 MB, free: 4.215 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.154e-05/0.3594, allocations: 77.11 kB / 376.1 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.3595, allocations: 8 kB / 376.1 MB, free: 4.113 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.974e-05/0.3595, allocations: 3.953 kB / 376.1 MB, free: 4.109 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.838e-05/0.3595, allocations: 0 / 376.1 MB, free: 4.109 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001872/0.3597, allocations: 194.1 kB / 376.3 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002151/0.36, allocations: 240.5 kB / 376.5 MB, free: 3.637 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.96e-05/0.36, allocations: 7.984 kB / 376.5 MB, free: 3.629 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.942e-05/0.3601, allocations: 83.28 kB / 376.6 MB, free: 3.547 MB / 298.7 MB Notification: Performance of Backend: time 6.72e-07/0.3601, allocations: 0 / 376.6 MB, free: 3.547 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.02721/0.3873, allocations: 397.2 kB / 377 MB, free: 3.152 MB / 298.7 MB Notification: Performance of SimCode: time 0.0005108/0.3879, allocations: 0.6064 MB / 377.6 MB, free: 2.48 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) []