Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.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.Fluid.TestUtilities.TestRegRootDerivative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|k1|k2",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative") Notification: Performance of loadModel(ModelicaTest): time 2.423/2.423, allocations: 234.9 MB / 251.1 MB, free: 9.484 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004587/0.0004587, allocations: 16 kB / 314.9 MB, free: 9.543 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4112/0.4117, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative): time 0.0007281/0.4125, allocations: 236.4 kB / 370 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003077/0.4128, allocations: 86.03 kB / 370.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.595e-05/0.4129, allocations: 0 / 370.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.31e-05/0.4129, allocations: 0 / 370.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 2.507e-05/0.4129, allocations: 3.938 kB / 370.1 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001799/0.4131, allocations: 15.92 kB / 370.1 MB, free: 10.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.415e-05/0.4132, allocations: 4 kB / 370.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.314e-05/0.4132, allocations: 4 kB / 370.2 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.91e-05/0.4133, allocations: 11.98 kB / 370.2 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.342e-05/0.4133, allocations: 7.922 kB / 370.2 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.595e-05/0.4134, allocations: 4 kB / 370.2 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.4135, allocations: 27.97 kB / 370.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.122e-05/0.4135, allocations: 3.984 kB / 370.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.598e-05/0.4135, allocations: 29.7 kB / 370.2 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.354e-05/0.4136, allocations: 11.98 kB / 370.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.4136, allocations: 0 / 370.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4136, allocations: 0 / 370.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.4137, allocations: 3.938 kB / 370.3 MB, free: 10.29 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004276/0.4141, allocations: 334.2 kB / 370.6 MB, free: 9.914 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.4142, allocations: 12.03 kB / 370.6 MB, free: 9.902 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.988e-05/0.4142, allocations: 3.953 kB / 370.6 MB, free: 9.898 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.4143, allocations: 163 kB / 370.8 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.4144, allocations: 0 / 370.8 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.691e-05/0.4144, allocations: 4 kB / 370.8 MB, free: 9.695 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001489/0.4145, allocations: 55.41 kB / 370.8 MB, free: 9.629 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.4146, allocations: 4 kB / 370.8 MB, free: 9.625 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.4146, allocations: 4 kB / 370.8 MB, free: 9.621 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.4146, allocations: 0 / 370.8 MB, free: 9.621 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.9e-05/0.4147, allocations: 19.88 kB / 370.8 MB, free: 9.602 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003477/0.415, allocations: 313.8 kB / 371.1 MB, free: 9.242 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.036e-05/0.4151, allocations: 34.55 kB / 371.2 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.4151, allocations: 4 kB / 371.2 MB, free: 9.195 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.4152, allocations: 30.56 kB / 371.2 MB, free: 9.156 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.553e-06/0.4152, allocations: 0 / 371.2 MB, free: 9.156 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002221/0.4154, allocations: 61.67 kB / 371.3 MB, free: 9.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.589e-05/0.4155, allocations: 51.41 kB / 371.3 MB, free: 9.027 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.869e-05/0.4156, allocations: 93.86 kB / 371.4 MB, free: 8.926 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.4156, allocations: 25.7 kB / 371.4 MB, free: 8.895 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.371e-05/0.4157, allocations: 158.6 kB / 371.6 MB, free: 8.738 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.34e-05/0.4157, allocations: 23.73 kB / 371.6 MB, free: 8.715 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-06/0.4157, allocations: 0 / 371.6 MB, free: 8.715 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.4159, allocations: 310.8 kB / 371.9 MB, free: 8.402 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.599e-05/0.4159, allocations: 8 kB / 371.9 MB, free: 8.395 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.151e-05/0.416, allocations: 21.7 kB / 372 MB, free: 8.367 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.194e-05/0.416, allocations: 8.188 kB / 372 MB, free: 8.359 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.416, allocations: 0 / 372 MB, free: 8.359 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001396/0.4162, allocations: 65.61 kB / 372 MB, free: 8.289 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.4162, allocations: 4 kB / 372 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.4162, allocations: 0 / 372 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.4162, allocations: 4 kB / 372 MB, free: 8.281 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.798e-05/0.4163, allocations: 4 kB / 372 MB, free: 8.277 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.4164, allocations: 7.953 kB / 372 MB, free: 8.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.987e-05/0.4164, allocations: 0 / 372 MB, free: 8.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.4164, allocations: 0 / 372 MB, free: 8.27 MB / 298.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 9.234e-05/0.4165, allocations: 117.8 kB / 372.2 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.012e-05/0.4166, allocations: 8 kB / 372.2 MB, free: 8.137 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001637/0.4167, allocations: 57.19 kB / 372.2 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.4168, allocations: 0 / 372.2 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.4168, allocations: 0 / 372.2 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.81e-05/0.4168, allocations: 88.91 kB / 372.3 MB, free: 7.969 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.46e-05/0.4168, allocations: 0 / 372.3 MB, free: 7.969 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.842e-05/0.4169, allocations: 8 kB / 372.3 MB, free: 7.961 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.227e-05/0.417, allocations: 3.984 kB / 372.3 MB, free: 7.957 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001716/0.4171, allocations: 140.9 kB / 372.5 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002027/0.4174, allocations: 227.1 kB / 372.7 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.571e-05/0.4174, allocations: 15.95 kB / 372.7 MB, free: 7.559 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.073e-05/0.4175, allocations: 83.2 kB / 372.8 MB, free: 7.477 MB / 298.7 MB Notification: Performance of Backend: time 5.41e-07/0.4175, allocations: 0 / 372.8 MB, free: 7.477 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003811/0.4179, allocations: 98.44 kB / 372.9 MB, free: 7.375 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004355/0.4183, allocations: 0.5721 MB / 373.4 MB, free: 6.746 MB / 298.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) []