Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestInternal.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.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadModel(ModelicaTest): time 2.391/2.391, allocations: 234.9 MB / 251.1 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004325/0.0004326, allocations: 8 kB / 314.9 MB, free: 9.621 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.346, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0006584/0.3467, allocations: 208.5 kB / 370 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000734/0.3474, allocations: 221.6 kB / 370.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.913e-05/0.3475, allocations: 3.938 kB / 370.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.277e-05/0.3475, allocations: 0 / 370.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.221e-06/0.3475, allocations: 0 / 370.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002902/0.3478, allocations: 47.81 kB / 370.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.05e-05/0.3478, allocations: 0 / 370.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.475e-05/0.3479, allocations: 4 kB / 370.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.58e-05/0.3479, allocations: 4 kB / 370.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.414e-05/0.348, allocations: 0 / 370.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.526e-06/0.348, allocations: 0 / 370.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.3481, allocations: 51.89 kB / 370.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.052e-06/0.3482, allocations: 0 / 370.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.186e-05/0.3482, allocations: 25.7 kB / 370.4 MB, free: 10.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001135/0.3483, allocations: 39.94 kB / 370.4 MB, free: 10.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.3483, allocations: 0 / 370.4 MB, free: 10.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3483, allocations: 0 / 370.4 MB, free: 10.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.3484, allocations: 0 / 370.4 MB, free: 10.13 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.0003178/0.3487, allocations: 361 kB / 370.8 MB, free: 9.727 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.3487, allocations: 8.031 kB / 370.8 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.237e-05/0.3488, allocations: 11.92 kB / 370.8 MB, free: 9.707 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001037/0.3489, allocations: 167 kB / 370.9 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.3489, allocations: 4 kB / 370.9 MB, free: 9.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.799e-06/0.3489, allocations: 0 / 370.9 MB, free: 9.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.024e-05/0.349, allocations: 25.7 kB / 371 MB, free: 9.469 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.3491, allocations: 4 kB / 371 MB, free: 9.465 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.816e-06/0.3491, allocations: 0 / 371 MB, free: 9.465 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.3491, allocations: 4 kB / 371 MB, free: 9.461 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.248e-05/0.3491, allocations: 3.953 kB / 371 MB, free: 9.457 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001383/0.3493, allocations: 145.7 kB / 371.1 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.644e-05/0.3493, allocations: 26.55 kB / 371.1 MB, free: 9.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.139e-06/0.3493, allocations: 0 / 371.1 MB, free: 9.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.889e-05/0.3494, allocations: 60.27 kB / 371.2 MB, free: 9.156 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.493e-06/0.3494, allocations: 0 / 371.2 MB, free: 9.156 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001846/0.3496, allocations: 71.36 kB / 371.3 MB, free: 9.074 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.3497, allocations: 77.11 kB / 371.3 MB, free: 8.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.406e-05/0.3497, allocations: 89.86 kB / 371.4 MB, free: 8.883 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.3498, allocations: 29.7 kB / 371.5 MB, free: 8.848 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.244e-05/0.3498, allocations: 150.6 kB / 371.6 MB, free: 8.699 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.865e-05/0.3498, allocations: 4 kB / 371.6 MB, free: 8.695 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-06/0.3499, allocations: 0 / 371.6 MB, free: 8.695 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.35, allocations: 314.8 kB / 371.9 MB, free: 8.379 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.15e-05/0.35, allocations: 12 kB / 371.9 MB, free: 8.367 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.779e-06/0.35, allocations: 4 kB / 371.9 MB, free: 8.363 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.128e-05/0.3501, allocations: 25.7 kB / 372 MB, free: 8.332 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.3501, allocations: 0 / 372 MB, free: 8.332 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.806e-05/0.3502, allocations: 63.39 kB / 372 MB, free: 8.258 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.019e-05/0.3502, allocations: 29.7 kB / 372.1 MB, free: 8.223 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3503, allocations: 0 / 372.1 MB, free: 8.223 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.3503, allocations: 3.938 kB / 372.1 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.603e-06/0.3503, allocations: 4 kB / 372.1 MB, free: 8.215 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.3503, allocations: 8.078 kB / 372.1 MB, free: 8.207 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.891e-05/0.3503, allocations: 0 / 372.1 MB, free: 8.207 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-06/0.3504, allocations: 0 / 372.1 MB, free: 8.207 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.0001064/0.3505, allocations: 147.5 kB / 372.2 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.037e-06/0.3505, allocations: 0 / 372.2 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.066e-05/0.3505, allocations: 3.125 kB / 372.2 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.3505, allocations: 0 / 372.2 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.3505, allocations: 4 kB / 372.2 MB, free: 8.043 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.892e-05/0.3506, allocations: 77.11 kB / 372.3 MB, free: 7.949 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.863e-05/0.3506, allocations: 8 kB / 372.3 MB, free: 7.941 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.13e-05/0.3506, allocations: 3.938 kB / 372.3 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.524e-05/0.3506, allocations: 3.953 kB / 372.3 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001398/0.3508, allocations: 194.1 kB / 372.5 MB, free: 7.719 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001685/0.351, allocations: 236.5 kB / 372.7 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.366e-05/0.351, allocations: 3.938 kB / 372.7 MB, free: 7.461 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.899e-05/0.3511, allocations: 83.34 kB / 372.8 MB, free: 7.379 MB / 298.7 MB Notification: Performance of Backend: time 7.72e-07/0.3511, allocations: 0 / 372.8 MB, free: 7.379 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008771/0.352, allocations: 300.7 kB / 373.1 MB, free: 7.129 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004046/0.3524, allocations: 0.6227 MB / 373.7 MB, free: 6.438 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) []