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.0009471/0.000947, allocations: 96.28 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 178.7 kB / 16.57 MB, free: 6.387 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.33/1.33, allocations: 205.4 MB / 222.7 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.382/0.382, allocations: 43.54 MB / 314.5 MB, free: 8.766 MB / 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.0005742/0.0005742, allocations: 12 kB / 383.9 MB, free: 8.027 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1407/0.1413, allocations: 58.86 MB / 442.8 MB, free: 13.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.000877/0.1423, allocations: 267 kB / 443 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009752/0.1433, allocations: 401.5 kB / 443.4 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.117e-05/0.1434, allocations: 0 / 443.4 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.462e-05/0.1435, allocations: 7.938 kB / 443.4 MB, free: 12.4 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001304/0.1436, allocations: 11.91 kB / 443.4 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006308/0.1442, allocations: 139.7 kB / 443.6 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001314/0.1444, allocations: 47.92 kB / 443.6 MB, free: 12.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.924e-05/0.1444, allocations: 7.922 kB / 443.6 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.917e-05/0.1445, allocations: 39.97 kB / 443.7 MB, free: 12.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.424e-05/0.1446, allocations: 15.92 kB / 443.7 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.831e-05/0.1446, allocations: 3.938 kB / 443.7 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001918/0.1448, allocations: 75.92 kB / 443.8 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.314e-05/0.1449, allocations: 19.95 kB / 443.8 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.416e-05/0.1449, allocations: 33.64 kB / 443.8 MB, free: 12.01 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001694/0.1451, allocations: 79.86 kB / 443.9 MB, free: 11.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1451, allocations: 0 / 443.9 MB, free: 11.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1451, allocations: 0 / 443.9 MB, free: 11.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.1451, allocations: 0 / 443.9 MB, free: 11.93 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.000601/0.1457, allocations: 389 kB / 444.3 MB, free: 11.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.1458, allocations: 12.03 kB / 444.3 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.609e-05/0.1459, allocations: 11.84 kB / 444.3 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002671/0.1462, allocations: 183.2 kB / 444.5 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.1462, allocations: 0 / 444.5 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.725e-05/0.1462, allocations: 4 kB / 444.5 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002334/0.1465, allocations: 93.56 kB / 444.6 MB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.1465, allocations: 0 / 444.6 MB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.565e-05/0.1465, allocations: 7.938 kB / 444.6 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.1465, allocations: 4 kB / 444.6 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.42e-05/0.1466, allocations: 23.97 kB / 444.6 MB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000273/0.1469, allocations: 173.6 kB / 444.8 MB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001124/0.147, allocations: 42.55 kB / 444.8 MB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.539e-05/0.147, allocations: 0 / 444.8 MB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003175/0.1474, allocations: 135.3 kB / 444.9 MB, free: 10.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.973e-06/0.1474, allocations: 0 / 444.9 MB, free: 10.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004849/0.1479, allocations: 202.6 kB / 445.1 MB, free: 10.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.501e-05/0.148, allocations: 55.41 kB / 445.2 MB, free: 10.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.1481, allocations: 97.84 kB / 445.3 MB, free: 10.31 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.499e-05/0.1481, allocations: 33.7 kB / 445.3 MB, free: 10.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.371e-05/0.1482, allocations: 80.33 kB / 445.4 MB, free: 10.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.862e-05/0.1483, allocations: 31.84 kB / 445.4 MB, free: 10.15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.656e-06/0.1483, allocations: 4 kB / 445.4 MB, free: 10.15 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.1485, allocations: 322.8 kB / 445.7 MB, free: 9.824 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.927e-05/0.1486, allocations: 19.98 kB / 445.8 MB, free: 9.805 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.111e-05/0.1487, allocations: 70.84 kB / 445.8 MB, free: 9.711 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.744e-05/0.1488, allocations: 69.62 kB / 445.9 MB, free: 9.637 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.1488, allocations: 0 / 445.9 MB, free: 9.637 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000266/0.1491, allocations: 159.3 kB / 446.1 MB, free: 9.469 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.792e-05/0.1491, allocations: 33.73 kB / 446.1 MB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.1491, allocations: 7.938 kB / 446.1 MB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.122e-05/0.1492, allocations: 4 kB / 446.1 MB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.1493, allocations: 20.27 kB / 446.1 MB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.1494, allocations: 0 / 446.1 MB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.693e-05/0.1494, allocations: 4 kB / 446.1 MB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.771e-05/0.1495, allocations: 15.88 kB / 446.1 MB, free: 9.379 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,$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.0002491/0.1497, allocations: 145.8 kB / 446.3 MB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.986e-05/0.1498, allocations: 7.906 kB / 446.3 MB, free: 9.219 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.688e-05/0.1498, allocations: 7.969 kB / 446.3 MB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.1498, allocations: 0 / 446.3 MB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.1498, allocations: 3.984 kB / 446.3 MB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1498, allocations: 0 / 446.3 MB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00029/0.1501, allocations: 169.6 kB / 446.5 MB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1502, allocations: 0 / 446.5 MB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.729e-05/0.1502, allocations: 7.984 kB / 446.5 MB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.1502, allocations: 3.938 kB / 446.5 MB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.1502, allocations: 8 kB / 446.5 MB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.1502, allocations: 0 / 446.5 MB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1503, allocations: 4 kB / 446.5 MB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002181/0.1505, allocations: 129 kB / 446.6 MB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.152e-05/0.1506, allocations: 81.05 kB / 446.7 MB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.589e-05/0.1506, allocations: 7.984 kB / 446.7 MB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002196/0.1508, allocations: 27.98 kB / 446.7 MB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.886e-05/0.1509, allocations: 7.922 kB / 446.7 MB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.1509, allocations: 4 kB / 446.7 MB, free: 8.684 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.163e-05/0.1509, allocations: 83.45 kB / 446.8 MB, free: 8.602 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1509, allocations: 0 / 446.8 MB, free: 8.602 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003948/0.1513, allocations: 44 kB / 446.9 MB, free: 8.559 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004375/0.1518, allocations: 189.4 kB / 447.1 MB, free: 8.379 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002894/0.1521, allocations: 123.3 kB / 447.2 MB, free: 8.246 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1521, allocations: 7.938 kB / 447.2 MB, free: 8.238 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.604e-05/0.1522, allocations: 27.97 kB / 447.2 MB, free: 8.211 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001171/0.1523, allocations: 8.438 kB / 447.2 MB, free: 8.203 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003663/0.1527, allocations: 150.6 kB / 447.4 MB, free: 8.031 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.1529, allocations: 0.6848 MB / 448.1 MB, free: 7.32 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.207e-05/0.153, allocations: 20.58 kB / 448.1 MB, free: 7.297 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.301e-05/0.153, allocations: 15.44 kB / 448.1 MB, free: 7.281 MB / 382.1 MB Notification: Performance of SimCode: time 1.813e-06/0.153, allocations: 4 kB / 448.1 MB, free: 7.277 MB / 382.1 MB Notification: Performance of Templates: time 0.005607/0.1587, allocations: 1.825 MB / 449.9 MB, free: 5.457 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches