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.Test01RegFun3.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.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadModel(ModelicaTest): time 2.635/2.635, allocations: 234.9 MB / 251.1 MB, free: 10.77 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006019/0.0006022, allocations: 12 kB / 314.9 MB, free: 10.83 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3847/0.3853, allocations: 54.87 MB / 369.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0008806/0.3863, allocations: 228.4 kB / 370 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003216/0.3895, allocations: 1.32 MB / 371.4 MB, free: 9.336 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.565e-05/0.3896, allocations: 0 / 371.4 MB, free: 9.336 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.324e-05/0.3897, allocations: 4 kB / 371.4 MB, free: 9.332 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.402e-05/0.3897, allocations: 0 / 371.4 MB, free: 9.332 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001077/0.3908, allocations: 151.6 kB / 371.5 MB, free: 9.184 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.445e-05/0.3909, allocations: 3.938 kB / 371.5 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.853e-05/0.391, allocations: 7.922 kB / 371.5 MB, free: 9.172 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.9e-05/0.391, allocations: 11.92 kB / 371.5 MB, free: 9.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.55e-05/0.3911, allocations: 4 kB / 371.5 MB, free: 9.156 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.833e-05/0.3911, allocations: 8 kB / 371.5 MB, free: 9.148 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008133/0.3919, allocations: 247.7 kB / 371.8 MB, free: 8.906 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.178e-05/0.392, allocations: 0 / 371.8 MB, free: 8.906 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.435e-05/0.392, allocations: 25.7 kB / 371.8 MB, free: 8.875 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002791/0.3923, allocations: 87.81 kB / 371.9 MB, free: 8.789 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.3923, allocations: 0 / 371.9 MB, free: 8.789 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3923, allocations: 3.938 kB / 371.9 MB, free: 8.785 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.3924, allocations: 0 / 371.9 MB, free: 8.785 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0005256/0.3929, allocations: 337 kB / 372.2 MB, free: 8.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.14e-05/0.393, allocations: 16.03 kB / 372.2 MB, free: 8.395 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.491e-05/0.393, allocations: 0 / 372.2 MB, free: 8.395 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001949/0.3932, allocations: 159.1 kB / 372.4 MB, free: 8.199 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.3933, allocations: 0 / 372.4 MB, free: 8.199 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.645e-05/0.3933, allocations: 0 / 372.4 MB, free: 8.199 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001317/0.3934, allocations: 29.7 kB / 372.4 MB, free: 8.164 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.3935, allocations: 0 / 372.4 MB, free: 8.164 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.913e-05/0.3935, allocations: 7.938 kB / 372.4 MB, free: 8.156 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.3935, allocations: 0 / 372.4 MB, free: 8.156 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.252e-05/0.3936, allocations: 4 kB / 372.4 MB, free: 8.152 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002321/0.3938, allocations: 153.7 kB / 372.6 MB, free: 7.953 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.574e-05/0.3939, allocations: 22.5 kB / 372.6 MB, free: 7.922 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.396e-06/0.3939, allocations: 0 / 372.6 MB, free: 7.922 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/0.394, allocations: 34.55 kB / 372.6 MB, free: 7.879 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.784e-06/0.394, allocations: 4.062 kB / 372.6 MB, free: 7.875 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001863/0.3942, allocations: 29.7 kB / 372.7 MB, free: 7.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.535e-05/0.3943, allocations: 63.47 kB / 372.7 MB, free: 7.766 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.3944, allocations: 97.81 kB / 372.8 MB, free: 7.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.548e-05/0.3944, allocations: 25.7 kB / 372.9 MB, free: 7.629 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.535e-05/0.3945, allocations: 154.5 kB / 373 MB, free: 7.477 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.829e-05/0.3946, allocations: 0 / 373 MB, free: 7.477 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.997e-06/0.3946, allocations: 0 / 373 MB, free: 7.477 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.3948, allocations: 318.8 kB / 373.3 MB, free: 7.156 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.822e-05/0.3948, allocations: 0 / 373.3 MB, free: 7.156 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.473e-05/0.3948, allocations: 4.125 kB / 373.3 MB, free: 7.152 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.97e-05/0.3949, allocations: 8 kB / 373.3 MB, free: 7.145 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3949, allocations: 0 / 373.3 MB, free: 7.145 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001104/0.395, allocations: 29.7 kB / 373.4 MB, free: 7.109 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.061e-05/0.3951, allocations: 9.562 kB / 373.4 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.3951, allocations: 0 / 373.4 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.3951, allocations: 3.938 kB / 373.4 MB, free: 7.098 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.248e-05/0.3952, allocations: 3.984 kB / 373.4 MB, free: 7.094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/0.3952, allocations: 3.938 kB / 373.4 MB, free: 7.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.4e-05/0.3953, allocations: 16.05 kB / 373.4 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.3953, allocations: 0 / 373.4 MB, free: 7.074 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 (1): * Single equations (assignments): 1 * 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.0001142/0.3955, allocations: 105.8 kB / 373.5 MB, free: 6.961 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.922e-05/0.3955, allocations: 3.906 kB / 373.5 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001972/0.3957, allocations: 44.81 kB / 373.5 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.3957, allocations: 4 kB / 373.6 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.198e-06/0.3957, allocations: 4.031 kB / 373.6 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.949e-05/0.3958, allocations: 77.11 kB / 373.6 MB, free: 6.809 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/0.3959, allocations: 3.953 kB / 373.6 MB, free: 6.805 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.396, allocations: 4 kB / 373.6 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.919e-05/0.396, allocations: 3.984 kB / 373.6 MB, free: 6.797 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000129/0.3962, allocations: 108.9 kB / 373.7 MB, free: 6.684 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000239/0.3964, allocations: 206.9 kB / 374 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.763e-05/0.3965, allocations: 4 kB / 374 MB, free: 6.461 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.543e-05/0.3966, allocations: 83.27 kB / 374 MB, free: 6.379 MB / 298.7 MB Notification: Performance of Backend: time 8.11e-07/0.3966, allocations: 0 / 374 MB, free: 6.379 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008378/0.3974, allocations: 122.3 kB / 374.2 MB, free: 6.254 MB / 298.7 MB Notification: Performance of SimCode: time 0.0006795/0.3981, allocations: 0.5978 MB / 374.8 MB, free: 5.598 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for x found! 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! [/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 (no alias) initial: no arrCref index:(1) [] 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: 15.0 no arrCref index:(2) [] 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: 1.0 no arrCref index:(3) []