Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestDistributions.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.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001261/0.001261, allocations: 179.3 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.431/1.431, 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.0007344/0.0007343, allocations: 89.47 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.326/0.326, allocations: 43.55 MB / 363.7 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003617/0.0003618, allocations: 12 kB / 432.6 MB, free: 5.617 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1084, allocations: 58.85 MB / 491.5 MB, free: 10.68 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0005951/0.109, allocations: 244.3 kB / 491.7 MB, free: 10.45 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002685/0.1117, allocations: 1.974 MB / 493.7 MB, free: 8.449 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.49e-05/0.1118, allocations: 0 / 493.7 MB, free: 8.449 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.465e-05/0.1118, allocations: 3.938 kB / 493.7 MB, free: 8.445 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.412e-06/0.1118, allocations: 0 / 493.7 MB, free: 8.445 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001336/0.1131, allocations: 415.1 kB / 494.1 MB, free: 8.039 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.818e-05/0.1132, allocations: 8 kB / 494.1 MB, free: 8.031 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.104e-05/0.1132, allocations: 3.938 kB / 494.1 MB, free: 8.027 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.404e-05/0.1132, allocations: 4 kB / 494.1 MB, free: 8.023 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.674e-05/0.1133, allocations: 0 / 494.1 MB, free: 8.023 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.154e-06/0.1133, allocations: 0 / 494.1 MB, free: 8.023 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001079/0.1144, allocations: 0.6161 MB / 494.7 MB, free: 7.406 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.055e-06/0.1144, allocations: 4 kB / 494.7 MB, free: 7.402 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.639e-05/0.1144, allocations: 25.7 kB / 494.8 MB, free: 7.371 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004911/0.1149, allocations: 259.4 kB / 495 MB, free: 7.117 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1149, allocations: 4 kB / 495 MB, free: 7.113 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.1149, allocations: 0 / 495 MB, free: 7.113 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.067e-06/0.115, allocations: 0 / 495 MB, free: 7.113 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.0004805/0.1154, allocations: 417.4 kB / 495.4 MB, free: 6.652 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.1155, allocations: 12.03 kB / 495.4 MB, free: 6.641 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.178e-05/0.1155, allocations: 0.9375 kB / 495.4 MB, free: 6.641 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.1156, allocations: 160.4 kB / 495.6 MB, free: 6.445 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.1157, allocations: 384 / 495.6 MB, free: 6.445 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.234e-05/0.1157, allocations: 384 / 495.6 MB, free: 6.445 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001046/0.1158, allocations: 34.02 kB / 495.6 MB, free: 6.406 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.1158, allocations: 3.984 kB / 495.6 MB, free: 6.402 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.805e-06/0.1158, allocations: 0 / 495.6 MB, free: 6.402 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.1158, allocations: 7.984 kB / 495.6 MB, free: 6.395 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.672e-05/0.1159, allocations: 0 / 495.6 MB, free: 6.395 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001669/0.116, allocations: 153.6 kB / 495.8 MB, free: 6.195 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.894e-05/0.1161, allocations: 14.58 kB / 495.8 MB, free: 6.172 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.789e-05/0.1161, allocations: 8.953 kB / 495.8 MB, free: 6.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.1161, allocations: 0 / 495.8 MB, free: 6.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.418e-05/0.1162, allocations: 68.2 kB / 495.9 MB, free: 6.078 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.222e-06/0.1162, allocations: 0 / 495.9 MB, free: 6.078 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001863/0.1164, allocations: 75.23 kB / 495.9 MB, free: 5.992 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.1164, allocations: 77.11 kB / 496 MB, free: 5.898 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.522e-05/0.1165, allocations: 89.86 kB / 496.1 MB, free: 5.801 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.026e-05/0.1165, allocations: 29.64 kB / 496.1 MB, free: 5.766 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.227e-05/0.1165, allocations: 80.14 kB / 496.2 MB, free: 5.684 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.042e-05/0.1165, allocations: 4 kB / 496.2 MB, free: 5.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.864e-06/0.1166, allocations: 0 / 496.2 MB, free: 5.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.1167, allocations: 315 kB / 496.5 MB, free: 5.363 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.937e-06/0.1167, allocations: 3.984 kB / 496.5 MB, free: 5.359 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.4e-06/0.1167, allocations: 0 / 496.5 MB, free: 5.359 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.484e-05/0.1167, allocations: 64.27 kB / 496.6 MB, free: 5.281 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1168, allocations: 0 / 496.6 MB, free: 5.281 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.56e-05/0.1168, allocations: 63.34 kB / 496.7 MB, free: 5.207 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.937e-05/0.1169, allocations: 33.69 kB / 496.7 MB, free: 5.168 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1169, allocations: 3.938 kB / 496.7 MB, free: 5.164 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.1169, allocations: 8.094 kB / 496.7 MB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.1169, allocations: 0 / 496.7 MB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.1169, allocations: 0 / 496.7 MB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.516e-05/0.1169, allocations: 3.938 kB / 496.7 MB, free: 5.152 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.117, allocations: 0 / 496.7 MB, free: 5.152 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 9.408e-05/0.1171, allocations: 135.5 kB / 496.8 MB, free: 5.004 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.875e-06/0.1171, allocations: 0 / 496.8 MB, free: 5.004 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.479e-05/0.1171, allocations: 11.06 kB / 496.9 MB, free: 4.992 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.1171, allocations: 0 / 496.9 MB, free: 4.992 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.82e-07/0.1171, allocations: 4 kB / 496.9 MB, free: 4.988 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.389e-05/0.1171, allocations: 81.09 kB / 496.9 MB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.1172, allocations: 4 kB / 496.9 MB, free: 4.887 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.417e-06/0.1172, allocations: 0 / 496.9 MB, free: 4.887 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.533e-05/0.1172, allocations: 0 / 496.9 MB, free: 4.887 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001174/0.1173, allocations: 194 kB / 497.1 MB, free: 4.672 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001373/0.1175, allocations: 244.5 kB / 497.4 MB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.681e-05/0.1175, allocations: 4 kB / 497.4 MB, free: 4.406 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.037e-05/0.1175, allocations: 75.28 kB / 497.4 MB, free: 4.332 MB / 378.7 MB Notification: Performance of Backend: time 3.11e-07/0.1175, allocations: 0 / 497.4 MB, free: 4.332 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001042/0.1186, allocations: 337 kB / 497.8 MB, free: 3.992 MB / 378.7 MB Notification: Performance of SimCode: time 0.0003694/0.119, allocations: 0.6065 MB / 498.4 MB, free: 3.324 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!