Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00143/0.00143, allocations: 195.7 kB / 16.76 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 226.5 MB / 244 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007886/0.0007886, allocations: 94.94 kB / 296.1 MB, free: 6.906 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3238/0.3238, allocations: 44.82 MB / 392.9 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002708/0.000271, allocations: 8 kB / 465.9 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3156, allocations: 62.96 MB / 0.5165 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0005273/0.3162, allocations: 225.7 kB / 0.5167 GB, free: 36.87 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.3174, allocations: 1.352 MB / 0.518 GB, free: 35.9 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.782e-05/0.3175, allocations: 4 kB / 0.518 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.321e-05/0.3175, allocations: 0 / 0.518 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.35e-05/0.3175, allocations: 0 / 0.518 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004977/0.318, allocations: 148.5 kB / 0.5182 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.04e-05/0.3181, allocations: 10.19 kB / 0.5182 GB, free: 35.83 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.98e-05/0.3181, allocations: 3 kB / 0.5182 GB, free: 35.83 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.611e-05/0.3182, allocations: 0 / 0.5182 GB, free: 35.83 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.849e-05/0.3182, allocations: 10 kB / 0.5182 GB, free: 35.83 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.189e-05/0.3182, allocations: 0 / 0.5182 GB, free: 35.83 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003516/0.3186, allocations: 256.5 kB / 0.5184 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.091e-05/0.3186, allocations: 10.17 kB / 0.5185 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.839e-05/0.3186, allocations: 29.64 kB / 0.5185 GB, free: 35.73 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001158/0.3188, allocations: 91.11 kB / 0.5186 GB, free: 35.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3188, allocations: 0 / 0.5186 GB, free: 35.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3188, allocations: 0 / 0.5186 GB, free: 35.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.3188, allocations: 0 / 0.5186 GB, free: 35.71 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.0002599/0.3191, allocations: 332.2 kB / 0.5189 GB, free: 35.35 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.3191, allocations: 13.31 kB / 0.5189 GB, free: 35.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.541e-05/0.3191, allocations: 0.9375 kB / 0.5189 GB, free: 35.35 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.939e-05/0.3192, allocations: 164.4 kB / 0.5191 GB, free: 35.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.3192, allocations: 384 / 0.5191 GB, free: 35.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.074e-05/0.3192, allocations: 7.203 kB / 0.5191 GB, free: 35.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.765e-05/0.3193, allocations: 42.69 kB / 0.5191 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.475e-06/0.3193, allocations: 0 / 0.5191 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-06/0.3194, allocations: 0 / 0.5191 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3194, allocations: 0 / 0.5191 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.858e-05/0.3194, allocations: 13.23 kB / 0.5191 GB, free: 35.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002686/0.3197, allocations: 245.2 kB / 0.5194 GB, free: 34.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.78e-05/0.3197, allocations: 17.42 kB / 0.5194 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.288e-05/0.3197, allocations: 7.891 kB / 0.5194 GB, free: 34.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.3197, allocations: 0 / 0.5194 GB, free: 34.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.511e-05/0.3198, allocations: 30.56 kB / 0.5194 GB, free: 34.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.3198, allocations: 0 / 0.5194 GB, free: 34.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001248/0.3199, allocations: 42.67 kB / 0.5194 GB, free: 34.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.502e-05/0.3199, allocations: 55.53 kB / 0.5195 GB, free: 34.65 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.728e-05/0.32, allocations: 92.8 kB / 0.5196 GB, free: 34.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.225e-06/0.32, allocations: 28.73 kB / 0.5196 GB, free: 34.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.327e-05/0.32, allocations: 87.09 kB / 0.5197 GB, free: 34.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.412e-06/0.32, allocations: 9.453 kB / 0.5197 GB, free: 34.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-06/0.32, allocations: 0 / 0.5197 GB, free: 34.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.385e-05/0.3201, allocations: 313.7 kB / 0.52 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.806e-06/0.3201, allocations: 0 / 0.52 GB, free: 34.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.835e-05/0.3201, allocations: 24.89 kB / 0.52 GB, free: 34.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.961e-05/0.3202, allocations: 36.39 kB / 0.5201 GB, free: 34.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.3202, allocations: 0 / 0.5201 GB, free: 34.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.738e-05/0.3202, allocations: 51.52 kB / 0.5201 GB, free: 34.01 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/0.3202, allocations: 6.938 kB / 0.5201 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.3203, allocations: 2.969 kB / 0.5201 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.3203, allocations: 4 kB / 0.5201 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.434e-05/0.3203, allocations: 5.812 kB / 0.5201 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.3203, allocations: 0 / 0.5201 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.657e-05/0.3204, allocations: 2.781 kB / 0.5201 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.29e-06/0.3204, allocations: 0 / 0.5201 GB, free: 34 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 4.645e-05/0.3204, allocations: 119.6 kB / 0.5203 GB, free: 33.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.088e-05/0.3204, allocations: 0 / 0.5203 GB, free: 33.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.223e-05/0.3205, allocations: 57.67 kB / 0.5203 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.3206, allocations: 0 / 0.5203 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.3206, allocations: 0 / 0.5203 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.606e-05/0.3206, allocations: 77.11 kB / 0.5204 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.085e-05/0.3206, allocations: 7.062 kB / 0.5204 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.413e-05/0.3207, allocations: 0 / 0.5204 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.04e-05/0.3207, allocations: 3.938 kB / 0.5204 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 4.332e-05/0.3207, allocations: 122.1 kB / 0.5205 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 6.461e-05/0.3208, allocations: 199.5 kB / 0.5207 GB, free: 33.41 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.462e-05/0.3208, allocations: 7.219 kB / 0.5207 GB, free: 33.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.707e-05/0.3208, allocations: 82.09 kB / 0.5208 GB, free: 33.33 MB / 378.7 MB Notification: Performance of Backend: time 2.41e-07/0.3208, allocations: 0 / 0.5208 GB, free: 33.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004552/0.3213, allocations: 126.8 kB / 0.5209 GB, free: 33.26 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002262/0.3215, allocations: 0.5941 MB / 0.5215 GB, free: 32.61 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!