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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001136/0.001136, allocations: 92.31 kB / 20.95 MB, free: 3.598 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001566/0.001566, allocations: 160.9 kB / 24.26 MB, free: 292 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9376/0.9376, allocations: 177 MB / 204.5 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2681/0.2681, allocations: 34.24 MB / 295.2 MB, free: 0.668 MB / 266.7 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 376.7 MB, free: 3.438 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.791e-05/2.981e-05, allocations: 4.281 kB / 376.7 MB, free: 3.434 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002003/0.002033, allocations: 0.5516 MB / 377.2 MB, free: 2.879 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000831/0.002864, allocations: 422.4 kB / 377.7 MB, free: 2.465 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.601e-05/0.0029, allocations: 0 / 377.7 MB, free: 2.465 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 7.849e-05/0.002979, allocations: 0 / 377.7 MB, free: 2.465 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000141/0.003119, allocations: 15.86 kB / 377.7 MB, free: 2.449 MB / 346.7 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.0005788/0.003698, allocations: 171.4 kB / 377.8 MB, free: 2.281 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001469/0.003845, allocations: 87.84 kB / 377.9 MB, free: 2.195 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.944e-05/0.003885, allocations: 0 / 377.9 MB, free: 2.195 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.553e-05/0.00396, allocations: 51.89 kB / 378 MB, free: 2.145 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.622e-05/0.004016, allocations: 19.91 kB / 378 MB, free: 2.125 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.937e-05/0.004046, allocations: 4 kB / 378 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002285/0.004274, allocations: 123.8 kB / 378.1 MB, free: 2 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.818e-05/0.004332, allocations: 23.95 kB / 378.1 MB, free: 1.977 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.279e-05/0.004375, allocations: 23.91 kB / 378.2 MB, free: 1.953 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002417/0.004617, allocations: 155.5 kB / 378.3 MB, free: 1.801 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.00462, allocations: 0 / 378.3 MB, free: 1.801 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.004622, allocations: 0 / 378.3 MB, free: 1.801 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.004629, allocations: 8 kB / 378.3 MB, free: 1.793 MB / 346.7 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.0005539/0.005183, allocations: 331.8 kB / 378.7 MB, free: 1.43 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.005231, allocations: 8.031 kB / 378.7 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.545e-05/0.005267, allocations: 30.75 kB / 378.7 MB, free: 1.383 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.976e-05/0.005326, allocations: 12.94 kB / 378.7 MB, free: 1.371 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.00549, allocations: 125.7 kB / 378.8 MB, free: 1.223 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.665e-06/0.005498, allocations: 384 / 378.8 MB, free: 1.223 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.369e-05/0.005511, allocations: 4.375 kB / 378.8 MB, free: 1.219 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001633/0.005675, allocations: 98.12 kB / 378.9 MB, free: 1.117 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.005682, allocations: 4.172 kB / 378.9 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.005697, allocations: 4.375 kB / 378.9 MB, free: 1.109 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.005705, allocations: 8.125 kB / 378.9 MB, free: 1.102 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.31e-05/0.005758, allocations: 23.97 kB / 379 MB, free: 1.078 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001527/0.005911, allocations: 136.7 kB / 379.1 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.604e-05/0.005997, allocations: 42.56 kB / 379.1 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.291e-05/0.00603, allocations: 20.91 kB / 379.2 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.265e-05/0.006042, allocations: 0 / 379.2 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002208/0.006263, allocations: 135.3 kB / 379.3 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.393e-06/0.006265, allocations: 0 / 379.3 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002496/0.006514, allocations: 137.5 kB / 379.4 MB, free: 0.543 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.006549, allocations: 55.41 kB / 379.5 MB, free: 488 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.315e-05/0.006612, allocations: 97.86 kB / 379.6 MB, free: 380 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.199e-05/0.006634, allocations: 33.69 kB / 379.6 MB, free: 340 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.215e-05/0.006666, allocations: 84.14 kB / 379.7 MB, free: 252 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.756e-05/0.006694, allocations: 19.86 kB / 379.7 MB, free: 232 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.061e-05/0.006734, allocations: 29.7 kB / 379.7 MB, free: 196 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.006843, allocations: 322.8 kB / 380.1 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.592e-05/0.006899, allocations: 53.69 kB / 380.1 MB, free: 15.81 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.538e-05/0.006974, allocations: 106.8 kB / 380.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.007124, allocations: 144.4 kB / 380.4 MB, free: 15.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.007127, allocations: 0 / 380.4 MB, free: 15.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001773/0.007304, allocations: 192.9 kB / 380.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/0.007335, allocations: 37.69 kB / 380.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.00734, allocations: 0 / 380.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.007353, allocations: 11.88 kB / 380.6 MB, free: 15.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.084e-05/0.007444, allocations: 12 kB / 380.6 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.007453, allocations: 7.984 kB / 380.6 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.454e-05/0.007487, allocations: 19.83 kB / 380.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.007497, allocations: 4 kB / 380.6 MB, free: 15.2 MB / 362.7 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.0001197/0.007616, allocations: 126 kB / 380.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.184e-05/0.007638, allocations: 11.98 kB / 380.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.381e-05/0.007672, allocations: 8.125 kB / 380.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.007675, allocations: 3.938 kB / 380.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.00768, allocations: 0 / 380.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.007684, allocations: 4 kB / 380.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001026/0.007787, allocations: 140.8 kB / 380.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.007788, allocations: 0 / 380.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.61e-05/0.007814, allocations: 7.984 kB / 380.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.247e-06/0.007818, allocations: 4 kB / 380.9 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.956e-06/0.007827, allocations: 4 kB / 380.9 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.007829, allocations: 3.938 kB / 380.9 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.007829, allocations: 64 / 380.9 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001545/0.007984, allocations: 137 kB / 381.1 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.646e-06/0.007993, allocations: 7.953 kB / 381.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.759e-05/0.00801, allocations: 7.984 kB / 381.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.008117, allocations: 24.03 kB / 381.1 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.89e-05/0.008146, allocations: 11.98 kB / 381.1 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.008158, allocations: 4 kB / 381.1 MB, free: 14.64 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.995e-05/0.008188, allocations: 83.27 kB / 381.2 MB, free: 14.55 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008188, allocations: 0 / 381.2 MB, free: 14.55 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002163/0.008404, allocations: 43.88 kB / 381.3 MB, free: 14.51 MB / 362.7 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.0005983/0.009002, allocations: 0.7498 MB / 382 MB, free: 13.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001855/0.009188, allocations: 157 kB / 382.2 MB, free: 13.58 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.00919, allocations: 0 / 382.2 MB, free: 13.58 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.827e-05/0.009228, allocations: 35.91 kB / 382.2 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001237/0.009352, allocations: 7.938 kB / 382.2 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.01061, allocations: 1.554 MB / 383.8 MB, free: 11.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.335e-05/0.01066, allocations: 71.77 kB / 383.8 MB, free: 11.73 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.955e-05/0.01071, allocations: 16.72 kB / 383.8 MB, free: 11.71 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.155e-05/0.01075, allocations: 20.44 kB / 383.9 MB, free: 11.7 MB / 362.7 MB Notification: Performance of SimCode: time 6.62e-07/0.01075, allocations: 0 / 383.9 MB, free: 11.7 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01705/0.0278, allocations: 3.928 MB / 387.8 MB, free: 7.855 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.827/6.855, allocations: 4.062 kB / 387.8 MB, free: 7.852 MB / 362.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000166639 ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable y in file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable y from file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! Error: Could not read variable cnt[2] in file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable cnt[2] from file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! Error: Could not read variable cnt[3] in file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable cnt[3] from file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! Error: Could not read variable samples in file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable samples from file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.93275191821158]