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.001108/0.001108, allocations: 115.2 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001352/0.001353, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2291/0.2291, allocations: 46.11 MB / 343.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 85.45 kB / 417.2 MB, free: 19.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1428, allocations: 62.44 MB / 479.6 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.00231/0.1452, allocations: 0.5943 MB / 480.2 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.1463, allocations: 434.6 kB / 480.6 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.791e-05/0.1464, allocations: 0 / 480.6 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.83e-05/0.1466, allocations: 0 / 480.6 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001672/0.1467, allocations: 11.92 kB / 480.6 MB, free: 4.484 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.0007974/0.1475, allocations: 155.2 kB / 480.8 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002011/0.1478, allocations: 83.84 kB / 480.9 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.329e-05/0.1478, allocations: 0 / 480.9 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.1479, allocations: 43.89 kB / 480.9 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.774e-05/0.148, allocations: 23.86 kB / 480.9 MB, free: 4.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.603e-05/0.1481, allocations: 4 kB / 480.9 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002954/0.1484, allocations: 91.91 kB / 481 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.464e-05/0.1485, allocations: 23.95 kB / 481 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.365e-05/0.1485, allocations: 23.91 kB / 481.1 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003321/0.1489, allocations: 127.7 kB / 481.2 MB, free: 3.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.1489, allocations: 4 kB / 481.2 MB, free: 3.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1489, allocations: 3.938 kB / 481.2 MB, free: 3.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1489, allocations: 0 / 481.2 MB, free: 3.914 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.0007046/0.1496, allocations: 405.1 kB / 481.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.1497, allocations: 12.03 kB / 481.6 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.575e-05/0.1498, allocations: 34.75 kB / 481.6 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.733e-05/0.1498, allocations: 8.922 kB / 481.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002039/0.15, allocations: 180.6 kB / 481.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.15, allocations: 4.375 kB / 481.8 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.51e-05/0.1501, allocations: 4.375 kB / 481.8 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002154/0.1503, allocations: 94.19 kB / 481.9 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.1503, allocations: 3.938 kB / 481.9 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.229e-05/0.1503, allocations: 0 / 481.9 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.1504, allocations: 4 kB / 481.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.899e-05/0.1504, allocations: 23.92 kB / 482 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002373/0.1507, allocations: 181.5 kB / 482.1 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.706e-05/0.1508, allocations: 46.55 kB / 482.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.902e-05/0.1508, allocations: 28.92 kB / 482.2 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.548e-05/0.1509, allocations: 0 / 482.2 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003074/0.1512, allocations: 131.2 kB / 482.3 MB, free: 2.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.542e-06/0.1512, allocations: 0 / 482.3 MB, free: 2.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003252/0.1515, allocations: 129.5 kB / 482.5 MB, free: 2.461 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.1516, allocations: 55.41 kB / 482.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.143e-05/0.1517, allocations: 101.8 kB / 482.6 MB, free: 2.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.888e-05/0.1517, allocations: 29.7 kB / 482.6 MB, free: 2.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.646e-05/0.1518, allocations: 84.14 kB / 482.7 MB, free: 2.164 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.999e-05/0.1518, allocations: 35.78 kB / 482.8 MB, free: 2.129 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.348e-05/0.1519, allocations: 33.7 kB / 482.8 MB, free: 2.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.152, allocations: 310.8 kB / 483.1 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.665e-05/0.152, allocations: 27.98 kB / 483.1 MB, free: 1.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.866e-05/0.1521, allocations: 74.84 kB / 483.2 MB, free: 1.652 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002219/0.1524, allocations: 148.3 kB / 483.3 MB, free: 1.477 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1524, allocations: 0 / 483.3 MB, free: 1.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002399/0.1526, allocations: 167.2 kB / 483.5 MB, free: 1.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.364e-05/0.1527, allocations: 32.36 kB / 483.5 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.1527, allocations: 4 kB / 483.5 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.1527, allocations: 0 / 483.5 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.1528, allocations: 23.92 kB / 483.6 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.924e-06/0.1528, allocations: 0 / 483.6 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.829e-05/0.1529, allocations: 11.91 kB / 483.6 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.254e-05/0.1529, allocations: 4 kB / 483.6 MB, free: 1.223 MB / 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.0001765/0.1531, allocations: 136.7 kB / 483.7 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.197e-05/0.1531, allocations: 7.938 kB / 483.7 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.1e-05/0.1532, allocations: 11.91 kB / 483.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.165e-06/0.1532, allocations: 0 / 483.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.1532, allocations: 0 / 483.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1532, allocations: 192 / 483.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001584/0.1534, allocations: 177.5 kB / 483.9 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.1534, allocations: 4 kB / 483.9 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.283e-05/0.1534, allocations: 12 kB / 483.9 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.1535, allocations: 7.984 kB / 483.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.1535, allocations: 3.984 kB / 483.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1535, allocations: 0 / 483.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1535, allocations: 0 / 483.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002182/0.1537, allocations: 137.2 kB / 484.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.472e-05/0.1538, allocations: 84.95 kB / 484.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.451e-05/0.1538, allocations: 4 kB / 484.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.154, allocations: 19.97 kB / 484.2 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.268e-05/0.1541, allocations: 11.98 kB / 484.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-05/0.1541, allocations: 4 kB / 484.2 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.401e-05/0.1541, allocations: 79.28 kB / 484.3 MB, free: 452 kB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1541, allocations: 0 / 484.3 MB, free: 452 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003127/0.1545, allocations: 43.98 kB / 484.3 MB, free: 408 kB / 350.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.0007747/0.1552, allocations: 0.7403 MB / 485.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002184/0.1555, allocations: 131.2 kB / 485.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.1555, allocations: 4.438 kB / 485.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.742e-05/0.1555, allocations: 31.98 kB / 485.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000165/0.1557, allocations: 8 kB / 485.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/0.1571, allocations: 1.437 MB / 486.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002404/0.1573, allocations: 0.689 MB / 487.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.224e-05/0.1574, allocations: 12.66 kB / 487.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.79e-05/0.1574, allocations: 11.44 kB / 487.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1574, allocations: 0 / 487.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01487/0.1723, allocations: 2.898 MB / 490.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002431/0.1726, allocations: 236.5 kB / 490.5 MB, free: 10.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.968/2.14, allocations: 0 / 490.5 MB, free: 10.12 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