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.00135/0.00135, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001573/0.001573, allocations: 212.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 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.491/1.491, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.2289/0.2289, allocations: 46.94 MB / 360.9 MB, free: 4.25 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.0022/0.0022, allocations: 71.89 kB / 0.4962 GB, free: 7.895 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.357, allocations: 66.04 MB / 0.5606 GB, free: 4.613 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001734/0.3587, allocations: 0.541 MB / 0.5612 GB, free: 4.074 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009669/0.3597, allocations: 450.6 kB / 0.5616 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.418e-05/0.3597, allocations: 0 / 0.5616 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.677e-05/0.3598, allocations: 7.938 kB / 0.5616 GB, free: 3.625 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001264/0.3599, allocations: 4 kB / 0.5616 GB, free: 3.621 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.0006605/0.3606, allocations: 183.3 kB / 0.5618 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001716/0.3607, allocations: 87.78 kB / 0.5619 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.768e-05/0.3608, allocations: 0 / 0.5619 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.264e-05/0.3608, allocations: 39.95 kB / 0.5619 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.218e-05/0.3609, allocations: 19.92 kB / 0.5619 GB, free: 3.301 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.126e-05/0.3609, allocations: 0 / 0.5619 GB, free: 3.301 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002898/0.3612, allocations: 147.7 kB / 0.5621 GB, free: 3.156 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.473e-05/0.3613, allocations: 19.97 kB / 0.5621 GB, free: 3.137 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.132e-05/0.3613, allocations: 23.84 kB / 0.5621 GB, free: 3.113 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002414/0.3616, allocations: 133.8 kB / 0.5622 GB, free: 2.984 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.3616, allocations: 0 / 0.5622 GB, free: 2.984 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.3616, allocations: 0 / 0.5622 GB, free: 2.984 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.3616, allocations: 0 / 0.5622 GB, free: 2.984 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.0005661/0.3621, allocations: 335.7 kB / 0.5626 GB, free: 2.617 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.3622, allocations: 8.031 kB / 0.5626 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.63e-05/0.3622, allocations: 38.75 kB / 0.5626 GB, free: 2.562 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.469e-05/0.3623, allocations: 12.89 kB / 0.5626 GB, free: 2.551 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001878/0.3625, allocations: 126.4 kB / 0.5627 GB, free: 2.402 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.3625, allocations: 4.375 kB / 0.5627 GB, free: 2.398 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.643e-05/0.3625, allocations: 4.375 kB / 0.5628 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002055/0.3627, allocations: 94.12 kB / 0.5628 GB, free: 2.297 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.3627, allocations: 3.938 kB / 0.5628 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/0.3627, allocations: 0 / 0.5628 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.3627, allocations: 0 / 0.5628 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.834e-05/0.3628, allocations: 27.97 kB / 0.5629 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001902/0.363, allocations: 140.7 kB / 0.563 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.159e-05/0.3631, allocations: 42.5 kB / 0.563 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.547e-05/0.3631, allocations: 20.84 kB / 0.5631 GB, free: 2.012 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.798e-05/0.3631, allocations: 4.062 kB / 0.5631 GB, free: 2.008 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002839/0.3634, allocations: 131.2 kB / 0.5632 GB, free: 1.867 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.193e-06/0.3634, allocations: 0 / 0.5632 GB, free: 1.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003063/0.3637, allocations: 121.6 kB / 0.5633 GB, free: 1.742 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.638e-05/0.3638, allocations: 63.33 kB / 0.5634 GB, free: 1.668 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.442e-05/0.3639, allocations: 101.8 kB / 0.5635 GB, free: 1.559 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.7e-05/0.3639, allocations: 33.69 kB / 0.5635 GB, free: 1.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.649e-05/0.3639, allocations: 80.14 kB / 0.5636 GB, free: 1.438 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.463e-05/0.364, allocations: 24 kB / 0.5636 GB, free: 1.414 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.429e-05/0.364, allocations: 41.7 kB / 0.5636 GB, free: 1.367 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.3642, allocations: 314.8 kB / 0.5639 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.24e-05/0.3642, allocations: 23.98 kB / 0.564 GB, free: 1.027 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.351e-05/0.3643, allocations: 74.8 kB / 0.564 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002104/0.3645, allocations: 148.4 kB / 0.5642 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.3645, allocations: 4 kB / 0.5642 GB, free: 0.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002344/0.3648, allocations: 167.1 kB / 0.5643 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.82e-05/0.3648, allocations: 29.7 kB / 0.5644 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3648, allocations: 4 kB / 0.5644 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.3648, allocations: 192 / 0.5644 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.365, allocations: 19.98 kB / 0.5644 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.365, allocations: 0 / 0.5644 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.536e-05/0.365, allocations: 16.17 kB / 0.5644 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.365, allocations: 7.938 kB / 0.5644 GB, free: 0.4922 MB / 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.0001566/0.3652, allocations: 134 kB / 0.5645 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.918e-05/0.3652, allocations: 11.89 kB / 0.5646 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.858e-05/0.3653, allocations: 12.05 kB / 0.5646 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.3653, allocations: 3.938 kB / 0.5646 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3653, allocations: 0 / 0.5646 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3653, allocations: 4 kB / 0.5646 GB, free: 324 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.3654, allocations: 140.7 kB / 0.5647 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.3654, allocations: 0 / 0.5647 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.967e-05/0.3655, allocations: 11.92 kB / 0.5647 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.3655, allocations: 0 / 0.5647 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-06/0.3655, allocations: 3.938 kB / 0.5647 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3655, allocations: 0 / 0.5647 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3655, allocations: 4 kB / 0.5647 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002231/0.3657, allocations: 129.1 kB / 0.5648 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.67e-05/0.3657, allocations: 15.89 kB / 0.5649 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.995e-05/0.3657, allocations: 3.984 kB / 0.5649 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.3659, allocations: 15.98 kB / 0.5649 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.848e-05/0.3659, allocations: 7.984 kB / 0.5649 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.366, allocations: 11.92 kB / 0.5649 GB, free: 15.92 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.191e-05/0.366, allocations: 79.28 kB / 0.565 GB, free: 15.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.366, allocations: 0 / 0.565 GB, free: 15.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002959/0.3663, allocations: 43.88 kB / 0.565 GB, free: 15.8 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.000856/0.3672, allocations: 0.7579 MB / 0.5658 GB, free: 15.03 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002214/0.3674, allocations: 119.3 kB / 0.5659 GB, free: 14.9 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3674, allocations: 0 / 0.5659 GB, free: 14.9 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.652e-05/0.3675, allocations: 31.92 kB / 0.5659 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001659/0.3676, allocations: 11.98 kB / 0.5659 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.3693, allocations: 1.434 MB / 0.5673 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.3696, allocations: 0.689 MB / 0.568 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.277e-05/0.3696, allocations: 12.66 kB / 0.568 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.199e-05/0.3697, allocations: 15.38 kB / 0.568 GB, free: 12.55 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3697, allocations: 0 / 0.568 GB, free: 12.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03225/0.4019, allocations: 3.186 MB / 0.5711 GB, free: 9.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.34, allocations: 6.641 kB / 0.5711 GB, free: 9.496 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.383997936965898]