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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 117.6 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001781/0.001781, allocations: 190.9 kB / 21.44 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 225.6 MB / 249.8 MB, free: 3.629 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2291/0.2291, allocations: 44.92 MB / 349.6 MB, free: 1.738 MB / 270.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 69.16 kB / 491.8 MB, free: 29.9 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1366, allocations: 64.26 MB / 0.543 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001884/0.1385, allocations: 0.5399 MB / 0.5435 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009824/0.1395, allocations: 451 kB / 0.544 GB, free: 3.152 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.612e-05/0.1395, allocations: 0 / 0.544 GB, free: 3.152 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.629e-05/0.1396, allocations: 3.938 kB / 0.544 GB, free: 3.148 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001341/0.1397, allocations: 0 / 0.544 GB, free: 3.148 MB / 398.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.0005871/0.1403, allocations: 171.5 kB / 0.5441 GB, free: 2.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001823/0.1405, allocations: 87.84 kB / 0.5442 GB, free: 2.895 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.958e-05/0.1406, allocations: 4 kB / 0.5442 GB, free: 2.891 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.512e-05/0.1406, allocations: 43.89 kB / 0.5443 GB, free: 2.848 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.001e-05/0.1407, allocations: 15.92 kB / 0.5443 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.1407, allocations: 7.938 kB / 0.5443 GB, free: 2.824 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002326/0.1409, allocations: 107.8 kB / 0.5444 GB, free: 2.719 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.08e-05/0.141, allocations: 19.97 kB / 0.5444 GB, free: 2.699 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.023e-05/0.1411, allocations: 27.89 kB / 0.5444 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002312/0.1413, allocations: 131.8 kB / 0.5446 GB, free: 2.543 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1413, allocations: 4 kB / 0.5446 GB, free: 2.539 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1413, allocations: 0 / 0.5446 GB, free: 2.539 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.1413, allocations: 0 / 0.5446 GB, free: 2.539 MB / 398.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.0006484/0.142, allocations: 402.5 kB / 0.5449 GB, free: 2.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.142, allocations: 8.031 kB / 0.5449 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.961e-05/0.1421, allocations: 46.73 kB / 0.545 GB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.373e-05/0.1421, allocations: 0.9375 kB / 0.545 GB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002385/0.1424, allocations: 192.2 kB / 0.5452 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.464e-06/0.1424, allocations: 384 / 0.5452 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.53e-05/0.1424, allocations: 8.375 kB / 0.5452 GB, free: 1.793 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002054/0.1426, allocations: 86.19 kB / 0.5453 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.1426, allocations: 7.938 kB / 0.5453 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.907e-05/0.1426, allocations: 4 kB / 0.5453 GB, free: 1.691 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.1426, allocations: 0 / 0.5453 GB, free: 1.691 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.835e-05/0.1427, allocations: 23.97 kB / 0.5453 GB, free: 1.668 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003008/0.143, allocations: 165.7 kB / 0.5455 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.875e-05/0.1431, allocations: 42.5 kB / 0.5455 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.886e-05/0.1432, allocations: 24.91 kB / 0.5455 GB, free: 1.379 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.573e-05/0.1432, allocations: 8.141 kB / 0.5455 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003032/0.1435, allocations: 127.3 kB / 0.5457 GB, free: 1.234 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.1435, allocations: 0 / 0.5457 GB, free: 1.234 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003094/0.1438, allocations: 125.5 kB / 0.5458 GB, free: 1.105 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.806e-05/0.1438, allocations: 59.39 kB / 0.5458 GB, free: 1.035 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.475e-05/0.1439, allocations: 97.86 kB / 0.5459 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.424e-05/0.144, allocations: 37.62 kB / 0.546 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.936e-05/0.144, allocations: 80.14 kB / 0.546 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.853e-05/0.1441, allocations: 32.02 kB / 0.5461 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.811e-05/0.1441, allocations: 29.7 kB / 0.5461 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.1443, allocations: 322.8 kB / 0.5464 GB, free: 424 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.742e-05/0.1443, allocations: 27.92 kB / 0.5464 GB, free: 396 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.655e-05/0.1444, allocations: 66.86 kB / 0.5465 GB, free: 304 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002193/0.1446, allocations: 148.4 kB / 0.5466 GB, free: 124 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1446, allocations: 4 kB / 0.5466 GB, free: 120 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002674/0.1449, allocations: 167.1 kB / 0.5468 GB, free: 15.94 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.188e-05/0.145, allocations: 33.7 kB / 0.5468 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.145, allocations: 0 / 0.5468 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.145, allocations: 4 kB / 0.5468 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.1451, allocations: 15.98 kB / 0.5468 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.1451, allocations: 4 kB / 0.5469 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.979e-05/0.1452, allocations: 7.953 kB / 0.5469 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.1452, allocations: 8.062 kB / 0.5469 GB, free: 15.86 MB / 414.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.000169/0.1453, allocations: 140.1 kB / 0.547 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.81e-05/0.1454, allocations: 7.938 kB / 0.547 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.811e-05/0.1454, allocations: 11.95 kB / 0.547 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.093e-05/0.1454, allocations: 4.188 kB / 0.547 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1454, allocations: 0 / 0.547 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.1454, allocations: 3.984 kB / 0.547 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001696/0.1456, allocations: 173.5 kB / 0.5472 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1456, allocations: 0 / 0.5472 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.861e-05/0.1457, allocations: 15.92 kB / 0.5472 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1457, allocations: 4 kB / 0.5472 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.767e-06/0.1457, allocations: 4 kB / 0.5472 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1457, allocations: 0 / 0.5472 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1457, allocations: 3.938 kB / 0.5472 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002032/0.1459, allocations: 121.1 kB / 0.5473 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.104e-05/0.1459, allocations: 89 kB / 0.5474 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.388e-05/0.146, allocations: 7.984 kB / 0.5474 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001939/0.1461, allocations: 19.98 kB / 0.5474 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.031e-05/0.1462, allocations: 7.984 kB / 0.5475 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-05/0.1462, allocations: 4 kB / 0.5475 GB, free: 15.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.72e-05/0.1463, allocations: 83.27 kB / 0.5475 GB, free: 15.08 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1463, allocations: 3.938 kB / 0.5475 GB, free: 15.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003146/0.1466, allocations: 39.94 kB / 0.5476 GB, free: 15.04 MB / 414.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.001025/0.1476, allocations: 0.7479 MB / 0.5483 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002659/0.1479, allocations: 131.3 kB / 0.5484 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.1479, allocations: 4.438 kB / 0.5484 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.214e-05/0.1479, allocations: 27.92 kB / 0.5485 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000165/0.1481, allocations: 13.86 kB / 0.5485 GB, free: 14.1 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001805/0.1499, allocations: 1.426 MB / 0.5499 GB, free: 12.54 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/0.1503, allocations: 0.6883 MB / 0.5505 GB, free: 11.83 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.716e-05/0.1503, allocations: 24.64 kB / 0.5506 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.659e-05/0.1504, allocations: 15.44 kB / 0.5506 GB, free: 11.79 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1504, allocations: 0 / 0.5506 GB, free: 11.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02475/0.1751, allocations: 3.012 MB / 0.5535 GB, free: 8.863 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.096/8.271, allocations: 2.578 kB / 0.5535 GB, free: 8.863 MB / 414.1 MB " [Timeout remaining time 652] (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 --stepSize=0.000166639 --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) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.425746947992593]