Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestScalarFunctions.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.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadModel(ModelicaTest): time 2.44/2.44, allocations: 234.9 MB / 251.1 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006284/0.0006285, allocations: 8 kB / 314.9 MB, free: 9.633 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3808/0.3815, allocations: 54.87 MB / 369.8 MB, free: 10.76 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0007085/0.3823, allocations: 220.5 kB / 370 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002633/0.3849, allocations: 1.331 MB / 371.4 MB, free: 9.191 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.929e-05/0.385, allocations: 4 kB / 371.4 MB, free: 9.188 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.606e-05/0.3851, allocations: 3.938 kB / 371.4 MB, free: 9.184 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.111e-06/0.3851, allocations: 4 kB / 371.4 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006646/0.3858, allocations: 87.7 kB / 371.4 MB, free: 9.094 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.568e-05/0.3858, allocations: 0 / 371.4 MB, free: 9.094 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.948e-05/0.3859, allocations: 0 / 371.4 MB, free: 9.094 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.824e-05/0.3859, allocations: 0 / 371.4 MB, free: 9.094 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.967e-05/0.3859, allocations: 3.938 kB / 371.5 MB, free: 9.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.804e-06/0.3859, allocations: 0 / 371.5 MB, free: 9.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002109/0.3862, allocations: 43.91 kB / 371.5 MB, free: 9.047 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.103e-06/0.3862, allocations: 3.938 kB / 371.5 MB, free: 9.043 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.834e-05/0.3862, allocations: 25.7 kB / 371.5 MB, free: 9.012 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001017/0.3864, allocations: 27.95 kB / 371.6 MB, free: 8.984 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.3864, allocations: 0 / 371.6 MB, free: 8.984 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3864, allocations: 4 kB / 371.6 MB, free: 8.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.3864, allocations: 0 / 371.6 MB, free: 8.98 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.0003619/0.3868, allocations: 341.1 kB / 371.9 MB, free: 8.594 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.3868, allocations: 8.031 kB / 371.9 MB, free: 8.586 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.77e-05/0.3869, allocations: 4 kB / 371.9 MB, free: 8.582 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001239/0.387, allocations: 159.1 kB / 372.1 MB, free: 8.387 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.387, allocations: 0 / 372.1 MB, free: 8.387 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.276e-05/0.3871, allocations: 4 kB / 372.1 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001039/0.3872, allocations: 33.7 kB / 372.1 MB, free: 8.344 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.3872, allocations: 7.891 kB / 372.1 MB, free: 8.336 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.908e-06/0.3872, allocations: 0 / 372.1 MB, free: 8.336 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.3872, allocations: 0 / 372.1 MB, free: 8.336 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.24e-05/0.3873, allocations: 3.984 kB / 372.1 MB, free: 8.332 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001701/0.3874, allocations: 149.7 kB / 372.2 MB, free: 8.137 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.228e-05/0.3875, allocations: 14.58 kB / 372.3 MB, free: 8.113 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.724e-06/0.3875, allocations: 0 / 372.3 MB, free: 8.113 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.255e-05/0.3876, allocations: 64.36 kB / 372.3 MB, free: 8.035 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.573e-06/0.3876, allocations: 0 / 372.3 MB, free: 8.035 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002044/0.3878, allocations: 79.17 kB / 372.4 MB, free: 7.945 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.3879, allocations: 81.11 kB / 372.5 MB, free: 7.848 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.796e-05/0.3879, allocations: 89.86 kB / 372.6 MB, free: 7.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.195e-05/0.388, allocations: 25.7 kB / 372.6 MB, free: 7.719 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.876e-05/0.3881, allocations: 150.6 kB / 372.7 MB, free: 7.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.377e-05/0.3881, allocations: 0 / 372.7 MB, free: 7.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-06/0.3881, allocations: 8.062 kB / 372.8 MB, free: 7.562 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.3883, allocations: 310.8 kB / 373.1 MB, free: 7.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.406e-05/0.3883, allocations: 4 kB / 373.1 MB, free: 7.246 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.364e-06/0.3883, allocations: 0 / 373.1 MB, free: 7.246 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.798e-05/0.3883, allocations: 33.69 kB / 373.1 MB, free: 7.207 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3884, allocations: 0 / 373.1 MB, free: 7.207 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.516e-05/0.3885, allocations: 63.34 kB / 373.2 MB, free: 7.133 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.078e-05/0.3885, allocations: 29.7 kB / 373.2 MB, free: 7.098 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.3885, allocations: 4.094 kB / 373.2 MB, free: 7.094 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.3886, allocations: 4 kB / 373.2 MB, free: 7.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.563e-06/0.3886, allocations: 0 / 373.2 MB, free: 7.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.3886, allocations: 0 / 373.2 MB, free: 7.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.27e-05/0.3886, allocations: 3.953 kB / 373.2 MB, free: 7.086 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.3886, allocations: 7.922 kB / 373.2 MB, free: 7.078 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.0001099/0.3888, allocations: 135.5 kB / 373.3 MB, free: 6.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.023e-05/0.3888, allocations: 0 / 373.3 MB, free: 6.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.479e-05/0.3888, allocations: 7.109 kB / 373.3 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.3888, allocations: 0 / 373.3 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.3888, allocations: 4 kB / 373.3 MB, free: 6.922 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.382e-05/0.3889, allocations: 85.11 kB / 373.4 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.796e-05/0.3889, allocations: 3.953 kB / 373.4 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.088e-05/0.3889, allocations: 0 / 373.4 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.693e-05/0.389, allocations: 3.984 kB / 373.4 MB, free: 6.812 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001649/0.3891, allocations: 190 kB / 373.6 MB, free: 6.602 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000191/0.3893, allocations: 240.6 kB / 373.9 MB, free: 6.344 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.747e-05/0.3894, allocations: 8 kB / 373.9 MB, free: 6.336 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.322e-05/0.3894, allocations: 83.23 kB / 373.9 MB, free: 6.254 MB / 298.7 MB Notification: Performance of Backend: time 7.72e-07/0.3894, allocations: 0 / 373.9 MB, free: 6.254 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006191/0.3901, allocations: 173.3 kB / 374.1 MB, free: 6.074 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004726/0.3906, allocations: 0.6144 MB / 374.7 MB, free: 5.395 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) []