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.001373/0.001373, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001622/0.001622, allocations: 216.5 kB / 24.53 MB, free: 4.012 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.407/1.407, allocations: 230.5 MB / 258.2 MB, free: 8.047 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.2164/0.2164, allocations: 46.93 MB / 361.6 MB, free: 4.223 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.002344/0.002344, allocations: 83.86 kB / 0.497 GB, free: 7.805 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.28, allocations: 66.09 MB / 0.5615 GB, free: 4.316 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001565/0.2816, allocations: 0.5344 MB / 0.562 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008559/0.2824, allocations: 446.6 kB / 0.5625 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.038e-05/0.2825, allocations: 3.938 kB / 0.5625 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.117e-05/0.2826, allocations: 3.984 kB / 0.5625 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001067/0.2827, allocations: 3.938 kB / 0.5625 GB, free: 3.336 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.0005631/0.2832, allocations: 182.9 kB / 0.5626 GB, free: 3.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001513/0.2834, allocations: 83.83 kB / 0.5627 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.388e-05/0.2834, allocations: 4 kB / 0.5627 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.078e-05/0.2835, allocations: 39.91 kB / 0.5628 GB, free: 3.035 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.863e-05/0.2835, allocations: 23.91 kB / 0.5628 GB, free: 3.012 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.863e-05/0.2835, allocations: 0 / 0.5628 GB, free: 3.012 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000256/0.2838, allocations: 135.8 kB / 0.5629 GB, free: 2.879 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.559e-05/0.2838, allocations: 11.98 kB / 0.5629 GB, free: 2.867 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.251e-05/0.2839, allocations: 35.83 kB / 0.563 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002097/0.2841, allocations: 133.5 kB / 0.5631 GB, free: 2.703 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.2841, allocations: 8 kB / 0.5631 GB, free: 2.695 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2841, allocations: 0 / 0.5631 GB, free: 2.695 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.2841, allocations: 0 / 0.5631 GB, free: 2.695 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.0004907/0.2846, allocations: 331.7 kB / 0.5634 GB, free: 2.332 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.2846, allocations: 8.031 kB / 0.5634 GB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.331e-05/0.2847, allocations: 192 / 0.5634 GB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.141e-05/0.2847, allocations: 42.73 kB / 0.5635 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.57e-05/0.2847, allocations: 12.88 kB / 0.5635 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001487/0.2849, allocations: 118.5 kB / 0.5636 GB, free: 2.121 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.761e-06/0.2849, allocations: 4.375 kB / 0.5636 GB, free: 2.117 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.313e-05/0.2849, allocations: 8.312 kB / 0.5636 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.2851, allocations: 105.9 kB / 0.5637 GB, free: 2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.2851, allocations: 0 / 0.5637 GB, free: 2 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/0.2851, allocations: 0 / 0.5637 GB, free: 2 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.2851, allocations: 4 kB / 0.5637 GB, free: 1.996 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.092e-05/0.2852, allocations: 19.98 kB / 0.5637 GB, free: 1.977 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001697/0.2854, allocations: 136.7 kB / 0.5638 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.647e-05/0.2855, allocations: 46.55 kB / 0.5639 GB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.298e-05/0.2855, allocations: 16.92 kB / 0.5639 GB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.287e-06/0.2855, allocations: 0 / 0.5639 GB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002516/0.2858, allocations: 135.2 kB / 0.564 GB, free: 1.582 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.2858, allocations: 8 kB / 0.564 GB, free: 1.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002806/0.286, allocations: 121.5 kB / 0.5642 GB, free: 1.449 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/0.2861, allocations: 59.41 kB / 0.5642 GB, free: 1.379 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.65e-05/0.2862, allocations: 97.84 kB / 0.5643 GB, free: 1.273 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.2862, allocations: 33.7 kB / 0.5643 GB, free: 1.234 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.931e-05/0.2862, allocations: 80.14 kB / 0.5644 GB, free: 1.152 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.252e-05/0.2863, allocations: 27.98 kB / 0.5644 GB, free: 1.125 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.478e-05/0.2863, allocations: 33.7 kB / 0.5645 GB, free: 1.086 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.2865, allocations: 318.8 kB / 0.5648 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.767e-05/0.2865, allocations: 19.98 kB / 0.5648 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.672e-05/0.2866, allocations: 85.25 kB / 0.5649 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001981/0.2868, allocations: 152.4 kB / 0.565 GB, free: 472 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2868, allocations: 0 / 0.565 GB, free: 472 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002345/0.287, allocations: 167.1 kB / 0.5652 GB, free: 292 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.316e-05/0.2871, allocations: 29.7 kB / 0.5652 GB, free: 256 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.2871, allocations: 4 kB / 0.5652 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.2871, allocations: 4 kB / 0.5652 GB, free: 248 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.2872, allocations: 19.92 kB / 0.5652 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.2872, allocations: 0 / 0.5652 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.031e-05/0.2873, allocations: 15.89 kB / 0.5653 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.2873, allocations: 8.281 kB / 0.5653 GB, free: 204 kB / 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.0001547/0.2874, allocations: 130 kB / 0.5654 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.099e-05/0.2875, allocations: 11.89 kB / 0.5654 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.525e-05/0.2875, allocations: 12 kB / 0.5654 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.2875, allocations: 0 / 0.5654 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2875, allocations: 0 / 0.5654 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.2875, allocations: 0 / 0.5654 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001725/0.2877, allocations: 144.7 kB / 0.5655 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.2877, allocations: 3.938 kB / 0.5656 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.351e-05/0.2877, allocations: 8 kB / 0.5656 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.2877, allocations: 4.172 kB / 0.5656 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.2877, allocations: 0 / 0.5656 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.2877, allocations: 4 kB / 0.5656 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2877, allocations: 0 / 0.5656 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002046/0.2879, allocations: 129 kB / 0.5657 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.478e-05/0.2879, allocations: 11.89 kB / 0.5657 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.238e-05/0.288, allocations: 8 kB / 0.5657 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001972/0.2882, allocations: 19.97 kB / 0.5657 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.409e-05/0.2882, allocations: 3.984 kB / 0.5657 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.2882, allocations: 8 kB / 0.5657 GB, free: 15.64 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.065e-05/0.2882, allocations: 79.28 kB / 0.5658 GB, free: 15.56 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2882, allocations: 0 / 0.5658 GB, free: 15.56 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000283/0.2885, allocations: 47.86 kB / 0.5659 GB, free: 15.51 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.0008072/0.2893, allocations: 0.7607 MB / 0.5666 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002039/0.2895, allocations: 119.6 kB / 0.5667 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2895, allocations: 4.062 kB / 0.5667 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.415e-05/0.2896, allocations: 31.92 kB / 0.5668 GB, free: 14.58 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001526/0.2898, allocations: 8 kB / 0.5668 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/0.2912, allocations: 1.426 MB / 0.5682 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.2915, allocations: 0.6924 MB / 0.5688 GB, free: 12.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.503e-05/0.2915, allocations: 12.66 kB / 0.5688 GB, free: 12.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.719e-05/0.2915, allocations: 19.42 kB / 0.5689 GB, free: 12.26 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2915, allocations: 0 / 0.5689 GB, free: 12.26 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02125/0.3128, allocations: 3.207 MB / 0.572 GB, free: 9.164 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.09, allocations: 14.66 kB / 0.572 GB, free: 9.156 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.86733441799879] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 11.256161184050143 11.281638672 10.992693429 Calling exit ...