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.001075/0.001075, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001239/0.001239, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2246/0.2246, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 79.89 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1212, allocations: 62.44 MB / 480.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002/0.1232, allocations: 0.523 MB / 480.7 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000963/0.1242, allocations: 445.3 kB / 481.1 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.472e-05/0.1243, allocations: 7.938 kB / 481.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.291e-05/0.1244, allocations: 3.938 kB / 481.1 MB, free: 4.219 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001359/0.1246, allocations: 11.92 kB / 481.1 MB, free: 4.207 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.0006793/0.1253, allocations: 167.2 kB / 481.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001511/0.1254, allocations: 75.92 kB / 481.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.788e-05/0.1255, allocations: 8 kB / 481.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.645e-05/0.1256, allocations: 43.89 kB / 481.4 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.227e-05/0.1257, allocations: 23.84 kB / 481.4 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.678e-05/0.1257, allocations: 8 kB / 481.4 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002033/0.1259, allocations: 95.89 kB / 481.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.969e-05/0.126, allocations: 19.97 kB / 481.5 MB, free: 3.777 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.14e-05/0.126, allocations: 19.92 kB / 481.6 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002582/0.1263, allocations: 135.7 kB / 481.7 MB, free: 3.625 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.1263, allocations: 3.938 kB / 481.7 MB, free: 3.621 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1263, allocations: 0 / 481.7 MB, free: 3.621 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.1263, allocations: 0 / 481.7 MB, free: 3.621 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.0006006/0.1269, allocations: 401.1 kB / 482.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.127, allocations: 16.03 kB / 482.1 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.229e-05/0.127, allocations: 38.73 kB / 482.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.985e-05/0.1271, allocations: 4.938 kB / 482.1 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001764/0.1273, allocations: 180.6 kB / 482.3 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.1273, allocations: 4.375 kB / 482.3 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.156e-05/0.1273, allocations: 384 / 482.3 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001979/0.1275, allocations: 94.19 kB / 482.4 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.1275, allocations: 3.938 kB / 482.4 MB, free: 2.785 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/0.1276, allocations: 0 / 482.4 MB, free: 2.785 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1276, allocations: 4 kB / 482.4 MB, free: 2.781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.842e-05/0.1276, allocations: 27.92 kB / 482.5 MB, free: 2.754 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001986/0.1278, allocations: 173.5 kB / 482.6 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.416e-05/0.1279, allocations: 42.55 kB / 482.7 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.645e-05/0.128, allocations: 20.92 kB / 482.7 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.621e-05/0.128, allocations: 0 / 482.7 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002715/0.1283, allocations: 139.2 kB / 482.8 MB, free: 2.312 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.1283, allocations: 0 / 482.8 MB, free: 2.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003/0.1286, allocations: 125.5 kB / 482.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.1287, allocations: 63.53 kB / 483 MB, free: 2.109 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.065e-05/0.1288, allocations: 93.86 kB / 483.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.796e-05/0.1288, allocations: 33.7 kB / 483.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.139e-05/0.1288, allocations: 84.14 kB / 483.2 MB, free: 1.883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.204e-05/0.1289, allocations: 27.64 kB / 483.2 MB, free: 1.855 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.92e-05/0.1289, allocations: 33.7 kB / 483.3 MB, free: 1.816 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.129, allocations: 314.8 kB / 483.6 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.133e-05/0.1291, allocations: 23.98 kB / 483.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.869e-05/0.1292, allocations: 81.23 kB / 483.7 MB, free: 1.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001915/0.1294, allocations: 152.3 kB / 483.8 MB, free: 1.195 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1294, allocations: 0 / 483.8 MB, free: 1.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002305/0.1296, allocations: 163.1 kB / 484 MB, free: 1.023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.311e-05/0.1297, allocations: 32.2 kB / 484 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.1297, allocations: 4 kB / 484 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.1297, allocations: 0 / 484 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.1298, allocations: 24.14 kB / 484.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.1298, allocations: 4 kB / 484.1 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.245e-05/0.1299, allocations: 11.91 kB / 484.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/0.1299, allocations: 4 kB / 484.1 MB, free: 0.9414 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.0001498/0.1301, allocations: 129.8 kB / 484.2 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.853e-05/0.1301, allocations: 7.938 kB / 484.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.315e-05/0.1301, allocations: 11.91 kB / 484.2 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1302, allocations: 0 / 484.2 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1302, allocations: 4.188 kB / 484.2 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1302, allocations: 3.984 kB / 484.2 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001506/0.1303, allocations: 177.5 kB / 484.4 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.1303, allocations: 4 kB / 484.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.939e-05/0.1304, allocations: 11.92 kB / 484.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.614e-06/0.1304, allocations: 0 / 484.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.108e-06/0.1304, allocations: 0 / 484.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1304, allocations: 0 / 484.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1304, allocations: 0 / 484.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002138/0.1306, allocations: 145.2 kB / 484.6 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.037e-05/0.1307, allocations: 84.95 kB / 484.6 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.029e-05/0.1307, allocations: 4 kB / 484.6 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002004/0.1309, allocations: 15.97 kB / 484.7 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.387e-05/0.131, allocations: 7.984 kB / 484.7 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.131, allocations: 12.06 kB / 484.7 MB, free: 244 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.566e-05/0.131, allocations: 79.28 kB / 484.8 MB, free: 164 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.131, allocations: 0 / 484.8 MB, free: 164 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002819/0.1313, allocations: 47.98 kB / 484.8 MB, free: 116 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.0008088/0.1321, allocations: 0.7321 MB / 485.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002197/0.1324, allocations: 131.2 kB / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.1324, allocations: 0 / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 7.169e-05/0.1325, allocations: 31.98 kB / 485.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001635/0.1326, allocations: 8 kB / 485.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001565/0.1342, allocations: 1.444 MB / 487.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/0.1345, allocations: 0.6846 MB / 487.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.144e-05/0.1346, allocations: 12.66 kB / 487.8 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.735e-05/0.1346, allocations: 19.44 kB / 487.9 MB, free: 12.87 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1346, allocations: 0 / 487.9 MB, free: 12.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02219/0.1568, allocations: 2.968 MB / 490.8 MB, free: 9.973 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.408/7.565, allocations: 5.062 kB / 490.8 MB, free: 9.969 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