Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|k1|k2",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative") Notification: Performance of loadModel(ModelicaTest): time 1.902/1.902, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004283/0.0004283, allocations: 8 kB / 283.1 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3505, allocations: 48.71 MB / 331.8 MB, free: 6.484 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative): time 0.0007714/0.3514, allocations: 234.9 kB / 332 MB, free: 6.387 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003052/0.3517, allocations: 88.47 kB / 332.1 MB, free: 6.352 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.116e-05/0.3517, allocations: 0 / 332.1 MB, free: 6.352 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.208e-05/0.3518, allocations: 3.938 kB / 332.1 MB, free: 6.348 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 2.569e-05/0.3518, allocations: 2.062 kB / 332.1 MB, free: 6.348 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001843/0.352, allocations: 16.5 kB / 332.2 MB, free: 6.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 4.803e-05/0.3521, allocations: 5.422 kB / 332.2 MB, free: 6.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.502e-05/0.3521, allocations: 1.984 kB / 332.2 MB, free: 6.34 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.803e-05/0.3521, allocations: 8.734 kB / 332.2 MB, free: 6.336 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.445e-05/0.3522, allocations: 11.89 kB / 332.2 MB, free: 6.328 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.592e-05/0.3522, allocations: 1.375 kB / 332.2 MB, free: 6.328 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.3524, allocations: 30.47 kB / 332.2 MB, free: 6.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.098e-05/0.3524, allocations: 3.156 kB / 332.2 MB, free: 6.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.782e-05/0.3524, allocations: 25.7 kB / 332.2 MB, free: 6.289 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 7.764e-05/0.3525, allocations: 13.73 kB / 332.3 MB, free: 6.289 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.3525, allocations: 0 / 332.3 MB, free: 6.289 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3525, allocations: 0 / 332.3 MB, free: 6.289 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.3525, allocations: 1.375 kB / 332.3 MB, free: 6.289 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003389/0.3529, allocations: 329.3 kB / 332.6 MB, free: 5.934 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.3529, allocations: 9.625 kB / 332.6 MB, free: 5.934 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.022e-05/0.353, allocations: 0.7031 kB / 332.6 MB, free: 5.934 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.806e-05/0.3531, allocations: 165.7 kB / 332.7 MB, free: 5.734 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.3531, allocations: 6.203 kB / 332.8 MB, free: 5.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.3531, allocations: 1.375 kB / 332.8 MB, free: 5.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.3533, allocations: 51.61 kB / 332.8 MB, free: 5.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.3533, allocations: 0 / 332.8 MB, free: 5.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.3533, allocations: 8 kB / 332.8 MB, free: 5.672 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.3533, allocations: 1.375 kB / 332.8 MB, free: 5.672 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.432e-05/0.3534, allocations: 12.59 kB / 332.8 MB, free: 5.668 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002799/0.3537, allocations: 327 kB / 333.1 MB, free: 5.309 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.637e-05/0.3538, allocations: 29.05 kB / 333.2 MB, free: 5.277 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.3538, allocations: 2.031 kB / 333.2 MB, free: 5.277 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.002e-05/0.3538, allocations: 36.69 kB / 333.2 MB, free: 5.234 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.523e-06/0.3538, allocations: 0 / 333.2 MB, free: 5.234 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002214/0.354, allocations: 66.3 kB / 333.3 MB, free: 5.184 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.069e-05/0.3541, allocations: 51.41 kB / 333.3 MB, free: 5.121 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.689e-05/0.3541, allocations: 94.72 kB / 333.4 MB, free: 5.023 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.658e-06/0.3542, allocations: 25.7 kB / 333.4 MB, free: 4.992 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.59e-05/0.3542, allocations: 151.9 kB / 333.6 MB, free: 4.844 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.678e-05/0.3542, allocations: 18.09 kB / 333.6 MB, free: 4.828 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.05e-06/0.3543, allocations: 5.375 kB / 333.6 MB, free: 4.824 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.512e-05/0.3543, allocations: 311.7 kB / 333.9 MB, free: 4.512 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.441e-05/0.3544, allocations: 9.812 kB / 333.9 MB, free: 4.508 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.704e-05/0.3544, allocations: 16.44 kB / 333.9 MB, free: 4.492 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.186e-05/0.3545, allocations: 14.67 kB / 334 MB, free: 4.484 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3545, allocations: 0 / 334 MB, free: 4.484 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001233/0.3546, allocations: 57.8 kB / 334 MB, free: 4.441 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.3546, allocations: 8.156 kB / 334 MB, free: 4.438 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.3546, allocations: 1.375 kB / 334 MB, free: 4.438 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.3547, allocations: 1.984 kB / 334 MB, free: 4.438 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.406e-05/0.3548, allocations: 8.141 kB / 334 MB, free: 4.438 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.3548, allocations: 0 / 334 MB, free: 4.438 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.208e-05/0.3548, allocations: 5.312 kB / 334 MB, free: 4.434 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/0.3549, allocations: 1.891 kB / 334 MB, free: 4.434 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 6.09e-05/0.3549, allocations: 113.2 kB / 334.2 MB, free: 4.316 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.952e-05/0.355, allocations: 9.281 kB / 334.2 MB, free: 4.309 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001558/0.3551, allocations: 61.48 kB / 334.2 MB, free: 4.258 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.85e-06/0.3552, allocations: 0.5156 kB / 334.2 MB, free: 4.258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.3552, allocations: 3.984 kB / 334.2 MB, free: 4.254 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.557e-05/0.3552, allocations: 80 kB / 334.3 MB, free: 4.16 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.3552, allocations: 0 / 334.3 MB, free: 4.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.587e-05/0.3553, allocations: 6.203 kB / 334.3 MB, free: 4.156 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.499e-05/0.3553, allocations: 2.594 kB / 334.3 MB, free: 4.156 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001423/0.3555, allocations: 135.5 kB / 334.4 MB, free: 4.035 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001561/0.3557, allocations: 228.2 kB / 334.7 MB, free: 3.816 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.197e-05/0.3557, allocations: 16.95 kB / 334.7 MB, free: 3.809 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.344e-05/0.3558, allocations: 81.23 kB / 334.8 MB, free: 3.73 MB / 266.7 MB Notification: Performance of Backend: time 6.31e-07/0.3558, allocations: 1.562 kB / 334.8 MB, free: 3.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003459/0.3561, allocations: 100.3 kB / 334.9 MB, free: 3.656 MB / 266.7 MB Notification: Performance of SimCode: time 0.0003157/0.3565, allocations: 0.5757 MB / 335.4 MB, free: 3.039 MB / 266.7 MB Error: Internal error GetVarIndexListByMapping: No Element for k1 found! Error: Internal error GetVarIndexListByMapping: No Element for k2 found! Error: Internal error GetVarIndexListByMapping: No Element for x found! Error: Internal error GetVarIndexListByMapping: No Element for y found! Error: Internal error GetVarIndexListByMapping: No Element for yd found! Error: Internal error GetVarIndexListByMapping: No Element for x_small found! Error: Internal error GetVarIndexListByMapping: No Element for k1 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: k1 (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for k2 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:1: k2 (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for x 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:2: x (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for y 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:3: y (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for yd 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:4: yd (no alias) initial: no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for x_small 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: x_small (no alias) initial: 0.01 no arrCref index:(6) []