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.TestRegFunctions.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.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") Notification: Performance of loadModel(ModelicaTest): time 1.841/1.841, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005932/0.0005934, allocations: 12 kB / 283.1 MB, free: 9.715 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3921/0.3927, allocations: 48.71 MB / 331.8 MB, free: 6.504 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.0007756/0.3936, allocations: 295.5 kB / 332.1 MB, free: 6.383 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003509/0.3939, allocations: 116.9 kB / 332.2 MB, free: 6.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.865e-05/0.394, allocations: 1.375 kB / 332.2 MB, free: 6.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.078e-05/0.394, allocations: 2.094 kB / 332.2 MB, free: 6.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002376/0.3943, allocations: 29.45 kB / 332.2 MB, free: 6.309 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.126e-06/0.3943, allocations: 0 / 332.2 MB, free: 6.309 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 4.898e-05/0.3943, allocations: 13.61 kB / 332.3 MB, free: 6.305 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.985e-05/0.3944, allocations: 7.297 kB / 332.3 MB, free: 6.301 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.297e-05/0.3944, allocations: 12.66 kB / 332.3 MB, free: 6.297 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.697e-05/0.3945, allocations: 20.19 kB / 332.3 MB, free: 6.285 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.294e-05/0.3945, allocations: 1.375 kB / 332.3 MB, free: 6.285 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001395/0.3947, allocations: 41.83 kB / 332.3 MB, free: 6.277 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.035e-05/0.3947, allocations: 6.203 kB / 332.3 MB, free: 6.277 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.585e-05/0.3947, allocations: 26.48 kB / 332.4 MB, free: 6.246 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 9.907e-05/0.3948, allocations: 28.66 kB / 332.4 MB, free: 6.238 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3948, allocations: 0 / 332.4 MB, free: 6.238 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3948, allocations: 3.938 kB / 332.4 MB, free: 6.234 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.3949, allocations: 0 / 332.4 MB, free: 6.234 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0002404/0.3951, allocations: 331.7 kB / 332.7 MB, free: 5.875 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.3952, allocations: 8.781 kB / 332.7 MB, free: 5.875 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.286e-05/0.3952, allocations: 2.359 kB / 332.7 MB, free: 5.875 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.636e-05/0.3953, allocations: 170.8 kB / 332.9 MB, free: 5.672 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.3953, allocations: 5.172 kB / 332.9 MB, free: 5.668 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.125e-05/0.3954, allocations: 7.188 kB / 332.9 MB, free: 5.664 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001519/0.3955, allocations: 62.09 kB / 333 MB, free: 5.617 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.3956, allocations: 1.25 kB / 333 MB, free: 5.617 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.3956, allocations: 0.5156 kB / 333 MB, free: 5.617 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.3956, allocations: 1.5 kB / 333 MB, free: 5.617 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001504/0.3957, allocations: 57.03 kB / 333 MB, free: 5.602 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000176/0.3959, allocations: 167.2 kB / 333.2 MB, free: 5.406 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001812/0.3961, allocations: 81.22 kB / 333.3 MB, free: 5.359 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003909/0.3965, allocations: 256 kB / 333.5 MB, free: 5.074 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.358e-05/0.3966, allocations: 36.22 kB / 333.6 MB, free: 5.031 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.683e-06/0.3966, allocations: 9.062 kB / 333.6 MB, free: 5.023 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002889/0.3969, allocations: 100.2 kB / 333.7 MB, free: 4.969 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.038e-05/0.3969, allocations: 52.53 kB / 333.7 MB, free: 4.906 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.256e-05/0.397, allocations: 92.08 kB / 333.8 MB, free: 4.809 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.25e-05/0.397, allocations: 27.05 kB / 333.8 MB, free: 4.777 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.562e-05/0.397, allocations: 150.6 kB / 334 MB, free: 4.629 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.554e-05/0.3971, allocations: 39.72 kB / 334 MB, free: 4.598 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-06/0.3971, allocations: 0 / 334 MB, free: 4.598 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.863e-05/0.3972, allocations: 317.9 kB / 334.3 MB, free: 4.281 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.43e-05/0.3972, allocations: 20.53 kB / 334.4 MB, free: 4.273 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.027e-05/0.3973, allocations: 16.7 kB / 334.4 MB, free: 4.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.31e-05/0.3974, allocations: 19 kB / 334.4 MB, free: 4.262 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3974, allocations: 1.375 kB / 334.4 MB, free: 4.262 MB / 266.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001732/0.3976, allocations: 86.67 kB / 334.5 MB, free: 4.207 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.3976, allocations: 5.969 kB / 334.5 MB, free: 4.207 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.3976, allocations: 0.6094 kB / 334.5 MB, free: 4.207 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.3976, allocations: 0.6562 kB / 334.5 MB, free: 4.207 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.3978, allocations: 19.08 kB / 334.5 MB, free: 4.203 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.3978, allocations: 5.656 kB / 334.5 MB, free: 4.199 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.978e-05/0.3979, allocations: 6.312 kB / 334.5 MB, free: 4.195 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.3979, allocations: 1.719 kB / 334.5 MB, free: 4.195 MB / 266.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.483e-05/0.398, allocations: 112.3 kB / 334.6 MB, free: 4.078 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.451e-05/0.398, allocations: 10.52 kB / 334.6 MB, free: 4.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002539/0.3982, allocations: 108.5 kB / 334.7 MB, free: 4 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3983, allocations: 0.7031 kB / 334.7 MB, free: 4 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.3983, allocations: 1.125 kB / 334.7 MB, free: 4 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.586e-05/0.3983, allocations: 87.42 kB / 334.8 MB, free: 3.898 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.3983, allocations: 5.812 kB / 334.8 MB, free: 3.895 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.084e-05/0.3984, allocations: 7.984 kB / 334.8 MB, free: 3.887 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.813e-05/0.3984, allocations: 5.859 kB / 334.9 MB, free: 3.887 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000214/0.3987, allocations: 163.8 kB / 335 MB, free: 3.762 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002091/0.3989, allocations: 262.7 kB / 335.3 MB, free: 3.527 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 6.891e-05/0.399, allocations: 26.36 kB / 335.3 MB, free: 3.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.041e-05/0.399, allocations: 77.16 kB / 335.4 MB, free: 3.445 MB / 266.7 MB Notification: Performance of Backend: time 6.91e-07/0.399, allocations: 0 / 335.4 MB, free: 3.445 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000413/0.3994, allocations: 123.9 kB / 335.5 MB, free: 3.367 MB / 266.7 MB Notification: Performance of SimCode: time 0.0003227/0.3998, allocations: 0.5911 MB / 336.1 MB, free: 2.742 MB / 266.7 MB Error: Internal error GetVarIndexListByMapping: No Element for sqrtx found! Error: Internal error GetVarIndexListByMapping: No Element for sqrtx_a found! Error: Internal error GetVarIndexListByMapping: No Element for sqrtxerr found! Error: Internal error GetVarIndexListByMapping: No Element for x found! Error: Internal error GetVarIndexListByMapping: No Element for x2 found! Error: Internal error GetVarIndexListByMapping: No Element for x2_a found! Error: Internal error GetVarIndexListByMapping: No Element for x2err found! Error: Internal error GetVarIndexListByMapping: No Element for x3 found! Error: Internal error GetVarIndexListByMapping: No Element for x3_a found! Error: Internal error GetVarIndexListByMapping: No Element for x3err found! Error: Internal error GetVarIndexListByMapping: No Element for delta found! Error: Internal error GetVarIndexListByMapping: No Element for sqrtx 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: sqrtx (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for sqrtx_a 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: sqrtx_a (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for sqrtxerr 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: sqrtxerr (no alias) initial: no arrCref index:(3) [] 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:3: x (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for x2 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: x2 (no alias) initial: no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for x2_a 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:5: x2_a (no alias) initial: no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for x2err 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:6: x2err (no alias) initial: no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for x3 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:7: x3 (no alias) initial: no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for x3_a 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:8: x3_a (no alias) initial: no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for x3err 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:9: x3err (no alias) initial: no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for delta 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: delta (no alias) initial: 0.01 no arrCref index:(11) []