Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001854/0.001854, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002471/0.002471, allocations: 201.2 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.451/1.451, allocations: 230.6 MB / 257.5 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2431/0.2431, allocations: 46.95 MB / 360.9 MB, free: 4.016 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 67.91 kB / 0.4961 GB, free: 7.711 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.3478, allocations: 66.03 MB / 0.5606 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001808/0.3496, allocations: 0.5344 MB / 0.5611 GB, free: 3.684 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009485/0.3506, allocations: 426.7 kB / 0.5615 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.142e-05/0.3506, allocations: 3.938 kB / 0.5615 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.804e-05/0.3507, allocations: 4 kB / 0.5615 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001232/0.3508, allocations: 11.92 kB / 0.5615 GB, free: 3.246 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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.0006585/0.3515, allocations: 179 kB / 0.5617 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000181/0.3517, allocations: 75.92 kB / 0.5618 GB, free: 3 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.572e-05/0.3517, allocations: 3.984 kB / 0.5618 GB, free: 2.996 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.732e-05/0.3518, allocations: 43.91 kB / 0.5618 GB, free: 2.953 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.432e-05/0.3518, allocations: 23.84 kB / 0.5618 GB, free: 2.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.487e-05/0.3519, allocations: 4 kB / 0.5619 GB, free: 2.926 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002728/0.3521, allocations: 135.8 kB / 0.562 GB, free: 2.793 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.259e-05/0.3522, allocations: 23.97 kB / 0.562 GB, free: 2.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.265e-05/0.3523, allocations: 23.91 kB / 0.562 GB, free: 2.746 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002415/0.3525, allocations: 133.5 kB / 0.5622 GB, free: 2.617 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.3525, allocations: 0 / 0.5622 GB, free: 2.617 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.3525, allocations: 0 / 0.5622 GB, free: 2.617 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.3525, allocations: 3.938 kB / 0.5622 GB, free: 2.613 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.0005812/0.3531, allocations: 339.7 kB / 0.5625 GB, free: 2.242 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.3531, allocations: 8.031 kB / 0.5625 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.521e-05/0.3532, allocations: 34.75 kB / 0.5625 GB, free: 2.191 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.956e-05/0.3532, allocations: 12.88 kB / 0.5625 GB, free: 2.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001902/0.3534, allocations: 126.5 kB / 0.5627 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.3534, allocations: 384 / 0.5627 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.3534, allocations: 4.375 kB / 0.5627 GB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002016/0.3536, allocations: 86.2 kB / 0.5627 GB, free: 1.938 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.3537, allocations: 3.938 kB / 0.5627 GB, free: 1.934 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.157e-05/0.3537, allocations: 7.984 kB / 0.5628 GB, free: 1.926 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.3537, allocations: 0 / 0.5628 GB, free: 1.926 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.581e-05/0.3537, allocations: 23.92 kB / 0.5628 GB, free: 1.902 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001892/0.3539, allocations: 136.7 kB / 0.5629 GB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001018/0.354, allocations: 42.55 kB / 0.5629 GB, free: 1.676 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.938e-05/0.3541, allocations: 24.91 kB / 0.563 GB, free: 1.648 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.3541, allocations: 4 kB / 0.563 GB, free: 1.645 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002809/0.3544, allocations: 135.3 kB / 0.5631 GB, free: 1.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.3544, allocations: 0 / 0.5631 GB, free: 1.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003228/0.3547, allocations: 129.5 kB / 0.5632 GB, free: 1.367 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.944e-05/0.3548, allocations: 59.41 kB / 0.5633 GB, free: 1.297 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.026e-05/0.3548, allocations: 97.84 kB / 0.5634 GB, free: 1.191 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.84e-05/0.3549, allocations: 33.7 kB / 0.5634 GB, free: 1.152 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.6e-05/0.3549, allocations: 84.14 kB / 0.5635 GB, free: 1.066 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.284e-05/0.355, allocations: 19.86 kB / 0.5635 GB, free: 1.047 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.811e-05/0.355, allocations: 29.7 kB / 0.5635 GB, free: 1.012 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3552, allocations: 322.8 kB / 0.5638 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.975e-05/0.3552, allocations: 45.69 kB / 0.5639 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001039/0.3553, allocations: 108.5 kB / 0.564 GB, free: 0.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/0.3555, allocations: 144.4 kB / 0.5641 GB, free: 336 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.3555, allocations: 8 kB / 0.5641 GB, free: 328 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002476/0.3558, allocations: 189.1 kB / 0.5643 GB, free: 120 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.683e-05/0.3558, allocations: 33.7 kB / 0.5644 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.3558, allocations: 0 / 0.5644 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.3558, allocations: 12.16 kB / 0.5644 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.356, allocations: 19.92 kB / 0.5644 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.356, allocations: 4 kB / 0.5644 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.311e-05/0.356, allocations: 15.89 kB / 0.5644 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.289e-05/0.356, allocations: 4 kB / 0.5644 GB, free: 24 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.0001751/0.3562, allocations: 125.8 kB / 0.5645 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.007e-05/0.3562, allocations: 15.83 kB / 0.5645 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.605e-05/0.3563, allocations: 8.062 kB / 0.5645 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.3563, allocations: 4 kB / 0.5646 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3563, allocations: 0 / 0.5646 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.3563, allocations: 0 / 0.5646 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001607/0.3564, allocations: 136.7 kB / 0.5647 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3564, allocations: 4 kB / 0.5647 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.003e-05/0.3565, allocations: 11.92 kB / 0.5647 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.3565, allocations: 0 / 0.5647 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.3565, allocations: 0 / 0.5647 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3565, allocations: 0 / 0.5647 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3565, allocations: 0 / 0.5647 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002202/0.3567, allocations: 137 kB / 0.5648 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.13e-05/0.3567, allocations: 11.89 kB / 0.5648 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.333e-05/0.3567, allocations: 7.984 kB / 0.5648 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.357, allocations: 19.92 kB / 0.5649 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.88e-05/0.357, allocations: 7.984 kB / 0.5649 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.746e-05/0.357, allocations: 7.984 kB / 0.5649 GB, free: 15.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.346e-05/0.3571, allocations: 79.47 kB / 0.565 GB, free: 15.38 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3571, allocations: 4 kB / 0.565 GB, free: 15.38 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002889/0.3573, allocations: 39.88 kB / 0.565 GB, free: 15.34 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.0009143/0.3583, allocations: 0.7609 MB / 0.5657 GB, free: 14.58 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002603/0.3585, allocations: 156.9 kB / 0.5659 GB, free: 14.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3585, allocations: 0 / 0.5659 GB, free: 14.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.561e-05/0.3586, allocations: 20 kB / 0.5659 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000163/0.3587, allocations: 16.41 kB / 0.5659 GB, free: 14.37 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.3603, allocations: 1.542 MB / 0.5674 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.894e-05/0.3604, allocations: 67.34 kB / 0.5675 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.646e-05/0.3604, allocations: 12.66 kB / 0.5675 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.169e-05/0.3605, allocations: 23.36 kB / 0.5675 GB, free: 12.55 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3605, allocations: 4 kB / 0.5675 GB, free: 12.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02957/0.3901, allocations: 3.725 MB / 0.5712 GB, free: 8.969 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.29, allocations: 10.55 kB / 0.5712 GB, free: 8.961 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --stepSize=0.000166639 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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.309196074987995]