Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.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.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001004/0.001004, allocations: 179.1 kB / 17.39 MB, free: 4.277 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.385/1.385, allocations: 205.4 MB / 223.5 MB, free: 9.008 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.0006463/0.0006463, allocations: 93.05 kB / 271.9 MB, free: 8.238 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.324/0.324, allocations: 43.56 MB / 363.7 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003989/0.0003989, allocations: 16 kB / 432.6 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1097, allocations: 58.85 MB / 491.5 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0006365/0.1104, allocations: 244.3 kB / 491.7 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002515/0.1129, allocations: 1.931 MB / 493.6 MB, free: 8.711 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.749e-05/0.113, allocations: 0 / 493.6 MB, free: 8.711 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.277e-06/0.113, allocations: 4 kB / 493.7 MB, free: 8.707 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.153e-06/0.113, allocations: 0 / 493.7 MB, free: 8.707 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001355/0.1144, allocations: 403.1 kB / 494 MB, free: 8.312 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.802e-05/0.1144, allocations: 0 / 494 MB, free: 8.312 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.96e-05/0.1144, allocations: 0 / 494 MB, free: 8.312 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.549e-05/0.1145, allocations: 0 / 494 MB, free: 8.312 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.768e-05/0.1145, allocations: 0 / 494 MB, free: 8.312 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.012e-06/0.1145, allocations: 4 kB / 494 MB, free: 8.309 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001023/0.1155, allocations: 0.659 MB / 494.7 MB, free: 7.648 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.094e-05/0.1156, allocations: 3.938 kB / 494.7 MB, free: 7.645 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.209e-05/0.1156, allocations: 33.64 kB / 494.7 MB, free: 7.605 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004283/0.116, allocations: 243.6 kB / 495 MB, free: 7.367 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.116, allocations: 3.984 kB / 495 MB, free: 7.363 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.116, allocations: 0 / 495 MB, free: 7.363 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.327e-06/0.1161, allocations: 0 / 495 MB, free: 7.363 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.000413/0.1165, allocations: 401.2 kB / 495.4 MB, free: 6.918 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.1165, allocations: 12.02 kB / 495.4 MB, free: 6.906 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.564e-05/0.1166, allocations: 0.9375 kB / 495.4 MB, free: 6.906 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.736e-05/0.1166, allocations: 164.4 kB / 495.6 MB, free: 6.707 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.1167, allocations: 4.375 kB / 495.6 MB, free: 6.703 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.043e-05/0.1167, allocations: 4.312 kB / 495.6 MB, free: 6.699 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.653e-05/0.1168, allocations: 34.02 kB / 495.6 MB, free: 6.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.1168, allocations: 0 / 495.6 MB, free: 6.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.396e-06/0.1168, allocations: 0 / 495.6 MB, free: 6.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.1168, allocations: 0 / 495.6 MB, free: 6.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.775e-05/0.1168, allocations: 3.938 kB / 495.6 MB, free: 6.656 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001152/0.1169, allocations: 153.7 kB / 495.7 MB, free: 6.457 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.193e-05/0.117, allocations: 22.61 kB / 495.8 MB, free: 6.426 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.334e-05/0.117, allocations: 4.859 kB / 495.8 MB, free: 6.418 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.204e-06/0.117, allocations: 0 / 495.8 MB, free: 6.418 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.069e-05/0.1171, allocations: 68.2 kB / 495.8 MB, free: 6.336 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1171, allocations: 0 / 495.8 MB, free: 6.336 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001619/0.1172, allocations: 75.23 kB / 495.9 MB, free: 6.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.46e-05/0.1173, allocations: 77.23 kB / 496 MB, free: 6.156 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.866e-05/0.1173, allocations: 93.86 kB / 496.1 MB, free: 6.055 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.1174, allocations: 25.7 kB / 496.1 MB, free: 6.023 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.944e-05/0.1174, allocations: 80.14 kB / 496.2 MB, free: 5.941 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.624e-05/0.1174, allocations: 0 / 496.2 MB, free: 5.941 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.435e-06/0.1174, allocations: 0 / 496.2 MB, free: 5.941 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.844e-05/0.1175, allocations: 314.8 kB / 496.5 MB, free: 5.625 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.794e-06/0.1175, allocations: 0 / 496.5 MB, free: 5.625 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.601e-06/0.1176, allocations: 0 / 496.5 MB, free: 5.625 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.212e-05/0.1176, allocations: 72.31 kB / 496.6 MB, free: 5.539 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.1176, allocations: 0 / 496.6 MB, free: 5.539 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.839e-05/0.1177, allocations: 63.34 kB / 496.6 MB, free: 5.465 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.543e-05/0.1177, allocations: 29.7 kB / 496.7 MB, free: 5.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1178, allocations: 3.938 kB / 496.7 MB, free: 5.426 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.1178, allocations: 0 / 496.7 MB, free: 5.426 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.355e-06/0.1178, allocations: 3.984 kB / 496.7 MB, free: 5.422 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.1178, allocations: 8 kB / 496.7 MB, free: 5.414 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.451e-05/0.1178, allocations: 0 / 496.7 MB, free: 5.414 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.1178, allocations: 32 / 496.7 MB, free: 5.414 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 7.105e-05/0.1179, allocations: 139.5 kB / 496.8 MB, free: 5.262 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.622e-06/0.1179, allocations: 0 / 496.8 MB, free: 5.262 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.252e-05/0.1179, allocations: 7.062 kB / 496.8 MB, free: 5.254 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1179, allocations: 0 / 496.8 MB, free: 5.254 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1179, allocations: 3.938 kB / 496.8 MB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.733e-05/0.118, allocations: 81.11 kB / 496.9 MB, free: 5.152 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.118, allocations: 7.984 kB / 496.9 MB, free: 5.145 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.606e-06/0.118, allocations: 0 / 496.9 MB, free: 5.145 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.532e-05/0.118, allocations: 4 kB / 496.9 MB, free: 5.141 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000105/0.1181, allocations: 190 kB / 497.1 MB, free: 4.93 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001233/0.1183, allocations: 240.5 kB / 497.3 MB, free: 4.672 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.633e-05/0.1183, allocations: 8 kB / 497.3 MB, free: 4.664 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.494e-05/0.1183, allocations: 75.28 kB / 497.4 MB, free: 4.59 MB / 378.7 MB Notification: Performance of Backend: time 3.81e-07/0.1183, allocations: 64 / 497.4 MB, free: 4.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.1193, allocations: 337.1 kB / 497.7 MB, free: 4.246 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002912/0.1197, allocations: 0.6066 MB / 498.3 MB, free: 3.574 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!