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.Test02RegFun3.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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadModel(ModelicaTest): time 2.488/2.488, allocations: 234.9 MB / 251.1 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006222/0.0006223, allocations: 11.98 kB / 314.9 MB, free: 9.621 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4003/0.4009, allocations: 54.87 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0008452/0.4018, allocations: 228.2 kB / 370 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002561/0.4044, allocations: 1.324 MB / 371.4 MB, free: 9.168 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.705e-05/0.4045, allocations: 0 / 371.4 MB, free: 9.168 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.701e-05/0.4045, allocations: 0 / 371.4 MB, free: 9.168 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.8e-05/0.4046, allocations: 0 / 371.4 MB, free: 9.168 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008648/0.4055, allocations: 151.6 kB / 371.5 MB, free: 9.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.451e-05/0.4055, allocations: 4 kB / 371.5 MB, free: 9.016 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.56e-05/0.4056, allocations: 7.969 kB / 371.5 MB, free: 9.008 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.999e-05/0.4056, allocations: 0 / 371.5 MB, free: 9.008 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.29e-05/0.4057, allocations: 7.938 kB / 371.5 MB, free: 9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.408e-05/0.4057, allocations: 4 kB / 371.5 MB, free: 8.996 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006416/0.4063, allocations: 251.7 kB / 371.8 MB, free: 8.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.408e-05/0.4064, allocations: 4 kB / 371.8 MB, free: 8.746 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.751e-05/0.4064, allocations: 29.64 kB / 371.8 MB, free: 8.711 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.4066, allocations: 87.81 kB / 371.9 MB, free: 8.625 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.4067, allocations: 3.938 kB / 371.9 MB, free: 8.621 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.4067, allocations: 0 / 371.9 MB, free: 8.621 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.4067, allocations: 0 / 371.9 MB, free: 8.621 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004451/0.4071, allocations: 327.4 kB / 372.2 MB, free: 8.254 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/0.4072, allocations: 12.03 kB / 372.2 MB, free: 8.242 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.143e-05/0.4073, allocations: 3.906 kB / 372.2 MB, free: 8.238 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.4074, allocations: 167 kB / 372.4 MB, free: 8.035 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.78e-05/0.4074, allocations: 4 kB / 372.4 MB, free: 8.031 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.227e-05/0.4075, allocations: 0 / 372.4 MB, free: 8.031 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001373/0.4076, allocations: 33.69 kB / 372.4 MB, free: 7.992 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.4076, allocations: 0 / 372.4 MB, free: 7.992 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.4077, allocations: 7.953 kB / 372.4 MB, free: 7.984 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.4077, allocations: 0 / 372.4 MB, free: 7.984 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.564e-05/0.4077, allocations: 8 kB / 372.4 MB, free: 7.977 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004615/0.4082, allocations: 241 kB / 372.7 MB, free: 7.691 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.279e-05/0.4083, allocations: 18.52 kB / 372.7 MB, free: 7.664 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.4083, allocations: 4 kB / 372.7 MB, free: 7.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.4083, allocations: 38.58 kB / 372.7 MB, free: 7.613 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.483e-06/0.4083, allocations: 0 / 372.7 MB, free: 7.613 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001805/0.4085, allocations: 37.78 kB / 372.8 MB, free: 7.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.572e-05/0.4086, allocations: 55.34 kB / 372.8 MB, free: 7.504 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.4087, allocations: 97.86 kB / 372.9 MB, free: 7.398 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.4087, allocations: 25.7 kB / 373 MB, free: 7.367 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.886e-05/0.4088, allocations: 154.5 kB / 373.1 MB, free: 7.215 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.035e-05/0.4089, allocations: 4.703 kB / 373.1 MB, free: 7.211 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-06/0.4089, allocations: 0 / 373.1 MB, free: 7.211 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.409, allocations: 314.8 kB / 373.4 MB, free: 6.895 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.54e-05/0.4091, allocations: 4.156 kB / 373.4 MB, free: 6.891 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.451e-05/0.4091, allocations: 26.56 kB / 373.4 MB, free: 6.855 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.845e-05/0.4091, allocations: 4 kB / 373.5 MB, free: 6.852 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.4092, allocations: 0 / 373.5 MB, free: 6.852 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000105/0.4093, allocations: 49.62 kB / 373.5 MB, free: 6.797 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.4093, allocations: 8 kB / 373.5 MB, free: 6.789 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.4093, allocations: 8.047 kB / 373.5 MB, free: 6.781 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.4094, allocations: 0 / 373.5 MB, free: 6.781 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.897e-05/0.4094, allocations: 7.938 kB / 373.5 MB, free: 6.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.4095, allocations: 4 kB / 373.5 MB, free: 6.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.123e-05/0.4095, allocations: 7.844 kB / 373.5 MB, free: 6.762 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.4095, allocations: 3.938 kB / 373.5 MB, free: 6.758 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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.0001132/0.4096, allocations: 113.8 kB / 373.7 MB, free: 6.637 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.687e-05/0.4097, allocations: 3.938 kB / 373.7 MB, free: 6.633 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001881/0.4099, allocations: 44.83 kB / 373.7 MB, free: 6.586 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.4099, allocations: 3.953 kB / 373.7 MB, free: 6.582 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.4099, allocations: 0 / 373.7 MB, free: 6.582 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.477e-05/0.41, allocations: 85.09 kB / 373.8 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.479e-05/0.41, allocations: 0 / 373.8 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.332e-05/0.4101, allocations: 0 / 373.8 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.522e-05/0.4101, allocations: 0 / 373.8 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001202/0.4102, allocations: 124.9 kB / 373.9 MB, free: 6.352 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001704/0.4104, allocations: 210.8 kB / 374.1 MB, free: 6.129 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.197e-05/0.4105, allocations: 0 / 374.1 MB, free: 6.129 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.981e-05/0.4105, allocations: 79.28 kB / 374.2 MB, free: 6.051 MB / 298.7 MB Notification: Performance of Backend: time 7.02e-07/0.4105, allocations: 0 / 374.2 MB, free: 6.051 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006014/0.4112, allocations: 132.5 kB / 374.3 MB, free: 5.918 MB / 298.7 MB Notification: Performance of SimCode: time 0.0005352/0.4117, allocations: 0.5853 MB / 374.9 MB, free: 5.273 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for a found! Error: Internal error GetVarIndexListByMapping: No Element for b found! Error: Internal error GetVarIndexListByMapping: No Element for x found! Error: Internal error GetVarIndexListByMapping: No Element for 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:0: a (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for b 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: b (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) []