Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009683/0.0009684, allocations: 178.1 kB / 17.39 MB, free: 4.301 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.361/1.361, allocations: 205.4 MB / 223.5 MB, free: 9.035 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.0006737/0.0006737, allocations: 93.36 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.3171/0.3171, allocations: 43.56 MB / 363.7 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000369/0.0003694, allocations: 16 kB / 432.6 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1051, allocations: 58.86 MB / 491.5 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0006506/0.1058, allocations: 240.3 kB / 491.7 MB, free: 10.67 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003044/0.1089, allocations: 2.208 MB / 493.9 MB, free: 8.438 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.742e-05/0.1089, allocations: 0 / 493.9 MB, free: 8.438 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.534e-05/0.1089, allocations: 0 / 493.9 MB, free: 8.438 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 8.065e-06/0.1089, allocations: 4 kB / 493.9 MB, free: 8.434 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001446/0.1104, allocations: 466.9 kB / 494.4 MB, free: 7.977 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.814e-05/0.1104, allocations: 0 / 494.4 MB, free: 7.977 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.345e-05/0.1105, allocations: 3.984 kB / 494.4 MB, free: 7.973 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.557e-05/0.1105, allocations: 4 kB / 494.4 MB, free: 7.969 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.64e-05/0.1105, allocations: 0 / 494.4 MB, free: 7.969 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.831e-06/0.1105, allocations: 0 / 494.4 MB, free: 7.969 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001138/0.1117, allocations: 0.7018 MB / 495.1 MB, free: 7.266 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.047e-06/0.1117, allocations: 0 / 495.1 MB, free: 7.266 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.232e-05/0.1117, allocations: 29.64 kB / 495.1 MB, free: 7.23 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004813/0.1122, allocations: 299.8 kB / 495.4 MB, free: 6.938 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1122, allocations: 0 / 495.4 MB, free: 6.938 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1123, allocations: 0 / 495.4 MB, free: 6.938 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.1123, allocations: 0 / 495.4 MB, free: 6.938 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.0004596/0.1127, allocations: 429.2 kB / 495.8 MB, free: 6.465 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.1128, allocations: 8.031 kB / 495.8 MB, free: 6.457 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.033e-05/0.1128, allocations: 8.922 kB / 495.9 MB, free: 6.449 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.964e-05/0.1129, allocations: 164.4 kB / 496 MB, free: 6.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.1129, allocations: 4.375 kB / 496 MB, free: 6.246 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/0.1129, allocations: 4.375 kB / 496 MB, free: 6.242 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.499e-05/0.113, allocations: 34.02 kB / 496.1 MB, free: 6.203 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.113, allocations: 3.938 kB / 496.1 MB, free: 6.199 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.524e-06/0.1131, allocations: 0 / 496.1 MB, free: 6.199 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.656e-06/0.1131, allocations: 0 / 496.1 MB, free: 6.199 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.455e-05/0.1131, allocations: 0 / 496.1 MB, free: 6.199 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001257/0.1132, allocations: 149.6 kB / 496.2 MB, free: 6.004 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.225e-05/0.1133, allocations: 18.56 kB / 496.2 MB, free: 5.977 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.446e-05/0.1133, allocations: 12.86 kB / 496.2 MB, free: 5.961 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.953e-06/0.1133, allocations: 0 / 496.2 MB, free: 5.961 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.269e-05/0.1133, allocations: 64.27 kB / 496.3 MB, free: 5.883 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.524e-06/0.1133, allocations: 0 / 496.3 MB, free: 5.883 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001578/0.1135, allocations: 67.33 kB / 496.4 MB, free: 5.805 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.834e-05/0.1136, allocations: 77.11 kB / 496.4 MB, free: 5.711 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.938e-05/0.1136, allocations: 89.86 kB / 496.5 MB, free: 5.613 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.243e-05/0.1136, allocations: 29.83 kB / 496.6 MB, free: 5.578 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.317e-05/0.1137, allocations: 84.14 kB / 496.6 MB, free: 5.492 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.781e-05/0.1137, allocations: 0 / 496.6 MB, free: 5.492 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.004e-06/0.1137, allocations: 0 / 496.6 MB, free: 5.492 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.1138, allocations: 314.8 kB / 497 MB, free: 5.176 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.885e-06/0.1138, allocations: 0 / 497 MB, free: 5.176 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.432e-06/0.1138, allocations: 0 / 497 MB, free: 5.176 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.748e-05/0.1139, allocations: 68.14 kB / 497 MB, free: 5.094 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1139, allocations: 4.062 kB / 497 MB, free: 5.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.718e-05/0.114, allocations: 67.39 kB / 497.1 MB, free: 5.012 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.767e-05/0.114, allocations: 29.7 kB / 497.1 MB, free: 4.977 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.114, allocations: 3.938 kB / 497.1 MB, free: 4.973 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.114, allocations: 0 / 497.1 MB, free: 4.973 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.805e-06/0.114, allocations: 4 kB / 497.1 MB, free: 4.969 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.449e-06/0.114, allocations: 0 / 497.1 MB, free: 4.969 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.479e-05/0.1141, allocations: 3.938 kB / 497.1 MB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-06/0.1141, allocations: 0 / 497.1 MB, free: 4.965 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.459e-05/0.1142, allocations: 147.5 kB / 497.3 MB, free: 4.805 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.943e-06/0.1142, allocations: 0 / 497.3 MB, free: 4.805 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.061e-05/0.1142, allocations: 7.062 kB / 497.3 MB, free: 4.797 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1142, allocations: 0 / 497.3 MB, free: 4.797 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.1142, allocations: 0 / 497.3 MB, free: 4.797 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.846e-05/0.1142, allocations: 77.11 kB / 497.4 MB, free: 4.703 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.1143, allocations: 4 kB / 497.4 MB, free: 4.699 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.835e-06/0.1143, allocations: 0 / 497.4 MB, free: 4.699 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.366e-05/0.1143, allocations: 0 / 497.4 MB, free: 4.699 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001244/0.1144, allocations: 202 kB / 497.6 MB, free: 4.477 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001436/0.1146, allocations: 244.5 kB / 497.8 MB, free: 4.215 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.697e-05/0.1146, allocations: 4 kB / 497.8 MB, free: 4.211 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.642e-05/0.1146, allocations: 75.28 kB / 497.9 MB, free: 4.137 MB / 378.7 MB Notification: Performance of Backend: time 8.325e-06/0.1146, allocations: 0 / 497.9 MB, free: 4.137 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001047/0.1157, allocations: 377.4 kB / 498.2 MB, free: 3.75 MB / 378.7 MB Notification: Performance of SimCode: time 0.0003539/0.1161, allocations: 0.6026 MB / 498.8 MB, free: 3.082 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!