Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001576/0.001576, allocations: 199.1 kB / 16.76 MB, free: 4.934 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 226.5 MB / 244.1 MB, free: 6.355 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008043/0.0008042, allocations: 90.97 kB / 296.1 MB, free: 6.633 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2913/0.2913, allocations: 44.82 MB / 392.9 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000376/0.0003761, allocations: 8 kB / 465.9 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4123/0.4127, allocations: 62.95 MB / 0.5165 GB, free: 37.32 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0005441/0.4133, allocations: 239.9 kB / 0.5167 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00218/0.4155, allocations: 1.928 MB / 0.5186 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.275e-05/0.4156, allocations: 0 / 0.5186 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.659e-06/0.4156, allocations: 0 / 0.5186 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.222e-06/0.4156, allocations: 0 / 0.5186 GB, free: 35.8 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:928:5-1011:16:writable] Warning: Pure function ‘ModelicaTest.Math.Random.special‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001247/0.4168, allocations: 407 kB / 0.519 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.078e-05/0.4169, allocations: 0 / 0.519 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.363e-05/0.4169, allocations: 4 kB / 0.519 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.513e-05/0.4169, allocations: 0 / 0.519 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.967e-05/0.417, allocations: 3.094 kB / 0.519 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.821e-06/0.417, allocations: 0 / 0.519 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001009/0.418, allocations: 0.6676 MB / 0.5197 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.107e-06/0.418, allocations: 2.906 kB / 0.5197 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.939e-05/0.4181, allocations: 28.89 kB / 0.5197 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004612/0.4185, allocations: 247.5 kB / 0.5199 GB, free: 35.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.4185, allocations: 4 kB / 0.5199 GB, free: 35.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.436e-06/0.4186, allocations: 4 kB / 0.5199 GB, free: 35.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.988e-06/0.4186, allocations: 7.875 kB / 0.5199 GB, free: 35.37 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.0003902/0.419, allocations: 401.2 kB / 0.5203 GB, free: 34.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.419, allocations: 8.469 kB / 0.5203 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.482e-05/0.419, allocations: 4.938 kB / 0.5203 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.017e-05/0.4191, allocations: 167.7 kB / 0.5205 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.4191, allocations: 384 / 0.5205 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-06/0.4191, allocations: 3.312 kB / 0.5205 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.803e-05/0.4192, allocations: 34.02 kB / 0.5205 GB, free: 34.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.4192, allocations: 0 / 0.5205 GB, free: 34.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.205e-06/0.4193, allocations: 2.938 kB / 0.5205 GB, free: 34.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.4193, allocations: 0 / 0.5205 GB, free: 34.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.699e-05/0.4193, allocations: 0 / 0.5205 GB, free: 34.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.709e-05/0.4194, allocations: 147.8 kB / 0.5207 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.506e-05/0.4194, allocations: 22.52 kB / 0.5207 GB, free: 34.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.288e-05/0.4195, allocations: 7.734 kB / 0.5207 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.718e-06/0.4195, allocations: 4 kB / 0.5207 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.337e-05/0.4195, allocations: 60.2 kB / 0.5208 GB, free: 34.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.4195, allocations: 0 / 0.5208 GB, free: 34.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001575/0.4197, allocations: 67.31 kB / 0.5208 GB, free: 34.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.378e-05/0.4197, allocations: 77.11 kB / 0.5209 GB, free: 34.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.152e-05/0.4197, allocations: 100.6 kB / 0.521 GB, free: 34.14 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.013e-06/0.4197, allocations: 25.7 kB / 0.521 GB, free: 34.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.13e-05/0.4198, allocations: 80.27 kB / 0.5211 GB, free: 34.03 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.005e-05/0.4198, allocations: 4 kB / 0.5211 GB, free: 34.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.044e-06/0.4198, allocations: 0 / 0.5211 GB, free: 34.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.733e-05/0.4199, allocations: 310.8 kB / 0.5214 GB, free: 33.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.536e-06/0.4199, allocations: 6.203 kB / 0.5214 GB, free: 33.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.25e-06/0.4199, allocations: 0 / 0.5214 GB, free: 33.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.282e-05/0.4199, allocations: 59.17 kB / 0.5215 GB, free: 33.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4199, allocations: 0 / 0.5215 GB, free: 33.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.768e-05/0.42, allocations: 68.12 kB / 0.5215 GB, free: 33.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/0.42, allocations: 38.94 kB / 0.5216 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.42, allocations: 3.938 kB / 0.5216 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.4201, allocations: 0 / 0.5216 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.453e-06/0.4201, allocations: 0 / 0.5216 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.4201, allocations: 0 / 0.5216 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.901e-05/0.4201, allocations: 6.922 kB / 0.5216 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.4201, allocations: 0 / 0.5216 GB, free: 33.53 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 5.717e-05/0.4202, allocations: 134.3 kB / 0.5217 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.414e-06/0.4202, allocations: 0 / 0.5217 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.095e-05/0.4202, allocations: 18.12 kB / 0.5217 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.4202, allocations: 0 / 0.5217 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.4202, allocations: 0 / 0.5217 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.658e-05/0.4202, allocations: 79.95 kB / 0.5218 GB, free: 33.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.4203, allocations: 4 kB / 0.5218 GB, free: 33.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.957e-06/0.4203, allocations: 0 / 0.5218 GB, free: 33.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.351e-05/0.4203, allocations: 6.812 kB / 0.5218 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 8.16e-05/0.4204, allocations: 198.3 kB / 0.522 GB, free: 33.07 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 9.081e-05/0.4205, allocations: 251.8 kB / 0.5222 GB, free: 32.81 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.517e-05/0.4205, allocations: 0 / 0.5222 GB, free: 32.81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.274e-05/0.4205, allocations: 75.28 kB / 0.5223 GB, free: 32.74 MB / 378.7 MB Notification: Performance of Backend: time 4.71e-07/0.4205, allocations: 0 / 0.5223 GB, free: 32.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001116/0.4216, allocations: 345.5 kB / 0.5226 GB, free: 32.55 MB / 378.7 MB Notification: Performance of SimCode: time 0.000229/0.4219, allocations: 0.6113 MB / 0.5232 GB, free: 31.88 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!