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.001466/0.001466, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001592/0.001592, allocations: 214.6 kB / 23.73 MB, free: 4.164 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.469/1.469, allocations: 230.5 MB / 257.4 MB, free: 7.773 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.2407/0.2407, allocations: 46.95 MB / 360.8 MB, free: 3.934 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.002347/0.002347, allocations: 75.88 kB / 0.4962 GB, free: 7.555 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3352, allocations: 66.08 MB / 0.5607 GB, free: 4.023 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001992/0.3372, allocations: 0.5382 MB / 0.5612 GB, free: 3.488 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001058/0.3383, allocations: 426.7 kB / 0.5616 GB, free: 3.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.533e-05/0.3383, allocations: 0 / 0.5616 GB, free: 3.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.715e-05/0.3384, allocations: 3.938 kB / 0.5616 GB, free: 3.066 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001364/0.3386, allocations: 7.875 kB / 0.5616 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.000698/0.3393, allocations: 174.9 kB / 0.5618 GB, free: 2.891 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001824/0.3394, allocations: 83.89 kB / 0.5619 GB, free: 2.809 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.532e-05/0.3395, allocations: 8 kB / 0.5619 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.744e-05/0.3396, allocations: 35.97 kB / 0.5619 GB, free: 2.766 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.769e-05/0.3396, allocations: 23.84 kB / 0.5619 GB, free: 2.742 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.518e-05/0.3397, allocations: 0 / 0.5619 GB, free: 2.742 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002739/0.3399, allocations: 127.8 kB / 0.5621 GB, free: 2.617 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.127e-05/0.34, allocations: 23.91 kB / 0.5621 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.776e-05/0.34, allocations: 27.89 kB / 0.5621 GB, free: 2.566 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002361/0.3403, allocations: 129.5 kB / 0.5622 GB, free: 2.441 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3403, allocations: 0 / 0.5622 GB, free: 2.441 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3403, allocations: 4 kB / 0.5622 GB, free: 2.438 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.3403, allocations: 7.875 kB / 0.5622 GB, free: 2.43 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.0005952/0.3409, allocations: 335.7 kB / 0.5626 GB, free: 2.062 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.3409, allocations: 8.031 kB / 0.5626 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.033e-05/0.341, allocations: 38.73 kB / 0.5626 GB, free: 2.008 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.236e-05/0.341, allocations: 8.891 kB / 0.5626 GB, free: 2 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001877/0.3412, allocations: 126.5 kB / 0.5627 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.3412, allocations: 4.375 kB / 0.5627 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.46e-05/0.3412, allocations: 384 / 0.5627 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002025/0.3414, allocations: 90.19 kB / 0.5628 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.3414, allocations: 3.938 kB / 0.5628 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.3415, allocations: 4 kB / 0.5628 GB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.3415, allocations: 4 kB / 0.5628 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.685e-05/0.3415, allocations: 27.92 kB / 0.5629 GB, free: 1.715 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000186/0.3417, allocations: 132.7 kB / 0.563 GB, free: 1.543 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001003/0.3418, allocations: 46.55 kB / 0.563 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.352e-05/0.3419, allocations: 16.92 kB / 0.5631 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.378e-05/0.3419, allocations: 0 / 0.5631 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002789/0.3422, allocations: 139.2 kB / 0.5632 GB, free: 1.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.333e-06/0.3422, allocations: 0 / 0.5632 GB, free: 1.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002928/0.3424, allocations: 125.5 kB / 0.5633 GB, free: 1.191 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.863e-05/0.3425, allocations: 55.41 kB / 0.5634 GB, free: 1.125 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.161e-05/0.3426, allocations: 105.8 kB / 0.5635 GB, free: 1.012 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.619e-05/0.3426, allocations: 33.7 kB / 0.5635 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.133e-05/0.3427, allocations: 80.14 kB / 0.5636 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.898e-05/0.3427, allocations: 27.98 kB / 0.5636 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.127e-05/0.3428, allocations: 33.7 kB / 0.5636 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.3429, allocations: 314.8 kB / 0.5639 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.565e-05/0.343, allocations: 53.69 kB / 0.564 GB, free: 460 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.3431, allocations: 107.2 kB / 0.5641 GB, free: 324 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002155/0.3433, allocations: 148.4 kB / 0.5642 GB, free: 144 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3433, allocations: 0 / 0.5642 GB, free: 144 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000275/0.3436, allocations: 193.1 kB / 0.5644 GB, free: 15.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/0.3436, allocations: 31.73 kB / 0.5644 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.3437, allocations: 4 kB / 0.5644 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.3437, allocations: 7.938 kB / 0.5645 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.3438, allocations: 23.98 kB / 0.5645 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.3438, allocations: 4 kB / 0.5645 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.995e-05/0.3438, allocations: 7.953 kB / 0.5645 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.949e-05/0.3439, allocations: 16.16 kB / 0.5645 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.0001605/0.344, allocations: 121.8 kB / 0.5646 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.915e-05/0.3441, allocations: 11.89 kB / 0.5646 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.553e-05/0.3441, allocations: 8.062 kB / 0.5646 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.3441, allocations: 3.938 kB / 0.5646 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.3441, allocations: 0 / 0.5646 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3441, allocations: 7.984 kB / 0.5646 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001578/0.3443, allocations: 132.8 kB / 0.5648 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3443, allocations: 0 / 0.5648 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.728e-05/0.3443, allocations: 11.94 kB / 0.5648 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.3443, allocations: 0 / 0.5648 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.3443, allocations: 7.984 kB / 0.5648 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3443, allocations: 0 / 0.5648 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3443, allocations: 192 / 0.5648 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002164/0.3445, allocations: 133 kB / 0.5649 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.569e-05/0.3445, allocations: 15.88 kB / 0.5649 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.3446, allocations: 0 / 0.5649 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.3448, allocations: 19.97 kB / 0.565 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.701e-05/0.3448, allocations: 7.984 kB / 0.565 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.3448, allocations: 8 kB / 0.565 GB, free: 15.28 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.35e-05/0.3448, allocations: 79.28 kB / 0.565 GB, free: 15.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3448, allocations: 0 / 0.565 GB, free: 15.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002749/0.3451, allocations: 47.86 kB / 0.5651 GB, free: 15.16 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.0008499/0.346, allocations: 0.7559 MB / 0.5658 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002469/0.3462, allocations: 152.9 kB / 0.566 GB, free: 14.22 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.3462, allocations: 4 kB / 0.566 GB, free: 14.22 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.194e-05/0.3463, allocations: 27.98 kB / 0.566 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.0001465/0.3464, allocations: 8.141 kB / 0.566 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001581/0.348, allocations: 1.536 MB / 0.5675 GB, free: 12.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.912e-05/0.3481, allocations: 71.34 kB / 0.5676 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.076e-05/0.3481, allocations: 16.64 kB / 0.5676 GB, free: 12.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.887e-05/0.3482, allocations: 19.42 kB / 0.5676 GB, free: 12.37 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3482, allocations: 0 / 0.5676 GB, free: 12.37 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02803/0.3762, allocations: 3.701 MB / 0.5712 GB, free: 8.777 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.71, allocations: 7.5 kB / 0.5712 GB, free: 8.773 MB / 414.1 MB " [Timeout remaining time 648] (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.913405915722251]