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.Test01RegFun3.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.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadModel(ModelicaTest): time 1.893/1.893, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004243/0.0004245, allocations: 8 kB / 283.1 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3745, allocations: 48.7 MB / 331.8 MB, free: 6.492 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0007067/0.3753, allocations: 221.9 kB / 332 MB, free: 6.406 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002288/0.3776, allocations: 1.328 MB / 333.4 MB, free: 5.668 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.759e-05/0.3777, allocations: 0 / 333.4 MB, free: 5.668 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.712e-05/0.3777, allocations: 0 / 333.4 MB, free: 5.668 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 3.659e-05/0.3778, allocations: 0 / 333.4 MB, free: 5.668 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008476/0.3786, allocations: 148.5 kB / 333.5 MB, free: 5.605 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 3.856e-05/0.3787, allocations: 3.344 kB / 333.5 MB, free: 5.605 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.536e-05/0.3787, allocations: 6.172 kB / 333.5 MB, free: 5.602 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.109e-05/0.3788, allocations: 6.156 kB / 333.5 MB, free: 5.598 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.486e-05/0.3788, allocations: 3.75 kB / 333.5 MB, free: 5.598 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.549e-05/0.3788, allocations: 0 / 333.5 MB, free: 5.598 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006045/0.3794, allocations: 252.1 kB / 333.8 MB, free: 5.539 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.184e-05/0.3795, allocations: 5.875 kB / 333.8 MB, free: 5.535 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.308e-05/0.3795, allocations: 27.64 kB / 333.8 MB, free: 5.504 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002134/0.3797, allocations: 86.69 kB / 333.9 MB, free: 5.492 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.3797, allocations: 0 / 333.9 MB, free: 5.492 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3798, allocations: 0 / 333.9 MB, free: 5.492 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.3798, allocations: 4 kB / 333.9 MB, free: 5.488 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003268/0.3801, allocations: 332 kB / 334.2 MB, free: 5.129 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.3802, allocations: 8.922 kB / 334.2 MB, free: 5.129 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.783e-05/0.3802, allocations: 1.219 kB / 334.2 MB, free: 5.129 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.3803, allocations: 165.6 kB / 334.4 MB, free: 4.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.3803, allocations: 0 / 334.4 MB, free: 4.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.349e-05/0.3804, allocations: 1.156 kB / 334.4 MB, free: 4.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.957e-05/0.3805, allocations: 34.55 kB / 334.4 MB, free: 4.895 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.3805, allocations: 5.281 kB / 334.4 MB, free: 4.891 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.3805, allocations: 0 / 334.4 MB, free: 4.891 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.3805, allocations: 0 / 334.4 MB, free: 4.891 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.791e-05/0.3806, allocations: 2.969 kB / 334.4 MB, free: 4.891 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001294/0.3807, allocations: 154.7 kB / 334.6 MB, free: 4.695 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.77e-05/0.3807, allocations: 17.05 kB / 334.6 MB, free: 4.672 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.614e-06/0.3808, allocations: 0 / 334.6 MB, free: 4.672 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.3808, allocations: 40.44 kB / 334.6 MB, free: 4.625 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 1.273e-06/0.3808, allocations: 1.219 kB / 334.6 MB, free: 4.625 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001409/0.381, allocations: 37.3 kB / 334.7 MB, free: 4.59 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.797e-05/0.381, allocations: 51.41 kB / 334.7 MB, free: 4.527 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.49e-05/0.381, allocations: 93.75 kB / 334.8 MB, free: 4.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.077e-05/0.3811, allocations: 30.92 kB / 334.8 MB, free: 4.395 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.657e-05/0.3811, allocations: 150.6 kB / 335 MB, free: 4.246 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.279e-05/0.3811, allocations: 6.109 kB / 335 MB, free: 4.242 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.036e-06/0.3812, allocations: 4 kB / 335 MB, free: 4.238 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.59e-05/0.3812, allocations: 319.4 kB / 335.3 MB, free: 3.918 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.3e-05/0.3812, allocations: 1.344 kB / 335.3 MB, free: 3.918 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.231e-05/0.3813, allocations: 7.125 kB / 335.3 MB, free: 3.914 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.976e-05/0.3813, allocations: 1.188 kB / 335.3 MB, free: 3.914 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3813, allocations: 0 / 335.3 MB, free: 3.914 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.762e-05/0.3814, allocations: 37.91 kB / 335.4 MB, free: 3.879 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.3814, allocations: 5.938 kB / 335.4 MB, free: 3.879 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.3814, allocations: 4.094 kB / 335.4 MB, free: 3.875 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.3814, allocations: 0.5625 kB / 335.4 MB, free: 3.875 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.572e-05/0.3815, allocations: 2.484 kB / 335.4 MB, free: 3.875 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.3815, allocations: 1.344 kB / 335.4 MB, free: 3.875 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.763e-05/0.3816, allocations: 0 / 335.4 MB, free: 3.875 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.3816, allocations: 5.078 kB / 335.4 MB, free: 3.871 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 (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 5.613e-05/0.3816, allocations: 108 kB / 335.5 MB, free: 3.758 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.325e-05/0.3817, allocations: 5.984 kB / 335.5 MB, free: 3.754 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001417/0.3818, allocations: 55.11 kB / 335.5 MB, free: 3.703 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.3818, allocations: 1.344 kB / 335.5 MB, free: 3.703 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.3819, allocations: 0.5625 kB / 335.5 MB, free: 3.703 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.293e-05/0.3819, allocations: 79.27 kB / 335.6 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.3819, allocations: 1.156 kB / 335.6 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.218e-05/0.382, allocations: 2.719 kB / 335.6 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.419e-05/0.382, allocations: 1.406 kB / 335.6 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 6.626e-05/0.3821, allocations: 115.5 kB / 335.7 MB, free: 3.496 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001035/0.3822, allocations: 210.8 kB / 335.9 MB, free: 3.285 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.326e-05/0.3823, allocations: 5.5 kB / 336 MB, free: 3.281 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.298e-05/0.3823, allocations: 78.03 kB / 336 MB, free: 3.207 MB / 266.7 MB Notification: Performance of Backend: time 5.21e-07/0.3823, allocations: 0 / 336 MB, free: 3.207 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005733/0.3829, allocations: 128.2 kB / 336.2 MB, free: 3.125 MB / 266.7 MB Notification: Performance of SimCode: time 0.0003002/0.3832, allocations: 0.5922 MB / 336.7 MB, free: 2.48 MB / 266.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) []