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.Test02RegFun3.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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadModel(ModelicaTest): time 2.025/2.025, allocations: 209.3 MB / 225.4 MB, free: 0.7617 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005105/0.0005109, allocations: 12 kB / 283.1 MB, free: 9.715 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.117, allocations: 48.72 MB / 331.8 MB, free: 8.902 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0007676/0.1178, allocations: 224.5 kB / 332 MB, free: 8.684 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002568/0.1204, allocations: 1.307 MB / 333.4 MB, free: 7.359 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.347e-05/0.1205, allocations: 0 / 333.4 MB, free: 7.359 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.379e-05/0.1206, allocations: 0 / 333.4 MB, free: 7.359 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.609e-05/0.1206, allocations: 4 kB / 333.4 MB, free: 7.355 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009228/0.1216, allocations: 151.6 kB / 333.5 MB, free: 7.207 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.647e-05/0.1216, allocations: 7.984 kB / 333.5 MB, free: 7.199 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.653e-05/0.1217, allocations: 0 / 333.5 MB, free: 7.199 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.664e-05/0.1217, allocations: 7.984 kB / 333.5 MB, free: 7.191 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.625e-05/0.1218, allocations: 3.938 kB / 333.5 MB, free: 7.188 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.926e-05/0.1218, allocations: 4 kB / 333.5 MB, free: 7.184 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006357/0.1225, allocations: 255.6 kB / 333.8 MB, free: 6.934 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.464e-05/0.1225, allocations: 3.984 kB / 333.8 MB, free: 6.93 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.203e-05/0.1225, allocations: 25.7 kB / 333.8 MB, free: 6.898 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002187/0.1228, allocations: 83.83 kB / 333.9 MB, free: 6.816 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1228, allocations: 0 / 333.9 MB, free: 6.816 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1228, allocations: 4 kB / 333.9 MB, free: 6.812 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.922e-06/0.1228, allocations: 0 / 333.9 MB, free: 6.812 MB / 282.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.0004458/0.1233, allocations: 327.4 kB / 334.2 MB, free: 6.445 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/0.1233, allocations: 12.03 kB / 334.2 MB, free: 6.434 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.793e-05/0.1234, allocations: 0 / 334.2 MB, free: 6.434 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.1235, allocations: 167 kB / 334.4 MB, free: 6.23 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.1235, allocations: 4 kB / 334.4 MB, free: 6.227 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.535e-05/0.1236, allocations: 0 / 334.4 MB, free: 6.227 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001506/0.1237, allocations: 37.69 kB / 334.4 MB, free: 6.184 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.1238, allocations: 4 kB / 334.4 MB, free: 6.18 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.1238, allocations: 0 / 334.4 MB, free: 6.18 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.1238, allocations: 0 / 334.4 MB, free: 6.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.948e-05/0.1239, allocations: 15.97 kB / 334.4 MB, free: 6.164 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004935/0.1244, allocations: 236.9 kB / 334.7 MB, free: 5.883 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.895e-05/0.1244, allocations: 22.52 kB / 334.7 MB, free: 5.852 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.247e-05/0.1245, allocations: 0 / 334.7 MB, free: 5.852 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.657e-05/0.1245, allocations: 42.59 kB / 334.7 MB, free: 5.801 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 1.432e-06/0.1245, allocations: 0 / 334.7 MB, free: 5.801 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001822/0.1247, allocations: 33.77 kB / 334.8 MB, free: 5.762 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.1248, allocations: 51.41 kB / 334.8 MB, free: 5.699 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.6e-05/0.1249, allocations: 93.86 kB / 334.9 MB, free: 5.598 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.231e-05/0.1249, allocations: 33.64 kB / 335 MB, free: 5.559 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.366e-05/0.125, allocations: 158.7 kB / 335.1 MB, free: 5.402 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.252e-05/0.125, allocations: 12.12 kB / 335.1 MB, free: 5.391 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-06/0.125, allocations: 0 / 335.1 MB, free: 5.391 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.1252, allocations: 314.8 kB / 335.4 MB, free: 5.074 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.25e-05/0.1252, allocations: 4 kB / 335.4 MB, free: 5.07 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.909e-05/0.1253, allocations: 26.52 kB / 335.5 MB, free: 5.035 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.763e-05/0.1253, allocations: 3.984 kB / 335.5 MB, free: 5.031 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/0.1253, allocations: 8 kB / 335.5 MB, free: 5.023 MB / 282.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001206/0.1255, allocations: 45.64 kB / 335.5 MB, free: 4.973 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.1255, allocations: 7.938 kB / 335.5 MB, free: 4.965 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.1255, allocations: 0 / 335.5 MB, free: 4.965 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.1256, allocations: 4 kB / 335.5 MB, free: 4.961 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.639e-05/0.1257, allocations: 7.984 kB / 335.5 MB, free: 4.953 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.1257, allocations: 0 / 335.5 MB, free: 4.953 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.55e-05/0.1257, allocations: 0 / 335.5 MB, free: 4.953 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.1257, allocations: 4 kB / 335.5 MB, free: 4.949 MB / 282.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.0001061/0.1258, allocations: 117.8 kB / 335.6 MB, free: 4.824 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.227e-05/0.1259, allocations: 4 kB / 335.7 MB, free: 4.82 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001753/0.1261, allocations: 44.81 kB / 335.7 MB, free: 4.77 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1261, allocations: 0 / 335.7 MB, free: 4.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.323e-06/0.1261, allocations: 0 / 335.7 MB, free: 4.77 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.987e-05/0.1262, allocations: 77.11 kB / 335.8 MB, free: 4.676 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.1262, allocations: 4.031 kB / 335.8 MB, free: 4.672 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.7e-05/0.1263, allocations: 3.953 kB / 335.8 MB, free: 4.668 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.971e-05/0.1263, allocations: 4 kB / 335.8 MB, free: 4.664 MB / 282.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000104/0.1264, allocations: 116.9 kB / 335.9 MB, free: 4.543 MB / 282.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001601/0.1266, allocations: 198.8 kB / 336.1 MB, free: 4.332 MB / 282.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.522e-05/0.1267, allocations: 4.062 kB / 336.1 MB, free: 4.328 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.484e-05/0.1267, allocations: 87.27 kB / 336.2 MB, free: 4.242 MB / 282.7 MB Notification: Performance of Backend: time 7.12e-07/0.1267, allocations: 0 / 336.2 MB, free: 4.242 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006231/0.1274, allocations: 122.1 kB / 336.3 MB, free: 4.117 MB / 282.7 MB Notification: Performance of SimCode: time 0.0005318/0.1279, allocations: 0.593 MB / 336.9 MB, free: 3.461 MB / 282.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) []