Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0008834/0.0008834, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001204/0.001204, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.906/0.906, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.268/0.268, allocations: 32.8 MB / 293.5 MB, free: 1.234 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 0 / 439.6 MB, free: 4.266 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.539e-05/2.723e-05, allocations: 12.55 kB / 439.6 MB, free: 4.254 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001971/0.001998, allocations: 0.5362 MB / 440.1 MB, free: 3.719 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009006/0.002899, allocations: 422.4 kB / 440.5 MB, free: 3.305 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.148e-05/0.00294, allocations: 0 / 440.5 MB, free: 3.305 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 8.478e-05/0.003025, allocations: 3.938 kB / 440.5 MB, free: 3.301 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001398/0.003165, allocations: 11.91 kB / 440.5 MB, free: 3.289 MB / 410.7 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.0008439/0.004009, allocations: 183 kB / 440.7 MB, free: 3.113 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001749/0.004184, allocations: 83.84 kB / 440.8 MB, free: 3.031 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.217e-05/0.004226, allocations: 3.984 kB / 440.8 MB, free: 3.027 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.004326, allocations: 47.95 kB / 440.9 MB, free: 2.98 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.595e-05/0.004392, allocations: 15.92 kB / 440.9 MB, free: 2.965 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.88e-05/0.004421, allocations: 4 kB / 440.9 MB, free: 2.961 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003017/0.004723, allocations: 127.7 kB / 441 MB, free: 2.836 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.355e-05/0.004776, allocations: 23.95 kB / 441 MB, free: 2.812 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.397e-05/0.00481, allocations: 19.98 kB / 441 MB, free: 2.793 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002062/0.005016, allocations: 159.6 kB / 441.2 MB, free: 2.637 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.005019, allocations: 0 / 441.2 MB, free: 2.637 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.00502, allocations: 0 / 441.2 MB, free: 2.637 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.005024, allocations: 3.938 kB / 441.2 MB, free: 2.633 MB / 410.7 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.000451/0.005475, allocations: 335.8 kB / 441.5 MB, free: 2.266 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.005511, allocations: 8.031 kB / 441.5 MB, free: 2.258 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.787e-05/0.005539, allocations: 30.75 kB / 441.6 MB, free: 2.219 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.866e-05/0.005587, allocations: 12.89 kB / 441.6 MB, free: 2.207 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.005718, allocations: 125.7 kB / 441.7 MB, free: 2.059 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.166e-06/0.005726, allocations: 4.375 kB / 441.7 MB, free: 2.055 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.181e-05/0.005738, allocations: 4.375 kB / 441.7 MB, free: 2.051 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001512/0.005889, allocations: 90.19 kB / 441.8 MB, free: 1.957 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.321e-06/0.005896, allocations: 192 / 441.8 MB, free: 1.957 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.00591, allocations: 4.375 kB / 441.8 MB, free: 1.953 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.005916, allocations: 4.125 kB / 441.8 MB, free: 1.949 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.371e-05/0.00597, allocations: 27.91 kB / 441.8 MB, free: 1.922 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000134/0.006104, allocations: 132.7 kB / 442 MB, free: 1.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.763e-05/0.006171, allocations: 46.5 kB / 442 MB, free: 1.695 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.095e-05/0.006202, allocations: 20.92 kB / 442 MB, free: 1.672 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.423e-05/0.006216, allocations: 3.984 kB / 442 MB, free: 1.668 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002049/0.006421, allocations: 127.3 kB / 442.2 MB, free: 1.531 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 1.824e-06/0.006423, allocations: 3.984 kB / 442.2 MB, free: 1.527 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002877/0.006711, allocations: 133.5 kB / 442.3 MB, free: 1.391 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.496e-05/0.006746, allocations: 63.39 kB / 442.4 MB, free: 1.316 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.201e-05/0.006798, allocations: 97.86 kB / 442.5 MB, free: 1.211 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.006816, allocations: 29.7 kB / 442.5 MB, free: 1.176 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.821e-05/0.006844, allocations: 92.27 kB / 442.6 MB, free: 1.082 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.401e-05/0.006868, allocations: 23.86 kB / 442.6 MB, free: 1.059 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.69e-05/0.006905, allocations: 29.7 kB / 442.6 MB, free: 1.023 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.077e-05/0.006986, allocations: 318.8 kB / 442.9 MB, free: 0.7031 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.431e-05/0.00703, allocations: 49.67 kB / 443 MB, free: 0.6484 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.125e-05/0.007092, allocations: 100.6 kB / 443.1 MB, free: 0.5195 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001419/0.007233, allocations: 152.4 kB / 443.2 MB, free: 348 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.007235, allocations: 0 / 443.2 MB, free: 348 kB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001549/0.00739, allocations: 184.9 kB / 443.4 MB, free: 144 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.007416, allocations: 33.7 kB / 443.4 MB, free: 104 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.007422, allocations: 4 kB / 443.4 MB, free: 100 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.007435, allocations: 3.938 kB / 443.5 MB, free: 96 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.274e-05/0.007527, allocations: 15.98 kB / 443.5 MB, free: 80 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.007534, allocations: 12.16 kB / 443.5 MB, free: 68 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.734e-05/0.007571, allocations: 19.83 kB / 443.5 MB, free: 48 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/0.007581, allocations: 7.984 kB / 443.5 MB, free: 40 kB / 410.7 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.1801/0.1877, allocations: 119.4 kB / 443.6 MB, free: 45.94 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.602e-05/0.1878, allocations: 5.891 kB / 443.6 MB, free: 45.94 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.349e-05/0.1878, allocations: 11.36 kB / 443.6 MB, free: 45.94 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.1878, allocations: 7.172 kB / 443.6 MB, free: 45.94 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1878, allocations: 2.688 kB / 443.7 MB, free: 45.94 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.1878, allocations: 1.969 kB / 443.7 MB, free: 45.94 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.879e-05/0.1879, allocations: 132.6 kB / 443.8 MB, free: 45.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.1879, allocations: 0 / 443.8 MB, free: 45.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.432e-05/0.188, allocations: 11.02 kB / 443.8 MB, free: 45.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.188, allocations: 0 / 443.8 MB, free: 45.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.188, allocations: 6.219 kB / 443.8 MB, free: 45.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.188, allocations: 2.656 kB / 443.8 MB, free: 45.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.188, allocations: 3.844 kB / 443.8 MB, free: 45.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001616/0.1881, allocations: 131.9 kB / 443.9 MB, free: 45.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.005e-06/0.1881, allocations: 3.547 kB / 443.9 MB, free: 45.72 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.1882, allocations: 7.344 kB / 443.9 MB, free: 45.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.1883, allocations: 22.88 kB / 444 MB, free: 45.72 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.071e-05/0.1883, allocations: 5.312 kB / 444 MB, free: 45.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.405e-05/0.1883, allocations: 11.44 kB / 444 MB, free: 45.72 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.771e-05/0.1883, allocations: 81.92 kB / 444.1 MB, free: 45.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1883, allocations: 1.125 kB / 444.1 MB, free: 45.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002297/0.1885, allocations: 44.44 kB / 444.1 MB, free: 45.64 MB / 410.7 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.0004826/0.189, allocations: 0.7645 MB / 444.9 MB, free: 45.06 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001548/0.1892, allocations: 153.2 kB / 445 MB, free: 44.96 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1892, allocations: 0 / 445 MB, free: 44.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.452e-05/0.1892, allocations: 29.5 kB / 445.1 MB, free: 44.96 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001313/0.1894, allocations: 10.42 kB / 445.1 MB, free: 44.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000859/0.1902, allocations: 1.55 MB / 446.6 MB, free: 43.62 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.546e-05/0.1902, allocations: 71.67 kB / 446.7 MB, free: 43.55 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.324e-05/0.1903, allocations: 18.16 kB / 446.7 MB, free: 43.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.654e-05/0.1903, allocations: 15.38 kB / 446.7 MB, free: 43.54 MB / 410.7 MB Notification: Performance of SimCode: time 8.12e-07/0.1903, allocations: 0 / 446.7 MB, free: 43.54 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01602/0.2063, allocations: 3.851 MB / 450.6 MB, free: 42.47 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.817/7.023, allocations: 9.562 kB / 450.6 MB, free: 42.46 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --stepSize=0.000166639 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 9.017462592571974]