Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.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.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001452/0.001452, allocations: 196.3 kB / 16.75 MB, free: 5.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 226.5 MB / 244.1 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008171/0.0008171, allocations: 96.36 kB / 296.1 MB, free: 6.695 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3732/0.3732, allocations: 44.82 MB / 392.9 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002594/0.0002594, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.319, allocations: 62.95 MB / 0.5165 GB, free: 37.35 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0005222/0.3196, allocations: 198.4 kB / 0.5167 GB, free: 37.22 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002332/0.3219, allocations: 2.245 MB / 0.5189 GB, free: 35.61 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.035e-05/0.3219, allocations: 0 / 0.5189 GB, free: 35.61 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.342e-05/0.322, allocations: 0 / 0.5189 GB, free: 35.61 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.444e-06/0.322, allocations: 0 / 0.5189 GB, free: 35.61 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function ‘ModelicaTest.ComplexMath.ComplexFunctions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001695/0.3237, allocations: 0.915 MB / 0.5198 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.082e-05/0.3237, allocations: 0 / 0.5198 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.253e-05/0.3238, allocations: 0 / 0.5198 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.481e-05/0.3238, allocations: 2.938 kB / 0.5198 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.43e-05/0.3238, allocations: 7.922 kB / 0.5198 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.521e-06/0.3238, allocations: 0 / 0.5198 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001098/0.3249, allocations: 0.943 MB / 0.5207 GB, free: 34.79 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.875e-06/0.3249, allocations: 0 / 0.5207 GB, free: 34.79 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.85e-05/0.325, allocations: 28.7 kB / 0.5207 GB, free: 34.76 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002998/0.3253, allocations: 273.6 kB / 0.521 GB, free: 34.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.3253, allocations: 0 / 0.521 GB, free: 34.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3253, allocations: 3.938 kB / 0.521 GB, free: 34.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.956e-06/0.3253, allocations: 0 / 0.521 GB, free: 34.66 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.0003401/0.3257, allocations: 445.4 kB / 0.5214 GB, free: 34.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.3257, allocations: 8.844 kB / 0.5214 GB, free: 34.22 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.087e-05/0.3257, allocations: 4.938 kB / 0.5214 GB, free: 34.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.427e-05/0.3258, allocations: 163.8 kB / 0.5216 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.3258, allocations: 384 / 0.5216 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.3258, allocations: 3.375 kB / 0.5216 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.084e-05/0.3259, allocations: 30.02 kB / 0.5216 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-06/0.3259, allocations: 0 / 0.5216 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/0.3259, allocations: 2.969 kB / 0.5216 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.326, allocations: 0 / 0.5216 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.364e-05/0.326, allocations: 0 / 0.5216 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.993e-05/0.3261, allocations: 151.9 kB / 0.5218 GB, free: 33.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.643e-05/0.3261, allocations: 22.52 kB / 0.5218 GB, free: 33.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.163e-05/0.3261, allocations: 7.891 kB / 0.5218 GB, free: 33.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.594e-06/0.3261, allocations: 0 / 0.5218 GB, free: 33.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.3262, allocations: 60.2 kB / 0.5219 GB, free: 33.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.3262, allocations: 0 / 0.5219 GB, free: 33.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001448/0.3263, allocations: 63.59 kB / 0.5219 GB, free: 33.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.085e-05/0.3264, allocations: 85.17 kB / 0.522 GB, free: 33.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.114e-05/0.3264, allocations: 93.86 kB / 0.5221 GB, free: 33.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.093e-06/0.3264, allocations: 25.7 kB / 0.5221 GB, free: 33.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.014e-05/0.3264, allocations: 83.14 kB / 0.5222 GB, free: 33.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.913e-05/0.3264, allocations: 1.547 kB / 0.5222 GB, free: 33.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.863e-06/0.3264, allocations: 0 / 0.5222 GB, free: 33.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.479e-05/0.3265, allocations: 314.1 kB / 0.5225 GB, free: 32.99 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.592e-06/0.3265, allocations: 0 / 0.5225 GB, free: 32.99 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.569e-06/0.3265, allocations: 7 kB / 0.5225 GB, free: 32.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.989e-05/0.3265, allocations: 59.3 kB / 0.5226 GB, free: 32.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.3266, allocations: 0 / 0.5226 GB, free: 32.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.877e-05/0.3266, allocations: 64.64 kB / 0.5226 GB, free: 32.85 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.3266, allocations: 35.55 kB / 0.5226 GB, free: 32.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.3266, allocations: 7.875 kB / 0.5227 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.3267, allocations: 0 / 0.5227 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.843e-06/0.3267, allocations: 6.875 kB / 0.5227 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.3267, allocations: 0 / 0.5227 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.525e-05/0.3267, allocations: 4.094 kB / 0.5227 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-06/0.3267, allocations: 0 / 0.5227 GB, free: 32.8 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 5.232e-05/0.3268, allocations: 137.8 kB / 0.5228 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.091e-06/0.3268, allocations: 0 / 0.5228 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.496e-06/0.3268, allocations: 10.66 kB / 0.5228 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.3268, allocations: 2.969 kB / 0.5228 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3268, allocations: 4 kB / 0.5228 GB, free: 32.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.561e-05/0.3268, allocations: 77.11 kB / 0.5229 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.065e-05/0.3268, allocations: 0 / 0.5229 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.356e-06/0.3269, allocations: 6.938 kB / 0.5229 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.027e-05/0.3269, allocations: 0 / 0.5229 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.08e-05/0.3269, allocations: 194.2 kB / 0.5231 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 8.15e-05/0.327, allocations: 242.8 kB / 0.5233 GB, free: 32.1 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.427e-05/0.3271, allocations: 3.031 kB / 0.5233 GB, free: 32.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.312e-05/0.3271, allocations: 79.34 kB / 0.5234 GB, free: 32.02 MB / 378.7 MB Notification: Performance of Backend: time 1.91e-07/0.3271, allocations: 0 / 0.5234 GB, free: 32.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000797/0.3279, allocations: 428.8 kB / 0.5238 GB, free: 31.8 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002395/0.3281, allocations: 0.6011 MB / 0.5244 GB, free: 31.14 MB / 378.7 MB Error: Internal error GetVarIndexListByMapping: No Element for result 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: result (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for result found!