Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001288/0.001288, allocations: 179.8 kB / 17.39 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.491/1.491, allocations: 205.4 MB / 223.5 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008673/0.0008673, allocations: 88.08 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3971/0.3971, allocations: 43.57 MB / 363.7 MB, free: 52.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003804/0.0003805, allocations: 12 kB / 432.6 MB, free: 5.84 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1097, allocations: 58.85 MB / 491.5 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0006219/0.1104, allocations: 228.4 kB / 491.7 MB, free: 10.68 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.1123, allocations: 1.362 MB / 493.1 MB, free: 9.297 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.778e-05/0.1124, allocations: 0 / 493.1 MB, free: 9.297 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.03e-05/0.1124, allocations: 0 / 493.1 MB, free: 9.297 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.062e-05/0.1124, allocations: 0 / 493.1 MB, free: 9.297 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000628/0.1131, allocations: 151.7 kB / 493.2 MB, free: 9.148 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.005e-05/0.1131, allocations: 11.98 kB / 493.2 MB, free: 9.137 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.3e-05/0.1132, allocations: 4 kB / 493.2 MB, free: 9.133 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.755e-05/0.1132, allocations: 3.938 kB / 493.2 MB, free: 9.129 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.566e-05/0.1132, allocations: 8 kB / 493.2 MB, free: 9.121 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.171e-05/0.1133, allocations: 0 / 493.2 MB, free: 9.121 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004307/0.1137, allocations: 255.7 kB / 493.5 MB, free: 8.871 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.444e-05/0.1137, allocations: 3.984 kB / 493.5 MB, free: 8.867 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.077e-05/0.1138, allocations: 29.64 kB / 493.5 MB, free: 8.832 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001467/0.1139, allocations: 83.83 kB / 493.6 MB, free: 8.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1139, allocations: 3.938 kB / 493.6 MB, free: 8.746 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1139, allocations: 0 / 493.6 MB, free: 8.746 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.114, allocations: 0 / 493.6 MB, free: 8.746 MB / 378.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.0003319/0.1143, allocations: 339.5 kB / 493.9 MB, free: 8.367 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.1143, allocations: 8.031 kB / 493.9 MB, free: 8.359 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.786e-05/0.1144, allocations: 4.844 kB / 493.9 MB, free: 8.355 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.1145, allocations: 168.4 kB / 494.1 MB, free: 8.152 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.387e-06/0.1145, allocations: 384 / 494.1 MB, free: 8.152 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.1145, allocations: 4.375 kB / 494.1 MB, free: 8.148 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001182/0.1147, allocations: 42 kB / 494.2 MB, free: 8.102 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.1147, allocations: 3.938 kB / 494.2 MB, free: 8.098 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.1147, allocations: 0 / 494.2 MB, free: 8.098 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.1147, allocations: 3.938 kB / 494.2 MB, free: 8.094 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.23e-05/0.1147, allocations: 8 kB / 494.2 MB, free: 8.086 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003264/0.1151, allocations: 248.9 kB / 494.4 MB, free: 7.793 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.56e-05/0.1151, allocations: 18.58 kB / 494.4 MB, free: 7.766 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.424e-05/0.1151, allocations: 4.859 kB / 494.4 MB, free: 7.758 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.886e-06/0.1151, allocations: 0 / 494.4 MB, free: 7.758 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.1152, allocations: 34.5 kB / 494.5 MB, free: 7.715 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.1152, allocations: 8.062 kB / 494.5 MB, free: 7.707 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001329/0.1153, allocations: 33.7 kB / 494.5 MB, free: 7.668 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.1154, allocations: 51.41 kB / 494.6 MB, free: 7.605 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.327e-05/0.1154, allocations: 97.84 kB / 494.7 MB, free: 7.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.1155, allocations: 25.7 kB / 494.7 MB, free: 7.469 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.705e-05/0.1155, allocations: 88.27 kB / 494.8 MB, free: 7.379 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.279e-06/0.1155, allocations: 0 / 494.8 MB, free: 7.379 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-06/0.1155, allocations: 8.25 kB / 494.8 MB, free: 7.371 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.69e-05/0.1156, allocations: 314.8 kB / 495.1 MB, free: 7.055 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.026e-05/0.1157, allocations: 0 / 495.1 MB, free: 7.055 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.572e-05/0.1157, allocations: 26.5 kB / 495.1 MB, free: 7.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.908e-05/0.1157, allocations: 26.52 kB / 495.1 MB, free: 6.984 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1157, allocations: 8 kB / 495.1 MB, free: 6.977 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.137e-05/0.1158, allocations: 49.62 kB / 495.2 MB, free: 6.922 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.1158, allocations: 7.438 kB / 495.2 MB, free: 6.918 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.1158, allocations: 0 / 495.2 MB, free: 6.918 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.1159, allocations: 4 kB / 495.2 MB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.92e-05/0.1159, allocations: 8 kB / 495.2 MB, free: 6.906 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.1159, allocations: 3.938 kB / 495.2 MB, free: 6.902 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.915e-05/0.116, allocations: 3.906 kB / 495.2 MB, free: 6.898 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-06/0.116, allocations: 4 kB / 495.2 MB, free: 6.895 MB / 378.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 6.939e-05/0.1161, allocations: 113.9 kB / 495.3 MB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.374e-05/0.1161, allocations: 7.984 kB / 495.3 MB, free: 6.766 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001072/0.1162, allocations: 48.84 kB / 495.4 MB, free: 6.711 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.1162, allocations: 0 / 495.4 MB, free: 6.711 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.1162, allocations: 0 / 495.4 MB, free: 6.711 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.002e-05/0.1163, allocations: 81.09 kB / 495.5 MB, free: 6.613 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.091e-05/0.1163, allocations: 4.031 kB / 495.5 MB, free: 6.609 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.538e-05/0.1163, allocations: 4 kB / 495.5 MB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.586e-05/0.1164, allocations: 7.875 kB / 495.5 MB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 6.227e-05/0.1164, allocations: 108.9 kB / 495.6 MB, free: 6.484 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001094/0.1165, allocations: 206.8 kB / 495.8 MB, free: 6.266 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.209e-05/0.1166, allocations: 0 / 495.8 MB, free: 6.266 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.385e-05/0.1166, allocations: 87.34 kB / 495.9 MB, free: 6.18 MB / 378.7 MB Notification: Performance of Backend: time 2.675e-06/0.1166, allocations: 0 / 495.9 MB, free: 6.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004544/0.1171, allocations: 126.1 kB / 496 MB, free: 6.055 MB / 378.7 MB Notification: Performance of SimCode: time 0.0003676/0.1175, allocations: 0.5892 MB / 496.6 MB, free: 5.406 MB / 378.7 MB Error: Internal error GetVarIndexListByMapping: No Element for a found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:2: x (no alias) initial: no arrCref index:(3) [] 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!