Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions.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.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001218/0.001218, allocations: 196.5 kB / 16.76 MB, free: 4.93 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 226.5 MB / 244 MB, free: 6.379 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007527/0.0007528, allocations: 91.5 kB / 296.1 MB, free: 6.648 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3236/0.3236, allocations: 44.81 MB / 392.9 MB, free: 35.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002699/0.0002701, allocations: 8 kB / 465.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3107/0.3109, allocations: 62.96 MB / 0.5165 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.000559/0.3116, allocations: 217.3 kB / 0.5167 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001635/0.3132, allocations: 1.555 MB / 0.5182 GB, free: 35.81 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.967e-05/0.3132, allocations: 0 / 0.5182 GB, free: 35.81 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.328e-05/0.3133, allocations: 0 / 0.5182 GB, free: 35.81 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.474e-06/0.3133, allocations: 0 / 0.5182 GB, free: 35.81 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:4:3-36:22:writable] Warning: Pure function ‘ModelicaTest.Math.ScalarFunctions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0005075/0.3138, allocations: 138.3 kB / 0.5184 GB, free: 35.73 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.712e-05/0.3138, allocations: 2.781 kB / 0.5184 GB, free: 35.73 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.126e-05/0.3139, allocations: 0 / 0.5184 GB, free: 35.73 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.951e-05/0.3139, allocations: 3.984 kB / 0.5184 GB, free: 35.73 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.16e-05/0.3139, allocations: 2.719 kB / 0.5184 GB, free: 35.73 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.476e-06/0.314, allocations: 4 kB / 0.5184 GB, free: 35.72 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002623/0.3142, allocations: 106.3 kB / 0.5185 GB, free: 35.69 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.274e-06/0.3142, allocations: 0 / 0.5185 GB, free: 35.69 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.892e-05/0.3143, allocations: 29.08 kB / 0.5185 GB, free: 35.66 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.3144, allocations: 60.34 kB / 0.5186 GB, free: 35.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.3144, allocations: 6.906 kB / 0.5186 GB, free: 35.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3145, allocations: 0 / 0.5186 GB, free: 35.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.3145, allocations: 3.938 kB / 0.5186 GB, free: 35.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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002728/0.3147, allocations: 363.3 kB / 0.5189 GB, free: 35.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.3148, allocations: 12.91 kB / 0.5189 GB, free: 35.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.889e-05/0.3148, allocations: 0.9375 kB / 0.5189 GB, free: 35.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.911e-05/0.3149, allocations: 160.4 kB / 0.5191 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.3149, allocations: 384 / 0.5191 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.274e-06/0.3149, allocations: 384 / 0.5191 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.538e-05/0.315, allocations: 44.28 kB / 0.5191 GB, free: 34.99 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.315, allocations: 0 / 0.5191 GB, free: 34.99 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-06/0.315, allocations: 0 / 0.5191 GB, free: 34.99 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.3151, allocations: 6.875 kB / 0.5191 GB, free: 34.99 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.355e-05/0.3151, allocations: 0 / 0.5191 GB, free: 34.99 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.202e-05/0.3152, allocations: 145.7 kB / 0.5193 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.598e-05/0.3152, allocations: 17.58 kB / 0.5193 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.253e-05/0.3152, allocations: 11.05 kB / 0.5193 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.865e-06/0.3152, allocations: 0 / 0.5193 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.3153, allocations: 64.2 kB / 0.5194 GB, free: 34.69 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3153, allocations: 0 / 0.5194 GB, free: 34.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001499/0.3154, allocations: 71.38 kB / 0.5194 GB, free: 34.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.42e-05/0.3155, allocations: 77.11 kB / 0.5195 GB, free: 34.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.159e-05/0.3155, allocations: 89.86 kB / 0.5196 GB, free: 34.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.074e-06/0.3155, allocations: 25.7 kB / 0.5196 GB, free: 34.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.231e-05/0.3155, allocations: 80.14 kB / 0.5197 GB, free: 34.31 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.827e-05/0.3155, allocations: 4.516 kB / 0.5197 GB, free: 34.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.713e-06/0.3156, allocations: 0 / 0.5197 GB, free: 34.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.759e-05/0.3156, allocations: 314.8 kB / 0.52 GB, free: 34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.185e-06/0.3156, allocations: 4.125 kB / 0.52 GB, free: 33.99 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.839e-06/0.3156, allocations: 2.938 kB / 0.52 GB, free: 33.99 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.23e-05/0.3157, allocations: 62.56 kB / 0.5201 GB, free: 33.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.3157, allocations: 3.938 kB / 0.5201 GB, free: 33.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.697e-05/0.3157, allocations: 57.41 kB / 0.5201 GB, free: 33.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.3158, allocations: 35.67 kB / 0.5201 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.3158, allocations: 3.938 kB / 0.5202 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.3158, allocations: 0 / 0.5202 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.583e-06/0.3158, allocations: 3.094 kB / 0.5202 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.3158, allocations: 7.094 kB / 0.5202 GB, free: 33.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.517e-05/0.3158, allocations: 0 / 0.5202 GB, free: 33.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.3158, allocations: 0 / 0.5202 GB, free: 33.81 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 4.685e-05/0.3159, allocations: 134.5 kB / 0.5203 GB, free: 33.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.141e-06/0.3159, allocations: 0 / 0.5203 GB, free: 33.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.315e-06/0.3159, allocations: 10.66 kB / 0.5203 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.3159, allocations: 0 / 0.5203 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.3159, allocations: 14.12 kB / 0.5203 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.625e-05/0.3159, allocations: 81.05 kB / 0.5204 GB, free: 33.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.978e-06/0.316, allocations: 4 kB / 0.5204 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.025e-06/0.316, allocations: 0 / 0.5204 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.121e-05/0.316, allocations: 2.938 kB / 0.5204 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.085e-05/0.3161, allocations: 198.6 kB / 0.5206 GB, free: 33.35 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 7.803e-05/0.3161, allocations: 236.8 kB / 0.5208 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.573e-05/0.3162, allocations: 7.031 kB / 0.5208 GB, free: 33.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.247e-05/0.3162, allocations: 75.28 kB / 0.5209 GB, free: 33.03 MB / 378.7 MB Notification: Performance of Backend: time 2.91e-07/0.3162, allocations: 0 / 0.5209 GB, free: 33.03 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005331/0.3167, allocations: 217.4 kB / 0.5211 GB, free: 32.88 MB / 378.7 MB Notification: Performance of SimCode: time 0.000213/0.317, allocations: 0.6075 MB / 0.5217 GB, free: 32.21 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!