Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.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.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008825/0.0008823, allocations: 173.6 kB / 17.39 MB, free: 4.293 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.242/1.242, allocations: 205.4 MB / 223.5 MB, free: 9.016 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.0007934/0.0007937, allocations: 87.86 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.3189/0.3189, allocations: 43.56 MB / 363.7 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003533/0.0003533, allocations: 12 kB / 432.6 MB, free: 5.617 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1219, allocations: 58.86 MB / 491.5 MB, free: 10.68 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0006902/0.1227, allocations: 272.2 kB / 491.8 MB, free: 10.41 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007669/0.1234, allocations: 415.1 kB / 492.2 MB, free: 10 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.868e-05/0.1235, allocations: 0 / 492.2 MB, free: 10 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 6.756e-05/0.1236, allocations: 0 / 492.2 MB, free: 10 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001099/0.1237, allocations: 15.94 kB / 492.2 MB, free: 9.988 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004666/0.1242, allocations: 147.7 kB / 492.3 MB, free: 9.844 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001212/0.1243, allocations: 59.86 kB / 492.4 MB, free: 9.785 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.256e-05/0.1243, allocations: 11.92 kB / 492.4 MB, free: 9.773 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.038e-05/0.1244, allocations: 31.92 kB / 492.4 MB, free: 9.742 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.915e-05/0.1245, allocations: 23.89 kB / 492.4 MB, free: 9.719 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.318e-05/0.1245, allocations: 4 kB / 492.4 MB, free: 9.715 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001721/0.1247, allocations: 87.91 kB / 492.5 MB, free: 9.629 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.66e-05/0.1247, allocations: 23.91 kB / 492.6 MB, free: 9.605 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.374e-05/0.1248, allocations: 53.59 kB / 492.6 MB, free: 9.547 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001444/0.125, allocations: 87.86 kB / 492.7 MB, free: 9.461 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.125, allocations: 4 kB / 492.7 MB, free: 9.457 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.125, allocations: 0 / 492.7 MB, free: 9.457 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.327e-06/0.125, allocations: 0 / 492.7 MB, free: 9.457 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004825/0.1255, allocations: 381.1 kB / 493.1 MB, free: 9.027 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.1255, allocations: 8.031 kB / 493.1 MB, free: 9.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.218e-05/0.1256, allocations: 8.844 kB / 493.1 MB, free: 9.012 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.1257, allocations: 176.4 kB / 493.3 MB, free: 8.801 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.1258, allocations: 4.375 kB / 493.3 MB, free: 8.797 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.582e-05/0.1258, allocations: 8.375 kB / 493.3 MB, free: 8.789 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001929/0.126, allocations: 94.12 kB / 493.4 MB, free: 8.691 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.126, allocations: 192 / 493.4 MB, free: 8.691 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.997e-05/0.126, allocations: 3.938 kB / 493.4 MB, free: 8.688 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.126, allocations: 0 / 493.4 MB, free: 8.688 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.985e-05/0.1261, allocations: 19.98 kB / 493.4 MB, free: 8.668 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000203/0.1263, allocations: 173.9 kB / 493.6 MB, free: 8.449 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.663e-05/0.1264, allocations: 46.56 kB / 493.6 MB, free: 8.395 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.966e-05/0.1265, allocations: 24.92 kB / 493.6 MB, free: 8.367 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.615e-05/0.1265, allocations: 7.875 kB / 493.6 MB, free: 8.359 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002411/0.1267, allocations: 127.3 kB / 493.8 MB, free: 8.223 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.1268, allocations: 0 / 493.8 MB, free: 8.223 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002789/0.127, allocations: 133.5 kB / 493.9 MB, free: 8.086 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.1271, allocations: 63.39 kB / 493.9 MB, free: 8.012 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.606e-05/0.1272, allocations: 97.86 kB / 494 MB, free: 7.906 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.551e-05/0.1272, allocations: 29.7 kB / 494.1 MB, free: 7.871 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.368e-05/0.1272, allocations: 84.14 kB / 494.2 MB, free: 7.785 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.966e-05/0.1273, allocations: 23.7 kB / 494.2 MB, free: 7.762 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.651e-06/0.1273, allocations: 0 / 494.2 MB, free: 7.762 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.1274, allocations: 322.8 kB / 494.5 MB, free: 7.438 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.61e-05/0.1274, allocations: 19.98 kB / 494.5 MB, free: 7.418 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.368e-05/0.1275, allocations: 82.8 kB / 494.6 MB, free: 7.312 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001752/0.1277, allocations: 144.4 kB / 494.7 MB, free: 7.141 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1277, allocations: 0 / 494.7 MB, free: 7.141 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002123/0.1279, allocations: 159.4 kB / 494.9 MB, free: 6.973 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.128, allocations: 37.64 kB / 494.9 MB, free: 6.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.128, allocations: 4 kB / 494.9 MB, free: 6.926 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.128, allocations: 0 / 494.9 MB, free: 6.926 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.892e-05/0.1281, allocations: 23.92 kB / 495 MB, free: 6.902 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.1281, allocations: 80 / 495 MB, free: 6.902 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.85e-05/0.1282, allocations: 11.94 kB / 495 MB, free: 6.891 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.401e-05/0.1282, allocations: 11.97 kB / 495 MB, free: 6.879 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,samples) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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 0.0001407/0.1283, allocations: 129.7 kB / 495.1 MB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.302e-05/0.1284, allocations: 11.84 kB / 495.1 MB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.107e-05/0.1284, allocations: 16.14 kB / 495.1 MB, free: 6.719 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.1284, allocations: 3.984 kB / 495.1 MB, free: 6.715 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1284, allocations: 0 / 495.1 MB, free: 6.715 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.225e-05/0.1285, allocations: 77.11 kB / 495.2 MB, free: 6.621 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.984e-05/0.1285, allocations: 4 kB / 495.2 MB, free: 6.617 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002134/0.1287, allocations: 31.97 kB / 495.2 MB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.122e-05/0.1287, allocations: 3.984 kB / 495.3 MB, free: 6.582 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002089/0.129, allocations: 184.9 kB / 495.4 MB, free: 6.395 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002171/0.1292, allocations: 282.8 kB / 495.7 MB, free: 6.102 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.869e-05/0.1292, allocations: 23.98 kB / 495.7 MB, free: 6.078 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.782e-05/0.1293, allocations: 79.28 kB / 495.8 MB, free: 6 MB / 378.7 MB Notification: Performance of Backend: time 4.7e-07/0.1293, allocations: 4 kB / 495.8 MB, free: 5.996 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007139/0.13, allocations: 248.7 kB / 496.1 MB, free: 5.746 MB / 378.7 MB Notification: Performance of SimCode: time 0.000474/0.1305, allocations: 0.6074 MB / 496.7 MB, free: 5.086 MB / 378.7 MB Error: Internal error GetVarIndexListByMapping: No Element for avg 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: avg (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for highBound 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:1: highBound (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for lowBound 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:2: lowBound (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for nrSigma 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: nrSigma (no alias) initial: 3.0 no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for cnt 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: cnt[1] (no alias) initial: 0 arrCref:cnt index:(5) [3] Error: Internal error GetVarIndexListByMapping: No Element for cnt 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:1: cnt[2] (no alias) initial: 0 no arrCref index:(6) [3] Error: Internal error GetVarIndexListByMapping: No Element for cnt 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:2: cnt[3] (no alias) initial: 0 no arrCref index:(7) [3] Error: Internal error GetVarIndexListByMapping: No Element for samples 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:3: samples (no alias) initial: 0 no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for y 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:4: y (no alias) initial: no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for id 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: id (no alias) initial: no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for n 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:1: n (no alias) initial: 3 no arrCref index:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for $whenCondition1 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: $whenCondition1 (no alias) protected hideResult initial: no arrCref index:(12) [] Error: Internal error GetVarIndexListByMapping: No Element for $whenCondition2 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:1: $whenCondition2 (no alias) protected hideResult initial: no arrCref index:(13) [] Error: Internal error GetVarIndexListByMapping: No Element for cnt found! Error: Internal error GetVarIndexListByMapping: No Element for avg found! Error: Internal error GetVarIndexListByMapping: No Element for highBound found! Error: Internal error GetVarIndexListByMapping: No Element for lowBound found! Error: Internal error GetVarIndexListByMapping: No Element for samples found! Error: Internal error GetVarIndexListByMapping: No Element for y found! Error: Internal error GetVarIndexListByMapping: No Element for $whenCondition1 found! Error: Internal error GetVarIndexListByMapping: No Element for $whenCondition2 found! Error: Internal error GetVarIndexListByMapping: No Element for nrSigma found! Error: Internal error GetVarIndexListByMapping: No Element for id found! Error: Internal error GetVarIndexListByMapping: No Element for n found!