Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009727/0.0009727, allocations: 196 kB / 16.75 MB, free: 4.938 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 226.5 MB / 244.1 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007762/0.0007761, allocations: 102.9 kB / 296.1 MB, free: 6.867 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3807/0.3807, allocations: 44.82 MB / 392.9 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002924/0.0002924, allocations: 15.98 kB / 465.9 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3187, allocations: 62.96 MB / 0.5165 GB, free: 37 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.0007319/0.3195, allocations: 253.8 kB / 0.5167 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004208/0.3199, allocations: 145.5 kB / 0.5169 GB, free: 36.73 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.045e-05/0.32, allocations: 4 kB / 0.5169 GB, free: 36.73 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.706e-05/0.32, allocations: 0 / 0.5169 GB, free: 36.73 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002745/0.3203, allocations: 30.78 kB / 0.5169 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.287e-06/0.3203, allocations: 0 / 0.5169 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 6.266e-05/0.3204, allocations: 20.69 kB / 0.5169 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.802e-05/0.3205, allocations: 7.922 kB / 0.5169 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.319e-05/0.3205, allocations: 6.688 kB / 0.5169 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.314e-05/0.3206, allocations: 14.31 kB / 0.517 GB, free: 36.69 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.3206, allocations: 0 / 0.517 GB, free: 36.69 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.3207, allocations: 49.14 kB / 0.517 GB, free: 36.68 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.111e-05/0.3207, allocations: 10.05 kB / 0.517 GB, free: 36.67 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.916e-05/0.3208, allocations: 37.58 kB / 0.5171 GB, free: 36.63 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.651e-05/0.3209, allocations: 33.83 kB / 0.5171 GB, free: 36.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3209, allocations: 0 / 0.5171 GB, free: 36.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3209, allocations: 0 / 0.5171 GB, free: 36.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.978e-06/0.3209, allocations: 0 / 0.5171 GB, free: 36.62 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0002554/0.3212, allocations: 335.9 kB / 0.5174 GB, free: 36.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.3212, allocations: 8.719 kB / 0.5174 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.714e-05/0.3213, allocations: 3.812 kB / 0.5174 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.55e-05/0.3214, allocations: 165.4 kB / 0.5176 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.3214, allocations: 7.25 kB / 0.5176 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/0.3214, allocations: 3.406 kB / 0.5176 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001404/0.3216, allocations: 63.39 kB / 0.5176 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.3216, allocations: 192 / 0.5176 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.3216, allocations: 3.938 kB / 0.5177 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.3216, allocations: 0 / 0.5177 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001085/0.3217, allocations: 52.28 kB / 0.5177 GB, free: 35.99 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001705/0.3219, allocations: 175.1 kB / 0.5179 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001302/0.322, allocations: 85 kB / 0.5179 GB, free: 35.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.333e-05/0.3221, allocations: 31.02 kB / 0.518 GB, free: 35.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003167/0.3224, allocations: 253.9 kB / 0.5182 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.25e-05/0.3225, allocations: 37.06 kB / 0.5183 GB, free: 35.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 2.004e-06/0.3225, allocations: 0 / 0.5183 GB, free: 35.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.000245/0.3227, allocations: 109 kB / 0.5184 GB, free: 35.33 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.318e-05/0.3228, allocations: 55.41 kB / 0.5184 GB, free: 35.26 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.585e-05/0.3228, allocations: 96.05 kB / 0.5185 GB, free: 35.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.052e-05/0.3228, allocations: 25.7 kB / 0.5185 GB, free: 35.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.635e-05/0.3229, allocations: 80.14 kB / 0.5186 GB, free: 35.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.832e-05/0.3229, allocations: 30.44 kB / 0.5186 GB, free: 35.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.241e-06/0.3229, allocations: 4 kB / 0.5186 GB, free: 35.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.426e-05/0.323, allocations: 321.1 kB / 0.5189 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.135e-05/0.323, allocations: 16.06 kB / 0.519 GB, free: 34.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.887e-05/0.3231, allocations: 27.59 kB / 0.519 GB, free: 34.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.511e-05/0.3231, allocations: 48.06 kB / 0.519 GB, free: 34.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3231, allocations: 0 / 0.519 GB, free: 34.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001178/0.3233, allocations: 82.45 kB / 0.5191 GB, free: 34.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.3233, allocations: 5.844 kB / 0.5191 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3233, allocations: 7.375 kB / 0.5191 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.3233, allocations: 3.938 kB / 0.5191 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001444/0.3235, allocations: 14.75 kB / 0.5191 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/0.3235, allocations: 3.938 kB / 0.5191 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.779e-05/0.3235, allocations: 3.906 kB / 0.5191 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.819e-06/0.3235, allocations: 11.5 kB / 0.5192 GB, free: 34.59 MB / 378.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 (10): * Single equations (assignments): 10 * 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.659e-05/0.3236, allocations: 115.9 kB / 0.5193 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.097e-05/0.3236, allocations: 0 / 0.5193 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000177/0.3238, allocations: 105.4 kB / 0.5194 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.3238, allocations: 0 / 0.5194 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3238, allocations: 2.875 kB / 0.5194 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.133e-05/0.3239, allocations: 84.95 kB / 0.5195 GB, free: 34.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/0.3239, allocations: 2.875 kB / 0.5195 GB, free: 34.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.82e-05/0.3239, allocations: 8 kB / 0.5195 GB, free: 34.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.004e-05/0.3239, allocations: 6.359 kB / 0.5195 GB, free: 34.3 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001457/0.3241, allocations: 158.6 kB / 0.5196 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001535/0.3243, allocations: 263.2 kB / 0.5199 GB, free: 33.94 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.268e-05/0.3243, allocations: 23.09 kB / 0.5199 GB, free: 33.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.013e-05/0.3243, allocations: 82.25 kB / 0.52 GB, free: 33.86 MB / 378.7 MB Notification: Performance of Backend: time 6.61e-07/0.3243, allocations: 0 / 0.52 GB, free: 33.86 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004077/0.3247, allocations: 125.1 kB / 0.5201 GB, free: 33.77 MB / 378.7 MB Notification: Performance of SimCode: time 0.0003167/0.3251, allocations: 0.593 MB / 0.5207 GB, free: 33.14 MB / 378.7 MB Error: Internal error GetVarIndexListByMapping: No Element for sqrtx 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: sqrtx (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for sqrtx_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:1: sqrtx_a (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for sqrtxerr 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: sqrtxerr (no alias) initial: no arrCref index:(3) [] 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:3: x (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for x2 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:4: x2 (no alias) initial: no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for x2_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:5: x2_a (no alias) initial: no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for x2err 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:6: x2err (no alias) initial: no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for x3 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:7: x3 (no alias) initial: no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for x3_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:8: x3_a (no alias) initial: no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for x3err 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:9: x3err (no alias) initial: no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for delta 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: delta (no alias) initial: 0.01 no arrCref index:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for sqrtx found! Error: Internal error GetVarIndexListByMapping: No Element for sqrtx_a found! Error: Internal error GetVarIndexListByMapping: No Element for sqrtxerr found! Error: Internal error GetVarIndexListByMapping: No Element for x found! Error: Internal error GetVarIndexListByMapping: No Element for x2 found! Error: Internal error GetVarIndexListByMapping: No Element for x2_a found! Error: Internal error GetVarIndexListByMapping: No Element for x2err found! Error: Internal error GetVarIndexListByMapping: No Element for x3 found! Error: Internal error GetVarIndexListByMapping: No Element for x3_a found! Error: Internal error GetVarIndexListByMapping: No Element for x3err found! Error: Internal error GetVarIndexListByMapping: No Element for delta found!