Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000974/0.000974, allocations: 194.8 kB / 16.76 MB, free: 4.934 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 226.5 MB / 244 MB, free: 8.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007615/0.0007613, allocations: 103.6 kB / 296.1 MB, free: 6.859 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3117/0.3117, allocations: 44.82 MB / 392.9 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002839/0.0002839, allocations: 8 kB / 465.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2974, allocations: 62.95 MB / 0.5165 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0005196/0.298, allocations: 224.7 kB / 0.5167 GB, free: 36.8 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.2994, allocations: 1.356 MB / 0.518 GB, free: 35.83 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.066e-05/0.2994, allocations: 0 / 0.518 GB, free: 35.83 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.279e-05/0.2994, allocations: 4 kB / 0.518 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.621e-05/0.2995, allocations: 0 / 0.518 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005229/0.3, allocations: 156.5 kB / 0.5182 GB, free: 35.76 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.657e-05/0.3, allocations: 6.188 kB / 0.5182 GB, free: 35.76 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.211e-05/0.3001, allocations: 0 / 0.5182 GB, free: 35.76 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.633e-05/0.3001, allocations: 2.75 kB / 0.5182 GB, free: 35.76 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.831e-05/0.3002, allocations: 18.27 kB / 0.5182 GB, free: 35.75 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.336e-05/0.3002, allocations: 0 / 0.5182 GB, free: 35.75 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003402/0.3005, allocations: 253.4 kB / 0.5185 GB, free: 35.7 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.121e-05/0.3005, allocations: 3.281 kB / 0.5185 GB, free: 35.7 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.954e-05/0.3006, allocations: 40.36 kB / 0.5185 GB, free: 35.65 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001158/0.3007, allocations: 80.5 kB / 0.5186 GB, free: 35.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3007, allocations: 0 / 0.5186 GB, free: 35.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3007, allocations: 0 / 0.5186 GB, free: 35.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.3007, allocations: 2.844 kB / 0.5186 GB, free: 35.64 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002786/0.301, allocations: 330.1 kB / 0.5189 GB, free: 35.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.3011, allocations: 8.469 kB / 0.5189 GB, free: 35.28 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.055e-05/0.3011, allocations: 3.844 kB / 0.5189 GB, free: 35.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.069e-05/0.3012, allocations: 160.4 kB / 0.5191 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.3012, allocations: 4.375 kB / 0.5191 GB, free: 35.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.131e-05/0.3012, allocations: 384 / 0.5191 GB, free: 35.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.427e-05/0.3013, allocations: 36.38 kB / 0.5191 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.3013, allocations: 3.984 kB / 0.5191 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.3013, allocations: 2.625 kB / 0.5191 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.3013, allocations: 0 / 0.5191 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.13e-05/0.3014, allocations: 10.91 kB / 0.5191 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001173/0.3015, allocations: 148.7 kB / 0.5193 GB, free: 34.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.036e-05/0.3015, allocations: 21.52 kB / 0.5193 GB, free: 34.82 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.603e-05/0.3016, allocations: 11.89 kB / 0.5193 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.054e-05/0.3016, allocations: 0 / 0.5193 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.739e-05/0.3016, allocations: 34.5 kB / 0.5193 GB, free: 34.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.3016, allocations: 0 / 0.5193 GB, free: 34.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001275/0.3017, allocations: 38.34 kB / 0.5194 GB, free: 34.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.652e-05/0.3018, allocations: 54.34 kB / 0.5194 GB, free: 34.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.371e-05/0.3018, allocations: 101.2 kB / 0.5195 GB, free: 34.56 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.738e-06/0.3018, allocations: 28.58 kB / 0.5195 GB, free: 34.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.915e-05/0.3019, allocations: 80.14 kB / 0.5196 GB, free: 34.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.912e-05/0.3019, allocations: 7.844 kB / 0.5196 GB, free: 34.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-06/0.3019, allocations: 0 / 0.5196 GB, free: 34.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.13e-05/0.3019, allocations: 310.8 kB / 0.5199 GB, free: 34.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.416e-06/0.302, allocations: 2.812 kB / 0.5199 GB, free: 34.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.582e-06/0.302, allocations: 0 / 0.5199 GB, free: 34.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.156e-05/0.302, allocations: 18.58 kB / 0.5199 GB, free: 34.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.302, allocations: 0 / 0.5199 GB, free: 34.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.633e-05/0.3021, allocations: 42.59 kB / 0.52 GB, free: 34.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.3021, allocations: 9.75 kB / 0.52 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3021, allocations: 0 / 0.52 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.3021, allocations: 0 / 0.52 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.747e-05/0.3022, allocations: 2.844 kB / 0.52 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.3022, allocations: 3.984 kB / 0.52 GB, free: 34.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.211e-05/0.3022, allocations: 0 / 0.52 GB, free: 34.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-06/0.3022, allocations: 4.031 kB / 0.52 GB, free: 34.06 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 (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 4.595e-05/0.3023, allocations: 112.2 kB / 0.5201 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.095e-06/0.3023, allocations: 3.938 kB / 0.5201 GB, free: 33.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.3024, allocations: 52.39 kB / 0.5202 GB, free: 33.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.3024, allocations: 0 / 0.5202 GB, free: 33.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.3024, allocations: 3.219 kB / 0.5202 GB, free: 33.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.554e-05/0.3024, allocations: 81.11 kB / 0.5202 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.005e-05/0.3024, allocations: 0 / 0.5202 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.505e-05/0.3025, allocations: 3.844 kB / 0.5202 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.146e-05/0.3025, allocations: 0 / 0.5202 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 4.882e-05/0.3026, allocations: 110.8 kB / 0.5203 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 7.278e-05/0.3027, allocations: 215.8 kB / 0.5205 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.577e-05/0.3027, allocations: 2.938 kB / 0.5205 GB, free: 33.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.444e-05/0.3027, allocations: 78.06 kB / 0.5206 GB, free: 33.41 MB / 378.7 MB Notification: Performance of Backend: time 5.21e-07/0.3027, allocations: 0 / 0.5206 GB, free: 33.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004654/0.3032, allocations: 117.8 kB / 0.5207 GB, free: 33.34 MB / 378.7 MB Notification: Performance of SimCode: time 0.0003124/0.3035, allocations: 0.5865 MB / 0.5213 GB, free: 32.7 MB / 378.7 MB 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:0: x (no alias) initial: no arrCref index:(1) [] 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: 15.0 no arrCref index:(2) [] 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: 1.0 no arrCref index:(3) [] 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!