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.001179/0.001179, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009785/0.0009785, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8972/0.8972, allocations: 177 MB / 204.1 MB, free: 5.773 MB / 186.7 MB " [Timeout remaining time 179] 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.2376/0.2376, allocations: 34.25 MB / 294.8 MB, free: 0.6914 MB / 266.7 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 2.144e-06/2.144e-06, allocations: 0 / 442.2 MB, free: 1.59 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.521e-05/2.735e-05, allocations: 2.281 kB / 442.2 MB, free: 1.586 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001167/0.001195, allocations: 0.5346 MB / 442.7 MB, free: 1.055 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007098/0.001904, allocations: 422.4 kB / 443.1 MB, free: 0.6406 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.503e-05/0.001939, allocations: 0 / 443.1 MB, free: 0.6406 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 7.366e-05/0.002013, allocations: 7.938 kB / 443.1 MB, free: 0.6328 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.00213, allocations: 7.922 kB / 443.1 MB, free: 0.625 MB / 410.7 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.0005615/0.002692, allocations: 175.4 kB / 443.3 MB, free: 464 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000139/0.002831, allocations: 83.78 kB / 443.4 MB, free: 380 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.991e-05/0.002871, allocations: 11.98 kB / 443.4 MB, free: 368 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.659e-05/0.002937, allocations: 39.97 kB / 443.4 MB, free: 328 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.948e-05/0.002987, allocations: 15.97 kB / 443.4 MB, free: 312 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.143e-05/0.003008, allocations: 4 kB / 443.4 MB, free: 308 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.003198, allocations: 131.7 kB / 443.6 MB, free: 176 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.406e-05/0.003252, allocations: 23.91 kB / 443.6 MB, free: 152 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.659e-05/0.003289, allocations: 19.97 kB / 443.6 MB, free: 132 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1972/0.2005, allocations: 159.1 kB / 443.8 MB, free: 43.23 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2005, allocations: 0 / 443.8 MB, free: 43.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2005, allocations: 0 / 443.8 MB, free: 43.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.2005, allocations: 0 / 443.8 MB, free: 43.23 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.0004794/0.2009, allocations: 330.2 kB / 444.1 MB, free: 42.95 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.201, allocations: 11.72 kB / 444.1 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.747e-05/0.201, allocations: 39 kB / 444.1 MB, free: 42.91 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.198e-05/0.2011, allocations: 9.359 kB / 444.2 MB, free: 42.91 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.2012, allocations: 123 kB / 444.3 MB, free: 42.78 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.236e-06/0.2012, allocations: 1.219 kB / 444.3 MB, free: 42.78 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.264e-05/0.2012, allocations: 6.469 kB / 444.3 MB, free: 42.78 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001453/0.2013, allocations: 90.66 kB / 444.4 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.2013, allocations: 192 / 444.4 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.2014, allocations: 8.422 kB / 444.4 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.2014, allocations: 4.125 kB / 444.4 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.968e-05/0.2014, allocations: 21.03 kB / 444.4 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001181/0.2015, allocations: 130.6 kB / 444.5 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.062e-05/0.2016, allocations: 45.92 kB / 444.6 MB, free: 42.57 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.04e-05/0.2016, allocations: 26.19 kB / 444.6 MB, free: 42.56 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.2016, allocations: 0 / 444.6 MB, free: 42.56 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002237/0.2019, allocations: 133.7 kB / 444.7 MB, free: 42.52 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 1.093e-06/0.2019, allocations: 0 / 444.7 MB, free: 42.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.000217/0.2021, allocations: 134.1 kB / 444.9 MB, free: 42.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.793e-05/0.2021, allocations: 57.75 kB / 444.9 MB, free: 42.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.073e-05/0.2021, allocations: 102.8 kB / 445 MB, free: 42.32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.2022, allocations: 30.83 kB / 445.1 MB, free: 42.29 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.552e-05/0.2022, allocations: 83.39 kB / 445.1 MB, free: 42.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.446e-05/0.2022, allocations: 25.78 kB / 445.2 MB, free: 42.19 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.853e-05/0.2022, allocations: 34.66 kB / 445.2 MB, free: 42.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.468e-05/0.2023, allocations: 320.6 kB / 445.5 MB, free: 41.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.516e-05/0.2023, allocations: 49.53 kB / 445.6 MB, free: 41.83 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.382e-05/0.2024, allocations: 104.5 kB / 445.7 MB, free: 41.74 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001156/0.2025, allocations: 148.4 kB / 445.8 MB, free: 41.64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2025, allocations: 0 / 445.8 MB, free: 41.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001212/0.2026, allocations: 188.1 kB / 446 MB, free: 41.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.2026, allocations: 30.92 kB / 446 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.2026, allocations: 2.906 kB / 446 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.2026, allocations: 9.219 kB / 446 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.273e-05/0.2027, allocations: 23.81 kB / 446 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.2027, allocations: 4.312 kB / 446.1 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.767e-05/0.2027, allocations: 9.328 kB / 446.1 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.2028, allocations: 8.328 kB / 446.1 MB, free: 41.51 MB / 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 8.593e-05/0.2028, allocations: 132.7 kB / 446.2 MB, free: 41.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.526e-05/0.2029, allocations: 6.297 kB / 446.2 MB, free: 41.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.704e-05/0.2029, allocations: 9.938 kB / 446.2 MB, free: 41.39 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.2029, allocations: 3.938 kB / 446.2 MB, free: 41.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.2029, allocations: 2.531 kB / 446.2 MB, free: 41.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.2029, allocations: 0 / 446.2 MB, free: 41.39 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.208e-05/0.203, allocations: 141.8 kB / 446.4 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.203, allocations: 2.594 kB / 446.4 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.433e-05/0.203, allocations: 2.75 kB / 446.4 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.52e-07/0.203, allocations: 2.031 kB / 446.4 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.203, allocations: 6.047 kB / 446.4 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.203, allocations: 3.938 kB / 446.4 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.82e-07/0.203, allocations: 0 / 446.4 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001086/0.2031, allocations: 141.4 kB / 446.5 MB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.522e-06/0.2031, allocations: 7.797 kB / 446.5 MB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.2031, allocations: 6.422 kB / 446.5 MB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.717e-05/0.2032, allocations: 22.92 kB / 446.6 MB, free: 41.15 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.812e-05/0.2032, allocations: 6.344 kB / 446.6 MB, free: 41.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.2032, allocations: 6.062 kB / 446.6 MB, free: 41.15 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.228e-05/0.2032, allocations: 81.38 kB / 446.6 MB, free: 41.08 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2032, allocations: 3.5 kB / 446.6 MB, free: 41.08 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001749/0.2034, allocations: 44.36 kB / 446.7 MB, free: 41.08 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.000421/0.2038, allocations: 0.7504 MB / 447.4 MB, free: 40.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001415/0.204, allocations: 152.1 kB / 447.6 MB, free: 40.39 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.204, allocations: 0 / 447.6 MB, free: 40.39 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.267e-05/0.204, allocations: 28.11 kB / 447.6 MB, free: 40.39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001254/0.2041, allocations: 17.72 kB / 447.6 MB, free: 40.38 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008256/0.205, allocations: 1.544 MB / 449.2 MB, free: 39.03 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.571e-05/0.205, allocations: 69.48 kB / 449.2 MB, free: 38.96 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.651e-05/0.205, allocations: 10.06 kB / 449.3 MB, free: 38.95 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.671e-05/0.2051, allocations: 25.69 kB / 449.3 MB, free: 38.95 MB / 410.7 MB Notification: Performance of SimCode: time 5.41e-07/0.2051, allocations: 0 / 449.3 MB, free: 38.95 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01378/0.2189, allocations: 3.843 MB / 453.1 MB, free: 37.85 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.806/7.025, allocations: 6.906 kB / 453.1 MB, free: 37.84 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/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: 8.983449927531183]