Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001336/0.001336, allocations: 120.4 kB / 18.45 MB, free: 4.59 MB / 14.72 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.001422/0.001422, allocations: 212.9 kB / 21.41 MB, free: 1.641 MB / 14.72 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 1.539/1.539, allocations: 227.4 MB / 251.7 MB, free: 44 kB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2682/0.2682, allocations: 46.15 MB / 351.1 MB, free: 14.3 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002278/0.002278, allocations: 79.03 kB / 489.7 MB, free: 28.37 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1304, allocations: 62.46 MB / 0.5392 GB, free: 4.785 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002395/0.1329, allocations: 0.5261 MB / 0.5397 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.134, allocations: 443 kB / 0.5401 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.968e-05/0.1341, allocations: 0 / 0.5401 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.582e-05/0.1342, allocations: 0 / 0.5401 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.1343, allocations: 15.92 kB / 0.5401 GB, free: 3.805 MB / 398.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.0007049/0.135, allocations: 167.5 kB / 0.5403 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001887/0.1352, allocations: 79.92 kB / 0.5404 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.239e-05/0.1353, allocations: 11.88 kB / 0.5404 GB, free: 3.551 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.392e-05/0.1354, allocations: 43.89 kB / 0.5404 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.829e-05/0.1355, allocations: 19.91 kB / 0.5404 GB, free: 3.488 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.254e-05/0.1355, allocations: 4 kB / 0.5404 GB, free: 3.484 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002374/0.1357, allocations: 91.91 kB / 0.5405 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.447e-05/0.1358, allocations: 27.95 kB / 0.5405 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.281e-05/0.1359, allocations: 23.86 kB / 0.5406 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002666/0.1362, allocations: 131.8 kB / 0.5407 GB, free: 3.215 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1362, allocations: 0 / 0.5407 GB, free: 3.215 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1362, allocations: 0 / 0.5407 GB, free: 3.215 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.1362, allocations: 4 kB / 0.5407 GB, free: 3.211 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.0006653/0.1369, allocations: 408.9 kB / 0.5411 GB, free: 2.754 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.1369, allocations: 8.031 kB / 0.5411 GB, free: 2.746 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.269e-05/0.137, allocations: 38.75 kB / 0.5411 GB, free: 2.699 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.435e-05/0.137, allocations: 12.88 kB / 0.5411 GB, free: 2.688 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002206/0.1373, allocations: 184.3 kB / 0.5413 GB, free: 2.469 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.1373, allocations: 4.375 kB / 0.5413 GB, free: 2.465 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.1373, allocations: 384 / 0.5413 GB, free: 2.465 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002302/0.1375, allocations: 90.19 kB / 0.5414 GB, free: 2.371 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.1376, allocations: 3.938 kB / 0.5414 GB, free: 2.367 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.544e-05/0.1376, allocations: 8 kB / 0.5414 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.401e-06/0.1376, allocations: 3.938 kB / 0.5414 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.229e-05/0.1377, allocations: 19.98 kB / 0.5414 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002298/0.1379, allocations: 161.7 kB / 0.5416 GB, free: 2.129 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001036/0.138, allocations: 54.53 kB / 0.5417 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.216e-05/0.1381, allocations: 24.91 kB / 0.5417 GB, free: 2.039 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.1381, allocations: 0 / 0.5417 GB, free: 2.039 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000343/0.1385, allocations: 139.2 kB / 0.5418 GB, free: 1.891 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.1385, allocations: 0 / 0.5418 GB, free: 1.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003373/0.1388, allocations: 125.5 kB / 0.5419 GB, free: 1.762 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.88e-05/0.1389, allocations: 55.41 kB / 0.542 GB, free: 1.695 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.577e-05/0.139, allocations: 98.12 kB / 0.5421 GB, free: 1.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/0.139, allocations: 37.64 kB / 0.5421 GB, free: 1.547 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.648e-05/0.1391, allocations: 80.3 kB / 0.5422 GB, free: 1.465 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.31e-05/0.1391, allocations: 35.7 kB / 0.5422 GB, free: 1.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.323e-05/0.1392, allocations: 37.7 kB / 0.5423 GB, free: 1.387 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.1394, allocations: 314.8 kB / 0.5426 GB, free: 1.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.591e-05/0.1394, allocations: 19.98 kB / 0.5426 GB, free: 1.051 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.1396, allocations: 78.84 kB / 0.5427 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002207/0.1398, allocations: 148.4 kB / 0.5428 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1398, allocations: 0 / 0.5428 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002591/0.1401, allocations: 167.1 kB / 0.543 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.795e-05/0.1401, allocations: 31.42 kB / 0.543 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1401, allocations: 4 kB / 0.543 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.1401, allocations: 4 kB / 0.543 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.1403, allocations: 19.92 kB / 0.543 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.1403, allocations: 0 / 0.543 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.682e-05/0.1403, allocations: 11.95 kB / 0.543 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/0.1404, allocations: 12.28 kB / 0.543 GB, free: 0.5117 MB / 398.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.0001546/0.1405, allocations: 135.2 kB / 0.5432 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.936e-05/0.1406, allocations: 15.83 kB / 0.5432 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.488e-05/0.1406, allocations: 7.969 kB / 0.5432 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1406, allocations: 0 / 0.5432 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1406, allocations: 0 / 0.5432 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1406, allocations: 0 / 0.5432 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.1408, allocations: 173.6 kB / 0.5434 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1408, allocations: 4 kB / 0.5434 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.725e-05/0.1409, allocations: 7.938 kB / 0.5434 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.103e-06/0.1409, allocations: 0 / 0.5434 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.1409, allocations: 3.984 kB / 0.5434 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1409, allocations: 0 / 0.5434 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1409, allocations: 4 kB / 0.5434 GB, free: 112 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002363/0.1411, allocations: 129 kB / 0.5435 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.769e-05/0.1412, allocations: 85 kB / 0.5436 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.083e-05/0.1412, allocations: 12 kB / 0.5436 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.1414, allocations: 19.97 kB / 0.5436 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.756e-05/0.1415, allocations: 3.984 kB / 0.5436 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.1415, allocations: 8 kB / 0.5436 GB, free: 15.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.627e-05/0.1415, allocations: 83.45 kB / 0.5437 GB, free: 15.74 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1416, allocations: 3.938 kB / 0.5437 GB, free: 15.73 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002906/0.1419, allocations: 43.92 kB / 0.5437 GB, free: 15.69 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.000851/0.1427, allocations: 0.7403 MB / 0.5445 GB, free: 14.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002361/0.143, allocations: 135.2 kB / 0.5446 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.143, allocations: 0 / 0.5446 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.261e-05/0.143, allocations: 27.98 kB / 0.5446 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001544/0.1432, allocations: 8 kB / 0.5446 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001584/0.1448, allocations: 1.436 MB / 0.546 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.1451, allocations: 0.6885 MB / 0.5467 GB, free: 12.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.982e-05/0.1452, allocations: 12.66 kB / 0.5467 GB, free: 12.47 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.317e-05/0.1452, allocations: 19.42 kB / 0.5467 GB, free: 12.45 MB / 414.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1452, allocations: 0 / 0.5467 GB, free: 12.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02327/0.1685, allocations: 3.015 MB / 0.5497 GB, free: 9.531 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.106/8.275, allocations: 9.141 kB / 0.5497 GB, free: 9.523 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --stepSize=0.000166639 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.34202942904085] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 8.345530913909897 8.359803653 8.221025749 Calling exit ...