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.001797/0.001797, allocations: 116.7 kB / 20.43 MB, free: 1.457 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.002044/0.002044, allocations: 214.6 kB / 23.74 MB, free: 4.672 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.466/1.466, allocations: 230.5 MB / 257.4 MB, free: 7.988 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.2266/0.2266, allocations: 46.92 MB / 360.8 MB, free: 4.172 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="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 0.002305/0.002305, allocations: 79.88 kB / 0.4962 GB, free: 7.742 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3733/0.3756, allocations: 66.08 MB / 0.5607 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001953/0.3776, allocations: 0.5344 MB / 0.5613 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001139/0.3787, allocations: 454.6 kB / 0.5617 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.861e-05/0.3788, allocations: 0 / 0.5617 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.3789, allocations: 0 / 0.5617 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001827/0.3791, allocations: 11.94 kB / 0.5617 GB, free: 3.273 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.0008099/0.3799, allocations: 174.8 kB / 0.5619 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002/0.3801, allocations: 87.84 kB / 0.5619 GB, free: 3.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.129e-05/0.3801, allocations: 3.938 kB / 0.562 GB, free: 3.016 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.413e-05/0.3802, allocations: 39.95 kB / 0.562 GB, free: 2.977 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.383e-05/0.3803, allocations: 19.92 kB / 0.562 GB, free: 2.957 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.767e-05/0.3803, allocations: 4 kB / 0.562 GB, free: 2.953 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002837/0.3806, allocations: 131.8 kB / 0.5621 GB, free: 2.824 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.283e-05/0.3807, allocations: 23.97 kB / 0.5622 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.295e-05/0.3807, allocations: 35.78 kB / 0.5622 GB, free: 2.766 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002655/0.381, allocations: 125.5 kB / 0.5623 GB, free: 2.645 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.381, allocations: 4 kB / 0.5623 GB, free: 2.641 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.381, allocations: 0 / 0.5623 GB, free: 2.641 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.381, allocations: 0 / 0.5623 GB, free: 2.641 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.0007005/0.3817, allocations: 331.7 kB / 0.5626 GB, free: 2.277 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.3818, allocations: 16.02 kB / 0.5627 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.015e-05/0.3818, allocations: 30.75 kB / 0.5627 GB, free: 2.223 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.052e-05/0.3819, allocations: 20.83 kB / 0.5627 GB, free: 2.203 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.382, allocations: 122.5 kB / 0.5628 GB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.3821, allocations: 4.375 kB / 0.5628 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.55e-05/0.3821, allocations: 384 / 0.5628 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002223/0.3823, allocations: 98.11 kB / 0.5629 GB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.3823, allocations: 3.938 kB / 0.5629 GB, free: 1.949 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.3823, allocations: 4 kB / 0.5629 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.3823, allocations: 4 kB / 0.5629 GB, free: 1.941 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.454e-05/0.3824, allocations: 23.97 kB / 0.563 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001903/0.3826, allocations: 136.7 kB / 0.5631 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.33e-05/0.3827, allocations: 46.56 kB / 0.5631 GB, free: 1.688 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.484e-05/0.3827, allocations: 20.91 kB / 0.5631 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.533e-05/0.3827, allocations: 0 / 0.5631 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000301/0.383, allocations: 139.2 kB / 0.5633 GB, free: 1.516 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.132e-06/0.383, allocations: 0 / 0.5633 GB, free: 1.516 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002953/0.3833, allocations: 117.5 kB / 0.5634 GB, free: 1.395 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.557e-05/0.3834, allocations: 59.39 kB / 0.5634 GB, free: 1.324 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.715e-05/0.3835, allocations: 101.8 kB / 0.5635 GB, free: 1.215 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.3835, allocations: 33.7 kB / 0.5636 GB, free: 1.176 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.411e-05/0.3836, allocations: 84.12 kB / 0.5637 GB, free: 1.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.679e-05/0.3836, allocations: 24 kB / 0.5637 GB, free: 1.066 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.224e-05/0.3837, allocations: 37.7 kB / 0.5637 GB, free: 1.023 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.3838, allocations: 318.8 kB / 0.564 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.251e-05/0.3839, allocations: 23.98 kB / 0.564 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.384, allocations: 74.73 kB / 0.5641 GB, free: 0.582 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002206/0.3842, allocations: 152.4 kB / 0.5643 GB, free: 412 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3842, allocations: 4 kB / 0.5643 GB, free: 408 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002281/0.3844, allocations: 155.2 kB / 0.5644 GB, free: 240 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.271e-05/0.3845, allocations: 35.58 kB / 0.5644 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.3845, allocations: 4 kB / 0.5644 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.726e-05/0.3845, allocations: 4 kB / 0.5645 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001568/0.3847, allocations: 20.2 kB / 0.5645 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.3847, allocations: 4 kB / 0.5645 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.117e-05/0.3847, allocations: 4.172 kB / 0.5645 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.204e-05/0.3847, allocations: 19.94 kB / 0.5645 GB, free: 144 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.000223/0.385, allocations: 131.8 kB / 0.5646 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.739e-05/0.385, allocations: 11.89 kB / 0.5646 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.744e-05/0.3851, allocations: 8.062 kB / 0.5646 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.3851, allocations: 3.984 kB / 0.5646 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.3851, allocations: 0 / 0.5646 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3851, allocations: 0 / 0.5646 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001877/0.3853, allocations: 140.7 kB / 0.5648 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3853, allocations: 3.938 kB / 0.5648 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.772e-05/0.3853, allocations: 7.984 kB / 0.5648 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.3853, allocations: 0 / 0.5648 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.086e-05/0.3853, allocations: 12.06 kB / 0.5648 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.3853, allocations: 0 / 0.5648 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3853, allocations: 192 / 0.5648 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002329/0.3856, allocations: 125 kB / 0.5649 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.115e-05/0.3856, allocations: 19.88 kB / 0.5649 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/0.3856, allocations: 4 kB / 0.5649 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001986/0.3858, allocations: 19.97 kB / 0.565 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.847e-05/0.3858, allocations: 3.984 kB / 0.565 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.3859, allocations: 4 kB / 0.565 GB, free: 15.58 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.761e-05/0.3859, allocations: 87.27 kB / 0.5651 GB, free: 15.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3859, allocations: 0 / 0.5651 GB, free: 15.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002978/0.3862, allocations: 43.88 kB / 0.5651 GB, free: 15.45 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.000848/0.3871, allocations: 0.7467 MB / 0.5658 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002469/0.3873, allocations: 131.2 kB / 0.566 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.3873, allocations: 4 kB / 0.566 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.707e-05/0.3874, allocations: 23.98 kB / 0.566 GB, free: 14.53 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001573/0.3875, allocations: 12.12 kB / 0.566 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001527/0.3891, allocations: 1.427 MB / 0.5674 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/0.3894, allocations: 0.6846 MB / 0.5681 GB, free: 12.25 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.375e-05/0.3894, allocations: 16.64 kB / 0.5681 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.501e-05/0.3895, allocations: 19.42 kB / 0.5681 GB, free: 12.21 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3895, allocations: 0 / 0.5681 GB, free: 12.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02876/0.4183, allocations: 3.186 MB / 0.5712 GB, free: 9.129 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.38, allocations: 12 kB / 0.5712 GB, free: 9.117 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] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 14.391959044151008]