Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001442/0.001443, allocations: 104.8 kB / 16.4 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 192.2 kB / 17.34 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.627/1.627, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2128/0.2128, allocations: 43.52 MB / 314.1 MB, free: 456 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 65.47 kB / 441.8 MB, free: 5.637 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1482, allocations: 57.78 MB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001755/0.15, allocations: 0.5416 MB / 0.4884 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009256/0.151, allocations: 442.3 kB / 0.4888 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.726e-05/0.151, allocations: 0 / 0.4888 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.383e-05/0.1511, allocations: 0 / 0.4888 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001636/0.1513, allocations: 19.86 kB / 0.4889 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006179/0.1519, allocations: 171.5 kB / 0.489 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001884/0.1521, allocations: 83.84 kB / 0.4891 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.556e-05/0.1522, allocations: 0 / 0.4891 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.523e-05/0.1522, allocations: 43.95 kB / 0.4891 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002242/0.1545, allocations: 380.1 kB / 0.4895 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.186e-05/0.1545, allocations: 4 kB / 0.4895 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.023e-05/0.1546, allocations: 15.98 kB / 0.4895 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.409e-05/0.1547, allocations: 15.97 kB / 0.4895 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.429e-05/0.1548, allocations: 35.83 kB / 0.4896 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001844/0.1549, allocations: 63.78 kB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.155, allocations: 0 / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.155, allocations: 0 / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.155, allocations: 4 kB / 0.4896 GB, free: 10.05 MB / 382.1 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.0005866/0.1556, allocations: 389.1 kB / 0.49 GB, free: 9.609 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.1556, allocations: 8.031 kB / 0.49 GB, free: 9.602 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.933e-05/0.1557, allocations: 12.88 kB / 0.49 GB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002069/0.1559, allocations: 184.2 kB / 0.4902 GB, free: 9.371 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.1559, allocations: 8.375 kB / 0.4902 GB, free: 9.363 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.368e-05/0.1559, allocations: 4.359 kB / 0.4902 GB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002042/0.1561, allocations: 86.2 kB / 0.4903 GB, free: 9.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.1561, allocations: 192 / 0.4903 GB, free: 9.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.1562, allocations: 15.92 kB / 0.4903 GB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.1562, allocations: 0 / 0.4903 GB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.855e-05/0.1563, allocations: 19.98 kB / 0.4903 GB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002076/0.1565, allocations: 169.7 kB / 0.4905 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.545e-05/0.1566, allocations: 46.5 kB / 0.4905 GB, free: 8.965 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.434e-05/0.1567, allocations: 28.89 kB / 0.4906 GB, free: 8.934 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.539e-05/0.1567, allocations: 0 / 0.4906 GB, free: 8.934 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002545/0.1569, allocations: 139.4 kB / 0.4907 GB, free: 8.785 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.157, allocations: 4 kB / 0.4907 GB, free: 8.781 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.000321/0.1573, allocations: 117.5 kB / 0.4908 GB, free: 8.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.1573, allocations: 55.41 kB / 0.4909 GB, free: 8.594 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.308e-05/0.1574, allocations: 105.8 kB / 0.491 GB, free: 8.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.048e-05/0.1575, allocations: 33.7 kB / 0.491 GB, free: 8.441 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.882e-05/0.1575, allocations: 80.14 kB / 0.4911 GB, free: 8.359 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.735e-05/0.1576, allocations: 32.02 kB / 0.4911 GB, free: 8.328 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.64e-05/0.1576, allocations: 33.66 kB / 0.4911 GB, free: 8.289 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.1578, allocations: 318.8 kB / 0.4914 GB, free: 7.969 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.104e-05/0.1578, allocations: 27.86 kB / 0.4915 GB, free: 7.941 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.953e-05/0.1579, allocations: 78.84 kB / 0.4915 GB, free: 7.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002186/0.1581, allocations: 144.4 kB / 0.4917 GB, free: 7.668 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.247e-06/0.1582, allocations: 0 / 0.4917 GB, free: 7.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002388/0.1584, allocations: 155.2 kB / 0.4918 GB, free: 7.504 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.077e-05/0.1584, allocations: 37.64 kB / 0.4919 GB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.1585, allocations: 4.219 kB / 0.4919 GB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.1585, allocations: 7.938 kB / 0.4919 GB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.1586, allocations: 16 kB / 0.4919 GB, free: 7.434 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.1586, allocations: 3.984 kB / 0.4919 GB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.784e-05/0.1587, allocations: 7.953 kB / 0.4919 GB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.842e-05/0.1587, allocations: 12 kB / 0.4919 GB, free: 7.41 MB / 382.1 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,cnt[3],$PRE.cnt[3],cnt[2],$PRE.cnt[2],cnt[1],$PRE.cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,samples,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001649/0.1589, allocations: 126 kB / 0.492 GB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.832e-05/0.1589, allocations: 11.88 kB / 0.492 GB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.611e-05/0.1589, allocations: 15.97 kB / 0.4921 GB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.159, allocations: 0 / 0.4921 GB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.159, allocations: 0 / 0.4921 GB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.159, allocations: 0 / 0.4921 GB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001726/0.1591, allocations: 173.6 kB / 0.4922 GB, free: 7.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1592, allocations: 3.938 kB / 0.4922 GB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.6e-05/0.1592, allocations: 8.062 kB / 0.4922 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.1592, allocations: 3.938 kB / 0.4922 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.1592, allocations: 7.984 kB / 0.4922 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1592, allocations: 0 / 0.4922 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1592, allocations: 4 kB / 0.4923 GB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002087/0.1595, allocations: 133 kB / 0.4924 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.496e-05/0.1595, allocations: 81.05 kB / 0.4925 GB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.1596, allocations: 4 kB / 0.4925 GB, free: 6.746 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002104/0.1598, allocations: 28.14 kB / 0.4925 GB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.791e-05/0.1598, allocations: 0 / 0.4925 GB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.77e-05/0.1598, allocations: 7.984 kB / 0.4925 GB, free: 6.711 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.157e-05/0.1599, allocations: 83.28 kB / 0.4926 GB, free: 6.629 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1599, allocations: 0 / 0.4926 GB, free: 6.629 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002346/0.1601, allocations: 23.94 kB / 0.4926 GB, free: 6.605 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002977/0.1604, allocations: 127 kB / 0.4927 GB, free: 6.473 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002581/0.1607, allocations: 127.7 kB / 0.4928 GB, free: 6.336 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1607, allocations: 4.062 kB / 0.4928 GB, free: 6.332 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.652e-05/0.1608, allocations: 35.91 kB / 0.4929 GB, free: 6.297 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001658/0.161, allocations: 8 kB / 0.4929 GB, free: 6.289 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004089/0.1614, allocations: 144.7 kB / 0.493 GB, free: 6.121 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.1617, allocations: 0.6846 MB / 0.4937 GB, free: 5.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.349e-05/0.1617, allocations: 16.66 kB / 0.4937 GB, free: 5.391 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.291e-05/0.1618, allocations: 15.44 kB / 0.4937 GB, free: 5.375 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1618, allocations: 0 / 0.4937 GB, free: 5.375 MB / 382.1 MB Notification: Performance of Templates: time 0.004059/0.1658, allocations: 1.452 MB / 0.4951 GB, free: 3.926 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1)