Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.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.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00141/0.00141, allocations: 178.2 kB / 17.39 MB, free: 4.395 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.597/1.597, allocations: 205.4 MB / 223.5 MB, free: 9.02 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.0007825/0.0007827, allocations: 86.36 kB / 271.9 MB, free: 8.25 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.3256/0.3256, allocations: 43.55 MB / 363.7 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000414/0.0004142, allocations: 12 kB / 432.6 MB, free: 5.848 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1127, allocations: 58.85 MB / 491.5 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.000547/0.1133, allocations: 204.5 kB / 491.7 MB, free: 10.71 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00283/0.1161, allocations: 2.172 MB / 493.8 MB, free: 8.523 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.667e-05/0.1161, allocations: 4 kB / 493.8 MB, free: 8.52 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.068e-05/0.1162, allocations: 0 / 493.8 MB, free: 8.52 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.75e-06/0.1162, allocations: 0 / 493.8 MB, free: 8.52 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002196/0.1184, allocations: 0.8923 MB / 494.7 MB, free: 7.625 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.888e-05/0.1184, allocations: 0 / 494.7 MB, free: 7.625 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.198e-05/0.1185, allocations: 4 kB / 494.7 MB, free: 7.621 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.835e-05/0.1185, allocations: 3.984 kB / 494.7 MB, free: 7.617 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.388e-05/0.1185, allocations: 3.938 kB / 494.8 MB, free: 7.613 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.49e-06/0.1185, allocations: 0 / 494.8 MB, free: 7.613 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001469/0.12, allocations: 0.9014 MB / 495.7 MB, free: 6.711 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.644e-06/0.12, allocations: 0 / 495.7 MB, free: 6.711 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.052e-05/0.1201, allocations: 29.69 kB / 495.7 MB, free: 6.676 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000435/0.1205, allocations: 255.5 kB / 495.9 MB, free: 6.426 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.1205, allocations: 0 / 495.9 MB, free: 6.426 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1205, allocations: 0 / 495.9 MB, free: 6.426 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.1205, allocations: 0 / 495.9 MB, free: 6.426 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.0004248/0.121, allocations: 421.2 kB / 496.3 MB, free: 5.961 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.121, allocations: 12.02 kB / 496.4 MB, free: 5.949 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.409e-05/0.1211, allocations: 4.938 kB / 496.4 MB, free: 5.945 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.224e-05/0.1212, allocations: 172.3 kB / 496.5 MB, free: 5.738 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.1212, allocations: 384 / 496.5 MB, free: 5.738 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.888e-06/0.1212, allocations: 384 / 496.5 MB, free: 5.738 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.647e-05/0.1213, allocations: 34.02 kB / 496.6 MB, free: 5.699 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.1213, allocations: 0 / 496.6 MB, free: 5.699 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.256e-06/0.1213, allocations: 0 / 496.6 MB, free: 5.699 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.1214, allocations: 0 / 496.6 MB, free: 5.699 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.894e-05/0.1214, allocations: 4 kB / 496.6 MB, free: 5.695 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001472/0.1215, allocations: 153.7 kB / 496.7 MB, free: 5.496 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.986e-05/0.1216, allocations: 22.45 kB / 496.7 MB, free: 5.465 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.736e-05/0.1216, allocations: 8.953 kB / 496.7 MB, free: 5.453 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.426e-06/0.1216, allocations: 0 / 496.7 MB, free: 5.453 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/0.1217, allocations: 60.2 kB / 496.8 MB, free: 5.379 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.153e-06/0.1217, allocations: 0 / 496.8 MB, free: 5.379 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001654/0.1218, allocations: 75.38 kB / 496.9 MB, free: 5.293 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.543e-05/0.1219, allocations: 81.14 kB / 497 MB, free: 5.195 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.891e-05/0.1219, allocations: 89.86 kB / 497 MB, free: 5.098 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.279e-05/0.122, allocations: 25.7 kB / 497.1 MB, free: 5.066 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.421e-05/0.122, allocations: 84.14 kB / 497.2 MB, free: 4.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/0.122, allocations: 3.938 kB / 497.2 MB, free: 4.977 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.014e-06/0.122, allocations: 0 / 497.2 MB, free: 4.977 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.1222, allocations: 310.8 kB / 497.5 MB, free: 4.664 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.565e-06/0.1222, allocations: 0 / 497.5 MB, free: 4.664 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.209e-06/0.1222, allocations: 4 kB / 497.5 MB, free: 4.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.208e-05/0.1222, allocations: 68.25 kB / 497.5 MB, free: 4.578 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.1222, allocations: 0 / 497.5 MB, free: 4.578 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.922e-05/0.1223, allocations: 59.41 kB / 497.6 MB, free: 4.508 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.942e-05/0.1224, allocations: 29.7 kB / 497.6 MB, free: 4.473 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.986e-06/0.1224, allocations: 11.92 kB / 497.6 MB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.1224, allocations: 0 / 497.6 MB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.1224, allocations: 0 / 497.6 MB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.1224, allocations: 7.922 kB / 497.6 MB, free: 4.453 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.498e-05/0.1224, allocations: 8.031 kB / 497.6 MB, free: 4.445 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/0.1224, allocations: 4 kB / 497.6 MB, free: 4.441 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 8.297e-05/0.1225, allocations: 139.8 kB / 497.8 MB, free: 4.289 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.543e-06/0.1225, allocations: 0 / 497.8 MB, free: 4.289 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.097e-05/0.1226, allocations: 7.062 kB / 497.8 MB, free: 4.281 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.1226, allocations: 0 / 497.8 MB, free: 4.281 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.1226, allocations: 0 / 497.8 MB, free: 4.281 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.075e-05/0.1226, allocations: 77.11 kB / 497.9 MB, free: 4.188 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/0.1226, allocations: 7.984 kB / 497.9 MB, free: 4.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.085e-06/0.1226, allocations: 4 kB / 497.9 MB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.056e-05/0.1227, allocations: 0 / 497.9 MB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001159/0.1228, allocations: 190.1 kB / 498.1 MB, free: 3.965 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001374/0.1229, allocations: 244.4 kB / 498.3 MB, free: 3.703 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.672e-05/0.123, allocations: 4 kB / 498.3 MB, free: 3.699 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.339e-05/0.123, allocations: 79.34 kB / 498.4 MB, free: 3.621 MB / 378.7 MB Notification: Performance of Backend: time 3.4e-07/0.123, allocations: 0 / 498.4 MB, free: 3.621 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009351/0.1239, allocations: 413.2 kB / 498.8 MB, free: 3.203 MB / 378.7 MB Notification: Performance of SimCode: time 0.0003579/0.1243, allocations: 0.6026 MB / 499.4 MB, free: 2.535 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!