Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 108.7 kB / 17.21 MB, free: 6.27 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.001097/0.001097, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 222.9 MB / 241.8 MB, free: 13.84 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.223/0.223, allocations: 44.17 MB / 336.1 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.001261, allocations: 60.5 kB / 407.8 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1432, allocations: 60.83 MB / 468.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001995/0.1453, allocations: 0.5955 MB / 469.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009604/0.1462, allocations: 445.2 kB / 469.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.404e-05/0.1463, allocations: 4 kB / 469.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.677e-05/0.1464, allocations: 0 / 469.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001315/0.1465, allocations: 3.938 kB / 469.7 MB, free: 13.68 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.0005012/0.147, allocations: 155 kB / 469.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001299/0.1472, allocations: 79.86 kB / 469.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.754e-05/0.1472, allocations: 0 / 469.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.162e-05/0.1473, allocations: 39.91 kB / 469.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.959e-05/0.1473, allocations: 27.89 kB / 470 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.95e-05/0.1474, allocations: 4 kB / 470 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001761/0.1476, allocations: 87.84 kB / 470.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.574e-05/0.1476, allocations: 19.97 kB / 470.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.639e-05/0.1477, allocations: 35.89 kB / 470.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002208/0.1479, allocations: 135.6 kB / 470.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1479, allocations: 4 kB / 470.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.148, allocations: 0 / 470.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.399e-06/0.148, allocations: 0 / 470.2 MB, free: 13.11 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.0005969/0.1486, allocations: 401.2 kB / 470.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.1486, allocations: 11.97 kB / 470.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.88e-05/0.1487, allocations: 38.75 kB / 470.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.989e-05/0.1487, allocations: 0.9375 kB / 470.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002274/0.149, allocations: 184.6 kB / 470.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.149, allocations: 8.375 kB / 470.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.71e-05/0.149, allocations: 8.375 kB / 470.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/0.1492, allocations: 86.19 kB / 471 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.1492, allocations: 3.938 kB / 471 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.1493, allocations: 4 kB / 471 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.1493, allocations: 0 / 471 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.109e-05/0.1494, allocations: 23.97 kB / 471 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002148/0.1496, allocations: 173.5 kB / 471.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001018/0.1497, allocations: 46.5 kB / 471.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.124e-05/0.1498, allocations: 28.91 kB / 471.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.723e-05/0.1498, allocations: 0 / 471.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002626/0.15, allocations: 135.2 kB / 471.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.1501, allocations: 0 / 471.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003021/0.1504, allocations: 121.6 kB / 471.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.288e-05/0.1504, allocations: 59.48 kB / 471.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.451e-05/0.1505, allocations: 97.86 kB / 471.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.1506, allocations: 33.69 kB / 471.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.123e-05/0.1506, allocations: 84.14 kB / 471.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.912e-05/0.1506, allocations: 23.66 kB / 471.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.895e-05/0.1507, allocations: 33.7 kB / 471.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.1508, allocations: 318.8 kB / 472.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.988e-05/0.1509, allocations: 27.98 kB / 472.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.614e-05/0.151, allocations: 67.14 kB / 472.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001987/0.1512, allocations: 152.3 kB / 472.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1512, allocations: 0 / 472.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002291/0.1514, allocations: 167.1 kB / 472.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.918e-05/0.1515, allocations: 37.69 kB / 472.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.1515, allocations: 4 kB / 472.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.1515, allocations: 4 kB / 472.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.1516, allocations: 16.06 kB / 472.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.481e-05/0.1516, allocations: 4 kB / 472.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.104e-05/0.1517, allocations: 11.83 kB / 472.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.457e-05/0.1517, allocations: 12 kB / 472.6 MB, free: 10.42 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.000157/0.1519, allocations: 128.6 kB / 472.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.863e-05/0.1519, allocations: 7.938 kB / 472.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.94e-05/0.152, allocations: 11.95 kB / 472.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.152, allocations: 0 / 472.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.152, allocations: 0 / 472.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.152, allocations: 3.938 kB / 472.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001574/0.1522, allocations: 173.5 kB / 472.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1522, allocations: 0 / 472.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.748e-05/0.1522, allocations: 11.88 kB / 472.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1522, allocations: 4 kB / 473 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.1522, allocations: 4 kB / 473 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.1522, allocations: 4 kB / 473 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1522, allocations: 0 / 473 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002064/0.1525, allocations: 125.3 kB / 473.1 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.68e-05/0.1525, allocations: 96.92 kB / 473.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.1525, allocations: 0 / 473.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000212/0.1528, allocations: 27.97 kB / 473.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.706e-05/0.1528, allocations: 3.938 kB / 473.2 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.832e-05/0.1528, allocations: 7.984 kB / 473.2 MB, free: 9.727 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.213e-05/0.1529, allocations: 79.28 kB / 473.3 MB, free: 9.648 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1529, allocations: 0 / 473.3 MB, free: 9.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003061/0.1532, allocations: 44 kB / 473.3 MB, free: 9.605 MB / 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.0009154/0.1541, allocations: 0.7419 MB / 474.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002129/0.1544, allocations: 123.3 kB / 474.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1544, allocations: 4.375 kB / 474.2 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.779e-05/0.1544, allocations: 39.86 kB / 474.2 MB, free: 8.676 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001671/0.1546, allocations: 15.92 kB / 474.3 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/0.1561, allocations: 1.435 MB / 475.7 MB, free: 7.094 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002646/0.1564, allocations: 0.685 MB / 476.4 MB, free: 6.383 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.501e-05/0.1564, allocations: 12.66 kB / 476.4 MB, free: 6.367 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.675e-05/0.1565, allocations: 15.42 kB / 476.4 MB, free: 6.352 MB / 350.1 MB Notification: Performance of SimCode: time 1.542e-06/0.1565, allocations: 0 / 476.4 MB, free: 6.352 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01367/0.1701, allocations: 2.799 MB / 479.2 MB, free: 3.645 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001809/0.1704, allocations: 239.8 kB / 479.4 MB, free: 3.387 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.976/2.146, allocations: 2.734 kB / 479.4 MB, free: 3.387 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches