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.001272/0.001272, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001383/0.001383, allocations: 214.2 kB / 24.52 MB, free: 3.918 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.378/1.378, allocations: 230.5 MB / 258.2 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] 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.2133/0.2133, allocations: 46.95 MB / 361.6 MB, free: 3.93 MB / 286.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00211/0.00211, allocations: 76.06 kB / 0.4969 GB, free: 7.574 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2774, allocations: 66.09 MB / 0.5614 GB, free: 4.023 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001711/0.2791, allocations: 0.5305 MB / 0.562 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008484/0.2799, allocations: 434.7 kB / 0.5624 GB, free: 3.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.565e-05/0.2799, allocations: 0 / 0.5624 GB, free: 3.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.266e-05/0.28, allocations: 3.938 kB / 0.5624 GB, free: 3.066 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001009/0.2801, allocations: 7.938 kB / 0.5624 GB, free: 3.059 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.0005293/0.2806, allocations: 170.9 kB / 0.5625 GB, free: 2.895 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001601/0.2808, allocations: 87.84 kB / 0.5626 GB, free: 2.809 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.875e-05/0.2808, allocations: 4 kB / 0.5626 GB, free: 2.805 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.008e-05/0.2809, allocations: 43.89 kB / 0.5627 GB, free: 2.762 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.286e-05/0.2809, allocations: 19.92 kB / 0.5627 GB, free: 2.742 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.726e-05/0.281, allocations: 7.938 kB / 0.5627 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000258/0.2812, allocations: 127.8 kB / 0.5628 GB, free: 2.609 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.634e-05/0.2813, allocations: 23.95 kB / 0.5628 GB, free: 2.586 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.616e-05/0.2813, allocations: 23.91 kB / 0.5629 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002116/0.2815, allocations: 129.5 kB / 0.563 GB, free: 2.438 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.2815, allocations: 0 / 0.563 GB, free: 2.438 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2815, allocations: 0 / 0.563 GB, free: 2.438 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.2815, allocations: 3.938 kB / 0.563 GB, free: 2.434 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.0005268/0.2821, allocations: 335.7 kB / 0.5633 GB, free: 2.066 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.2821, allocations: 12.03 kB / 0.5633 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.903e-05/0.2821, allocations: 4.188 kB / 0.5633 GB, free: 2.051 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.93e-05/0.2822, allocations: 38.73 kB / 0.5634 GB, free: 2.004 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.345e-05/0.2822, allocations: 4.891 kB / 0.5634 GB, free: 2 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001676/0.2824, allocations: 126.5 kB / 0.5635 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.588e-06/0.2824, allocations: 384 / 0.5635 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.389e-05/0.2824, allocations: 8.312 kB / 0.5635 GB, free: 1.844 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000193/0.2826, allocations: 93.94 kB / 0.5636 GB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.2826, allocations: 0 / 0.5636 GB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.2826, allocations: 4 kB / 0.5636 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.2826, allocations: 0 / 0.5636 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.03e-05/0.2827, allocations: 39.91 kB / 0.5636 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001703/0.2829, allocations: 132.7 kB / 0.5638 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.089e-05/0.283, allocations: 38.56 kB / 0.5638 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.068e-05/0.283, allocations: 20.92 kB / 0.5638 GB, free: 1.461 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.556e-05/0.283, allocations: 3.984 kB / 0.5638 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002748/0.2833, allocations: 143.1 kB / 0.564 GB, free: 1.305 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.383e-06/0.2833, allocations: 0 / 0.564 GB, free: 1.305 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002957/0.2836, allocations: 125.5 kB / 0.5641 GB, free: 1.176 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/0.2836, allocations: 59.39 kB / 0.5641 GB, free: 1.105 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.382e-05/0.2837, allocations: 97.86 kB / 0.5642 GB, free: 1 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.013e-05/0.2838, allocations: 29.7 kB / 0.5643 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.707e-05/0.2838, allocations: 84.14 kB / 0.5643 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.411e-05/0.2838, allocations: 24 kB / 0.5644 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.755e-05/0.2839, allocations: 29.7 kB / 0.5644 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.284, allocations: 318.8 kB / 0.5647 GB, free: 0.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.935e-05/0.2841, allocations: 49.69 kB / 0.5647 GB, free: 456 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001024/0.2842, allocations: 111 kB / 0.5648 GB, free: 316 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001982/0.2844, allocations: 156.3 kB / 0.565 GB, free: 128 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2844, allocations: 0 / 0.565 GB, free: 128 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002634/0.2846, allocations: 192.8 kB / 0.5652 GB, free: 15.92 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/0.2847, allocations: 29.7 kB / 0.5652 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.2847, allocations: 4 kB / 0.5652 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.2847, allocations: 0 / 0.5652 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.2848, allocations: 23.92 kB / 0.5652 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.2848, allocations: 0 / 0.5652 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.162e-05/0.2849, allocations: 11.95 kB / 0.5652 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.925e-05/0.2849, allocations: 8 kB / 0.5652 GB, free: 15.84 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.0001426/0.285, allocations: 127.1 kB / 0.5654 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.948e-05/0.2851, allocations: 7.891 kB / 0.5654 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.954e-05/0.2851, allocations: 19.98 kB / 0.5654 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2851, allocations: 0 / 0.5654 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2851, allocations: 0 / 0.5654 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.2851, allocations: 0 / 0.5654 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001588/0.2853, allocations: 136.8 kB / 0.5655 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.2853, allocations: 3.938 kB / 0.5655 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.625e-05/0.2853, allocations: 12.06 kB / 0.5655 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2853, allocations: 288 / 0.5655 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.2853, allocations: 3.984 kB / 0.5655 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.2853, allocations: 4 kB / 0.5655 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.2853, allocations: 7.875 kB / 0.5656 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002144/0.2855, allocations: 133 kB / 0.5657 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.16e-05/0.2855, allocations: 7.891 kB / 0.5657 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.2856, allocations: 4 kB / 0.5657 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/0.2858, allocations: 15.97 kB / 0.5657 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.016e-05/0.2858, allocations: 7.984 kB / 0.5657 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.2858, allocations: 12 kB / 0.5657 GB, free: 15.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.005e-05/0.2858, allocations: 79.28 kB / 0.5658 GB, free: 15.19 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2858, allocations: 0 / 0.5658 GB, free: 15.19 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002807/0.2861, allocations: 47.86 kB / 0.5659 GB, free: 15.14 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.0008225/0.2869, allocations: 0.7499 MB / 0.5666 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002135/0.2872, allocations: 156.9 kB / 0.5667 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2872, allocations: 0 / 0.5667 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.53e-05/0.2872, allocations: 27.98 kB / 0.5668 GB, free: 14.19 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001471/0.2874, allocations: 4 kB / 0.5668 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001485/0.2889, allocations: 1.545 MB / 0.5683 GB, free: 12.49 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.119e-05/0.2889, allocations: 75.77 kB / 0.5683 GB, free: 12.39 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.545e-05/0.289, allocations: 16.59 kB / 0.5684 GB, free: 12.38 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.654e-05/0.289, allocations: 15.44 kB / 0.5684 GB, free: 12.36 MB / 414.1 MB Notification: Performance of SimCode: time 2.7e-07/0.289, allocations: 0 / 0.5684 GB, free: 12.36 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02143/0.3104, allocations: 3.382 MB / 0.5717 GB, free: 9.098 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.19, allocations: 8 kB / 0.5717 GB, free: 9.09 MB / 414.1 MB " [Timeout remaining time 649] (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 --stepSize=0.000166639 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.917434655944817] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 11.354242207016796 11.380826864 11.094841541 Calling exit ...