Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001014/0.001014, allocations: 173.1 kB / 17.39 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 205.4 MB / 223.5 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007529/0.0007528, allocations: 97.34 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3319/0.3319, allocations: 43.55 MB / 363.7 MB, free: 52.08 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000354/0.0003541, allocations: 12 kB / 432.6 MB, free: 5.855 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1061, allocations: 58.86 MB / 491.5 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0005886/0.1067, allocations: 204.5 kB / 491.7 MB, free: 10.71 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0027/0.1094, allocations: 2.176 MB / 493.8 MB, free: 8.52 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.984e-05/0.1094, allocations: 0 / 493.8 MB, free: 8.52 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.447e-06/0.1095, allocations: 0 / 493.8 MB, free: 8.52 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.123e-06/0.1095, allocations: 3.938 kB / 493.9 MB, free: 8.516 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002023/0.1115, allocations: 0.8923 MB / 494.7 MB, free: 7.621 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.32e-05/0.1115, allocations: 7.984 kB / 494.8 MB, free: 7.613 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.796e-05/0.1116, allocations: 0 / 494.8 MB, free: 7.613 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.911e-05/0.1116, allocations: 0 / 494.8 MB, free: 7.613 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.678e-05/0.1117, allocations: 3.938 kB / 494.8 MB, free: 7.609 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.081e-06/0.1117, allocations: 0 / 494.8 MB, free: 7.609 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001326/0.113, allocations: 0.9014 MB / 495.7 MB, free: 6.707 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.684e-06/0.113, allocations: 0 / 495.7 MB, free: 6.707 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.418e-05/0.1131, allocations: 25.7 kB / 495.7 MB, free: 6.676 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003355/0.1134, allocations: 259.5 kB / 495.9 MB, free: 6.422 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.1134, allocations: 3.984 kB / 495.9 MB, free: 6.418 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1134, allocations: 0 / 495.9 MB, free: 6.418 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.1134, allocations: 0 / 495.9 MB, free: 6.418 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.0003669/0.1138, allocations: 421.2 kB / 496.4 MB, free: 5.953 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.1139, allocations: 12.03 kB / 496.4 MB, free: 5.941 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.762e-05/0.1139, allocations: 0.9375 kB / 496.4 MB, free: 5.941 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.365e-05/0.114, allocations: 168.3 kB / 496.5 MB, free: 5.738 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.114, allocations: 4.375 kB / 496.5 MB, free: 5.734 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.113e-06/0.114, allocations: 384 / 496.5 MB, free: 5.734 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.291e-05/0.1141, allocations: 37.98 kB / 496.6 MB, free: 5.691 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.1141, allocations: 3.938 kB / 496.6 MB, free: 5.688 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-06/0.1141, allocations: 4 kB / 496.6 MB, free: 5.684 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1141, allocations: 0 / 496.6 MB, free: 5.684 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.405e-05/0.1141, allocations: 0 / 496.6 MB, free: 5.684 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001072/0.1143, allocations: 149.7 kB / 496.7 MB, free: 5.488 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.859e-05/0.1143, allocations: 22.55 kB / 496.7 MB, free: 5.457 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.346e-05/0.1143, allocations: 8.844 kB / 496.8 MB, free: 5.445 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.198e-06/0.1143, allocations: 0 / 496.8 MB, free: 5.445 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.997e-05/0.1144, allocations: 64.27 kB / 496.8 MB, free: 5.367 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1144, allocations: 0 / 496.8 MB, free: 5.367 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001795/0.1146, allocations: 67.31 kB / 496.9 MB, free: 5.289 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.1146, allocations: 81.11 kB / 497 MB, free: 5.191 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.507e-05/0.1147, allocations: 93.84 kB / 497.1 MB, free: 5.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.029e-05/0.1147, allocations: 25.7 kB / 497.1 MB, free: 5.059 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.096e-05/0.1147, allocations: 80.14 kB / 497.2 MB, free: 4.977 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/0.1147, allocations: 0 / 497.2 MB, free: 4.977 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.723e-06/0.1147, allocations: 3.938 kB / 497.2 MB, free: 4.973 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.694e-05/0.1148, allocations: 310.8 kB / 497.5 MB, free: 4.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.355e-06/0.1148, allocations: 8.125 kB / 497.5 MB, free: 4.652 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.168e-06/0.1148, allocations: 0 / 497.5 MB, free: 4.652 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.344e-05/0.1149, allocations: 64.27 kB / 497.5 MB, free: 4.574 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.1149, allocations: 0 / 497.5 MB, free: 4.574 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.857e-05/0.115, allocations: 59.39 kB / 497.6 MB, free: 4.504 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.667e-05/0.115, allocations: 33.7 kB / 497.6 MB, free: 4.465 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.115, allocations: 3.938 kB / 497.6 MB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.115, allocations: 0 / 497.6 MB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.22e-07/0.115, allocations: 0 / 497.6 MB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.115, allocations: 4.094 kB / 497.6 MB, free: 4.457 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.296e-05/0.1151, allocations: 7.875 kB / 497.6 MB, free: 4.449 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.323e-06/0.1151, allocations: 4 kB / 497.6 MB, free: 4.445 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 6.532e-05/0.1151, allocations: 131.8 kB / 497.8 MB, free: 4.301 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.656e-06/0.1152, allocations: 7.984 kB / 497.8 MB, free: 4.293 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.227e-06/0.1152, allocations: 11.06 kB / 497.8 MB, free: 4.281 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-06/0.1152, allocations: 0 / 497.8 MB, free: 4.281 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.1152, allocations: 0 / 497.8 MB, free: 4.281 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.39e-05/0.1152, allocations: 77.11 kB / 497.9 MB, free: 4.188 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.058e-05/0.1152, allocations: 4 kB / 497.9 MB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.775e-06/0.1152, allocations: 0 / 497.9 MB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.091e-05/0.1153, allocations: 4 kB / 497.9 MB, free: 4.18 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.497e-05/0.1154, allocations: 190.1 kB / 498.1 MB, free: 3.969 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001168/0.1155, allocations: 252.4 kB / 498.3 MB, free: 3.699 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.543e-05/0.1155, allocations: 4.062 kB / 498.3 MB, free: 3.695 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.019e-05/0.1155, allocations: 79.22 kB / 498.4 MB, free: 3.617 MB / 378.7 MB Notification: Performance of Backend: time 2.41e-07/0.1155, allocations: 0 / 498.4 MB, free: 3.617 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008012/0.1164, allocations: 401.3 kB / 498.8 MB, free: 3.211 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002708/0.1166, allocations: 0.6065 MB / 499.4 MB, free: 2.539 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!