Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008141/0.0008143, allocations: 95 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001067/0.001067, allocations: 206.1 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.7 MB / 246.8 MB, free: 11.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2048/0.2048, allocations: 46.18 MB / 345.2 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003013/0.0003015, allocations: 11.98 kB / 419.6 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1404, allocations: 63.57 MB / 483.2 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0008365/0.1413, allocations: 257.4 kB / 483.4 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001062/0.1424, allocations: 442.7 kB / 483.9 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.122e-05/0.1424, allocations: 0 / 483.9 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.591e-05/0.1425, allocations: 3.984 kB / 483.9 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001522/0.1427, allocations: 7.938 kB / 483.9 MB, free: 3.395 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006729/0.1434, allocations: 147.2 kB / 484 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001578/0.1436, allocations: 79.84 kB / 484.1 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.276e-05/0.1436, allocations: 4 kB / 484.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.563e-05/0.1437, allocations: 39.91 kB / 484.1 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.265e-05/0.1438, allocations: 19.91 kB / 484.2 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.13e-05/0.1438, allocations: 4 kB / 484.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002769/0.1441, allocations: 95.84 kB / 484.3 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.443e-05/0.1442, allocations: 23.95 kB / 484.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.23e-05/0.1443, allocations: 53.61 kB / 484.3 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002918/0.1446, allocations: 127.7 kB / 484.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1446, allocations: 3.984 kB / 484.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1446, allocations: 0 / 484.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.1446, allocations: 0 / 484.5 MB, free: 2.805 MB / 350.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.0005443/0.1452, allocations: 373.2 kB / 484.8 MB, free: 2.383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.1452, allocations: 12.88 kB / 484.8 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.978e-05/0.1453, allocations: 34.73 kB / 484.9 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.224e-05/0.1453, allocations: 4.938 kB / 484.9 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001976/0.1455, allocations: 188.5 kB / 485.1 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.1456, allocations: 4.375 kB / 485.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.424e-05/0.1456, allocations: 4.375 kB / 485.1 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002087/0.1458, allocations: 94.19 kB / 485.2 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.1458, allocations: 3.938 kB / 485.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.32e-05/0.1459, allocations: 4 kB / 485.2 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.1459, allocations: 0 / 485.2 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.603e-05/0.146, allocations: 23.98 kB / 485.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002033/0.1462, allocations: 169.5 kB / 485.4 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.034e-05/0.1463, allocations: 54.5 kB / 485.4 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.06e-05/0.1463, allocations: 24.91 kB / 485.4 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.1463, allocations: 0 / 485.4 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000255/0.1466, allocations: 131.2 kB / 485.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 3.166e-06/0.1466, allocations: 7.984 kB / 485.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002891/0.1469, allocations: 121.7 kB / 485.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.516e-05/0.147, allocations: 67.33 kB / 485.8 MB, free: 1.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.076e-05/0.1471, allocations: 93.86 kB / 485.8 MB, free: 1.207 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.1471, allocations: 29.7 kB / 485.9 MB, free: 1.172 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.784e-05/0.1471, allocations: 88.12 kB / 486 MB, free: 1.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.001e-05/0.1472, allocations: 23.66 kB / 486 MB, free: 1.059 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.206e-05/0.1472, allocations: 21.7 kB / 486 MB, free: 1.031 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.1474, allocations: 318.8 kB / 486.3 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.324e-05/0.1474, allocations: 23.98 kB / 486.3 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.783e-05/0.1475, allocations: 73.94 kB / 486.4 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002017/0.1477, allocations: 152.4 kB / 486.6 MB, free: 424 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1477, allocations: 0 / 486.6 MB, free: 424 kB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002323/0.148, allocations: 171 kB / 486.7 MB, free: 240 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.763e-05/0.148, allocations: 29.7 kB / 486.8 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.148, allocations: 4 kB / 486.8 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.1481, allocations: 4 kB / 486.8 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.1482, allocations: 15.98 kB / 486.8 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.1482, allocations: 4 kB / 486.8 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.37e-05/0.1482, allocations: 11.84 kB / 486.8 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.1483, allocations: 8 kB / 486.8 MB, free: 156 kB / 350.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.0001595/0.1484, allocations: 130 kB / 486.9 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.334e-05/0.1485, allocations: 7.938 kB / 486.9 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.427e-05/0.1485, allocations: 7.969 kB / 486.9 MB, free: 0 / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1485, allocations: 0 / 486.9 MB, free: 0 / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.82e-06/0.1485, allocations: 0 / 486.9 MB, free: 0 / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.1485, allocations: 0 / 486.9 MB, free: 0 / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.1487, allocations: 185.5 kB / 487.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.1487, allocations: 0 / 487.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.923e-05/0.1488, allocations: 15.88 kB / 487.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.1488, allocations: 0 / 487.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.1488, allocations: 3.984 kB / 487.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.1488, allocations: 4 kB / 487.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1488, allocations: 80 / 487.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002024/0.149, allocations: 129.3 kB / 487.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.247e-05/0.1491, allocations: 88.95 kB / 487.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.1491, allocations: 4 kB / 487.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.1493, allocations: 27.97 kB / 487.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.947e-05/0.1494, allocations: 11.92 kB / 487.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.1494, allocations: 4.062 kB / 487.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.295e-05/0.1494, allocations: 79.28 kB / 487.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1494, allocations: 0 / 487.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002955/0.1497, allocations: 43.98 kB / 487.5 MB, free: 15.33 MB / 366.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.0007819/0.1505, allocations: 0.7459 MB / 488.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002101/0.1508, allocations: 127.3 kB / 488.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.1508, allocations: 4 kB / 488.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.457e-05/0.1508, allocations: 27.92 kB / 488.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001684/0.151, allocations: 8 kB / 488.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/0.1525, allocations: 1.439 MB / 489.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002777/0.1528, allocations: 0.6854 MB / 490.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.19e-05/0.1529, allocations: 16.64 kB / 490.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.732e-05/0.1529, allocations: 15.44 kB / 490.6 MB, free: 12.08 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1529, allocations: 0 / 490.6 MB, free: 12.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01358/0.1665, allocations: 2.697 MB / 493.3 MB, free: 9.496 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/0.1668, allocations: 240.8 kB / 493.5 MB, free: 9.246 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.83/1.996, allocations: 0 / 493.5 MB, free: 9.246 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches