Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001143/0.001143, allocations: 198.8 kB / 16.75 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 226.5 MB / 244.1 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000736/0.0007359, allocations: 97.94 kB / 296.1 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3441/0.3441, allocations: 44.82 MB / 392.9 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002606/0.0002607, allocations: 4 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.3455, allocations: 62.97 MB / 0.5165 GB, free: 37.18 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0004748/0.346, allocations: 199.2 kB / 0.5167 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002504/0.3485, allocations: 2.243 MB / 0.5189 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.418e-05/0.3485, allocations: 0 / 0.5189 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.618e-05/0.3486, allocations: 2.594 kB / 0.5189 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.945e-06/0.3486, allocations: 0 / 0.5189 GB, free: 35.44 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.001978/0.3506, allocations: 0.917 MB / 0.5198 GB, free: 34.89 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.578e-05/0.3506, allocations: 0 / 0.5198 GB, free: 34.89 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.211e-05/0.3507, allocations: 0 / 0.5198 GB, free: 34.89 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.9e-05/0.3507, allocations: 2.906 kB / 0.5198 GB, free: 34.89 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.811e-05/0.3507, allocations: 11.98 kB / 0.5198 GB, free: 34.88 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.181e-06/0.3507, allocations: 0 / 0.5198 GB, free: 34.88 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001211/0.352, allocations: 0.9332 MB / 0.5207 GB, free: 34.62 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.546e-06/0.352, allocations: 0 / 0.5207 GB, free: 34.62 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.04e-05/0.352, allocations: 25.7 kB / 0.5207 GB, free: 34.59 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000311/0.3523, allocations: 278.1 kB / 0.521 GB, free: 34.49 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3524, allocations: 0 / 0.521 GB, free: 34.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.3524, allocations: 0 / 0.521 GB, free: 34.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.3524, allocations: 3.938 kB / 0.521 GB, free: 34.49 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.0003423/0.3527, allocations: 444 kB / 0.5214 GB, free: 34.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.3528, allocations: 8.812 kB / 0.5214 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.784e-05/0.3528, allocations: 3.781 kB / 0.5214 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.613e-05/0.3529, allocations: 164.4 kB / 0.5216 GB, free: 33.85 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.3529, allocations: 384 / 0.5216 GB, free: 33.85 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.015e-05/0.3529, allocations: 384 / 0.5216 GB, free: 33.85 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.701e-05/0.353, allocations: 36.16 kB / 0.5216 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.353, allocations: 0 / 0.5216 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.805e-06/0.353, allocations: 0 / 0.5216 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.353, allocations: 4 kB / 0.5216 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.499e-05/0.3531, allocations: 2.812 kB / 0.5216 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.274e-05/0.3532, allocations: 145.1 kB / 0.5218 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.794e-05/0.3532, allocations: 25.45 kB / 0.5218 GB, free: 33.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.42e-05/0.3532, allocations: 4.859 kB / 0.5218 GB, free: 33.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.448e-06/0.3532, allocations: 6.859 kB / 0.5218 GB, free: 33.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.3533, allocations: 64.2 kB / 0.5219 GB, free: 33.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.3533, allocations: 0 / 0.5219 GB, free: 33.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.000143/0.3534, allocations: 63.36 kB / 0.5219 GB, free: 33.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.222e-05/0.3535, allocations: 85.05 kB / 0.522 GB, free: 33.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2e-05/0.3535, allocations: 89.86 kB / 0.5221 GB, free: 33.24 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.033e-06/0.3535, allocations: 25.7 kB / 0.5221 GB, free: 33.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.938e-06/0.3535, allocations: 80.14 kB / 0.5222 GB, free: 33.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.913e-05/0.3535, allocations: 4.609 kB / 0.5222 GB, free: 33.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.874e-06/0.3535, allocations: 0 / 0.5222 GB, free: 33.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.485e-05/0.3536, allocations: 318.9 kB / 0.5225 GB, free: 32.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.883e-06/0.3536, allocations: 0 / 0.5225 GB, free: 32.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.41e-06/0.3536, allocations: 6.172 kB / 0.5225 GB, free: 32.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.942e-05/0.3536, allocations: 59.2 kB / 0.5226 GB, free: 32.73 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.3537, allocations: 0 / 0.5226 GB, free: 32.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.2e-05/0.3537, allocations: 61.16 kB / 0.5226 GB, free: 32.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.3537, allocations: 38.91 kB / 0.5227 GB, free: 32.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.3537, allocations: 3.938 kB / 0.5227 GB, free: 32.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.3538, allocations: 12.03 kB / 0.5227 GB, free: 32.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.372e-06/0.3538, allocations: 2.875 kB / 0.5227 GB, free: 32.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.3538, allocations: 0 / 0.5227 GB, free: 32.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.43e-05/0.3538, allocations: 0 / 0.5227 GB, free: 32.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.022e-06/0.3538, allocations: 0 / 0.5227 GB, free: 32.62 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.165e-05/0.3539, allocations: 134.1 kB / 0.5228 GB, free: 32.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.973e-06/0.3539, allocations: 0 / 0.5228 GB, free: 32.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.888e-06/0.3539, allocations: 16.92 kB / 0.5228 GB, free: 32.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.3539, allocations: 0 / 0.5228 GB, free: 32.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.3539, allocations: 4 kB / 0.5228 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.487e-05/0.3539, allocations: 77.11 kB / 0.5229 GB, free: 32.37 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.09e-05/0.3539, allocations: 0 / 0.5229 GB, free: 32.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.275e-05/0.354, allocations: 6.531 kB / 0.5229 GB, free: 32.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.628e-05/0.354, allocations: 0 / 0.5229 GB, free: 32.37 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.873e-05/0.3541, allocations: 189.8 kB / 0.5231 GB, free: 32.17 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 7.817e-05/0.3542, allocations: 246.5 kB / 0.5233 GB, free: 31.92 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.679e-05/0.3542, allocations: 6.875 kB / 0.5233 GB, free: 31.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.266e-05/0.3542, allocations: 75.28 kB / 0.5234 GB, free: 31.84 MB / 378.7 MB Notification: Performance of Backend: time 3.3e-07/0.3542, allocations: 0 / 0.5234 GB, free: 31.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007871/0.355, allocations: 422.7 kB / 0.5238 GB, free: 31.62 MB / 378.7 MB Notification: Performance of SimCode: time 0.0001967/0.3552, allocations: 0.6015 MB / 0.5244 GB, free: 30.96 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!