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.TestRegFunctions.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.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.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") Notification: Performance of loadModel(ModelicaTest): time 2.413/2.413, allocations: 234.9 MB / 251.1 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006324/0.0006325, allocations: 15.98 kB / 315 MB, free: 9.613 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3914/0.3921, allocations: 54.86 MB / 369.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001009/0.3932, allocations: 304.3 kB / 370.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004229/0.3936, allocations: 113.9 kB / 370.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.452e-05/0.3937, allocations: 3.938 kB / 370.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.936e-05/0.3937, allocations: 3.938 kB / 370.2 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002707/0.394, allocations: 15.97 kB / 370.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.797e-06/0.394, allocations: 0 / 370.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.353e-05/0.3941, allocations: 27.91 kB / 370.3 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.529e-05/0.3942, allocations: 0 / 370.3 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.011e-05/0.3942, allocations: 11.92 kB / 370.3 MB, free: 10.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.485e-05/0.3943, allocations: 15.97 kB / 370.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.792e-05/0.3943, allocations: 0 / 370.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001528/0.3945, allocations: 47.89 kB / 370.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.503e-05/0.3945, allocations: 7.938 kB / 370.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.237e-05/0.3946, allocations: 25.7 kB / 370.4 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.3947, allocations: 27.95 kB / 370.4 MB, free: 10.15 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.3947, allocations: 0 / 370.4 MB, free: 10.15 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3947, allocations: 0 / 370.4 MB, free: 10.15 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.3947, allocations: 4 kB / 370.4 MB, free: 10.14 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004089/0.3952, allocations: 338 kB / 370.7 MB, free: 9.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.961e-05/0.3952, allocations: 8.031 kB / 370.7 MB, free: 9.762 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.431e-05/0.3953, allocations: 7.953 kB / 370.8 MB, free: 9.754 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.3955, allocations: 167.7 kB / 370.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.3955, allocations: 4 kB / 370.9 MB, free: 9.547 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.331e-05/0.3955, allocations: 4 kB / 370.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001888/0.3957, allocations: 57.67 kB / 371 MB, free: 9.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.3958, allocations: 0 / 371 MB, free: 9.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.3958, allocations: 4 kB / 371 MB, free: 9.477 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.3958, allocations: 0 / 371 MB, free: 9.477 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001783/0.396, allocations: 59.91 kB / 371 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002739/0.3963, allocations: 173.5 kB / 371.2 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002154/0.3965, allocations: 78.55 kB / 371.3 MB, free: 9.113 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000566/0.3971, allocations: 255.3 kB / 371.5 MB, free: 8.809 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.3971, allocations: 38.56 kB / 371.6 MB, free: 8.762 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 3.296e-06/0.3972, allocations: 0 / 371.6 MB, free: 8.762 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003628/0.3975, allocations: 101.8 kB / 371.7 MB, free: 8.656 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.204e-05/0.3976, allocations: 55.39 kB / 371.7 MB, free: 8.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.48e-05/0.3977, allocations: 89.86 kB / 371.8 MB, free: 8.492 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.3978, allocations: 33.7 kB / 371.8 MB, free: 8.453 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.584e-05/0.3978, allocations: 150.6 kB / 372 MB, free: 8.305 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.969e-05/0.3979, allocations: 39.56 kB / 372 MB, free: 8.266 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-06/0.3979, allocations: 4 kB / 372 MB, free: 8.262 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.3981, allocations: 318.8 kB / 372.3 MB, free: 7.941 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.668e-05/0.3982, allocations: 23.92 kB / 372.4 MB, free: 7.918 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.225e-05/0.3983, allocations: 12 kB / 372.4 MB, free: 7.906 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.857e-05/0.3983, allocations: 20 kB / 372.4 MB, free: 7.887 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3984, allocations: 0 / 372.4 MB, free: 7.887 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002308/0.3986, allocations: 81.62 kB / 372.5 MB, free: 7.801 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.3986, allocations: 11.98 kB / 372.5 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.3987, allocations: 0 / 372.5 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.3987, allocations: 4 kB / 372.5 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001946/0.3989, allocations: 12 kB / 372.5 MB, free: 7.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.3989, allocations: 0 / 372.5 MB, free: 7.773 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.686e-05/0.399, allocations: 4.656 kB / 372.5 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.795e-05/0.399, allocations: 7.984 kB / 372.5 MB, free: 7.762 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: 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 0.0001282/0.3991, allocations: 121.7 kB / 372.6 MB, free: 7.633 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.093e-05/0.3992, allocations: 7.891 kB / 372.6 MB, free: 7.625 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003212/0.3995, allocations: 105.5 kB / 372.8 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-06/0.3995, allocations: 8 kB / 372.8 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.3995, allocations: 3.938 kB / 372.8 MB, free: 7.504 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.925e-05/0.3996, allocations: 77.11 kB / 372.8 MB, free: 7.41 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.171e-05/0.3996, allocations: 4 kB / 372.8 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.932e-05/0.3997, allocations: 7.953 kB / 372.9 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.215e-05/0.3997, allocations: 7.984 kB / 372.9 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002772/0.4, allocations: 160.9 kB / 373 MB, free: 7.227 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0003132/0.4004, allocations: 258.7 kB / 373.3 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.143e-05/0.4004, allocations: 31.86 kB / 373.3 MB, free: 6.926 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.171e-05/0.4005, allocations: 79.28 kB / 373.4 MB, free: 6.848 MB / 298.7 MB Notification: Performance of Backend: time 7.61e-07/0.4005, allocations: 0 / 373.4 MB, free: 6.848 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005436/0.4011, allocations: 122.4 kB / 373.5 MB, free: 6.719 MB / 298.7 MB Notification: Performance of SimCode: time 0.0006005/0.4017, allocations: 0.5954 MB / 374.1 MB, free: 6.066 MB / 298.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) []