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.001003/0.001003, 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.001125/0.001125, allocations: 174 kB / 23.95 MB, free: 0.6094 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.938/0.938, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] 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.265/0.265, allocations: 34.25 MB / 294.9 MB, free: 0.7227 MB / 266.7 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 2.014e-06/2.014e-06, allocations: 0 / 442.2 MB, free: 1.664 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.392e-05/2.593e-05, allocations: 2.281 kB / 442.2 MB, free: 1.66 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001263/0.001288, allocations: 0.5245 MB / 442.7 MB, free: 1.137 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008078/0.002096, allocations: 430.4 kB / 443.1 MB, free: 0.7148 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.122e-05/0.002138, allocations: 4 kB / 443.1 MB, free: 0.7109 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 8.336e-05/0.002221, allocations: 3.938 kB / 443.1 MB, free: 0.707 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001232/0.002344, allocations: 7.875 kB / 443.1 MB, free: 0.6992 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.0005547/0.002899, allocations: 188.1 kB / 443.3 MB, free: 0.5195 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001449/0.003044, allocations: 75.86 kB / 443.4 MB, free: 456 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.033e-05/0.003084, allocations: 4 kB / 443.4 MB, free: 452 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.799e-05/0.003162, allocations: 47.89 kB / 443.4 MB, free: 404 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.93e-05/0.003221, allocations: 23.95 kB / 443.5 MB, free: 380 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.003245, allocations: 8 kB / 443.5 MB, free: 372 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002009/0.003445, allocations: 119.8 kB / 443.6 MB, free: 252 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.157e-05/0.003507, allocations: 23.97 kB / 443.6 MB, free: 228 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.239e-05/0.003549, allocations: 23.91 kB / 443.6 MB, free: 204 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002245/0.003774, allocations: 155.5 kB / 443.8 MB, free: 48 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.863e-06/0.003776, allocations: 0 / 443.8 MB, free: 48 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.003777, allocations: 0 / 443.8 MB, free: 48 kB / 410.7 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.003784, allocations: 3.984 kB / 443.8 MB, free: 44 kB / 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.2161/0.2199, allocations: 325.3 kB / 444.1 MB, free: 44.21 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.2199, allocations: 11.66 kB / 444.1 MB, free: 44.21 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.698e-05/0.22, allocations: 33.94 kB / 444.2 MB, free: 44.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.913e-05/0.22, allocations: 13.48 kB / 444.2 MB, free: 44.17 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.2201, allocations: 122.1 kB / 444.3 MB, free: 44.05 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.507e-06/0.2201, allocations: 1.312 kB / 444.3 MB, free: 44.05 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.2202, allocations: 4.594 kB / 444.3 MB, free: 44.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/0.2203, allocations: 90.84 kB / 444.4 MB, free: 44.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.2203, allocations: 192 / 444.4 MB, free: 44.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.2203, allocations: 4.625 kB / 444.4 MB, free: 44.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.2203, allocations: 6.094 kB / 444.4 MB, free: 44.01 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.756e-05/0.2204, allocations: 23.8 kB / 444.4 MB, free: 44.01 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001277/0.2205, allocations: 135.2 kB / 444.5 MB, free: 43.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.112e-05/0.2206, allocations: 44.47 kB / 444.6 MB, free: 43.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.426e-05/0.2206, allocations: 25.81 kB / 444.6 MB, free: 43.83 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.2206, allocations: 4.031 kB / 444.6 MB, free: 43.83 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002637/0.2209, allocations: 128.1 kB / 444.7 MB, free: 43.78 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 1.793e-06/0.2209, allocations: 0 / 444.7 MB, free: 43.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002539/0.2212, allocations: 134.5 kB / 444.9 MB, free: 43.74 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.208e-05/0.2212, allocations: 60.34 kB / 444.9 MB, free: 43.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.73e-05/0.2212, allocations: 101.8 kB / 445 MB, free: 43.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.2213, allocations: 37.5 kB / 445.1 MB, free: 43.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.606e-05/0.2213, allocations: 81.27 kB / 445.2 MB, free: 43.47 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.6e-05/0.2213, allocations: 24.94 kB / 445.2 MB, free: 43.46 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.949e-05/0.2213, allocations: 30.55 kB / 445.2 MB, free: 43.44 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.982e-05/0.2214, allocations: 321 kB / 445.5 MB, free: 43.13 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.212e-05/0.2214, allocations: 51.19 kB / 445.6 MB, free: 43.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.95e-05/0.2215, allocations: 104.1 kB / 445.7 MB, free: 43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001249/0.2216, allocations: 149.9 kB / 445.8 MB, free: 42.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.2216, allocations: 0 / 445.8 MB, free: 42.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001405/0.2217, allocations: 185.8 kB / 446 MB, free: 42.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.2218, allocations: 34.02 kB / 446 MB, free: 42.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2218, allocations: 3.906 kB / 446 MB, free: 42.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.2218, allocations: 6.719 kB / 446 MB, free: 42.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.654e-05/0.2219, allocations: 16.64 kB / 446.1 MB, free: 42.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.984e-06/0.2219, allocations: 3.062 kB / 446.1 MB, free: 42.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.079e-05/0.2219, allocations: 12.31 kB / 446.1 MB, free: 42.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.2219, allocations: 6 kB / 446.1 MB, free: 42.76 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 0.0001022/0.222, allocations: 131.2 kB / 446.2 MB, free: 42.64 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.592e-05/0.222, allocations: 3.031 kB / 446.2 MB, free: 42.64 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.768e-05/0.2221, allocations: 14.06 kB / 446.2 MB, free: 42.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.2221, allocations: 10.03 kB / 446.2 MB, free: 42.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.2221, allocations: 3.719 kB / 446.2 MB, free: 42.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.2221, allocations: 0 / 446.2 MB, free: 42.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.05e-05/0.2222, allocations: 143.1 kB / 446.4 MB, free: 42.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.2222, allocations: 2.906 kB / 446.4 MB, free: 42.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.618e-05/0.2222, allocations: 9.188 kB / 446.4 MB, free: 42.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.2222, allocations: 0 / 446.4 MB, free: 42.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.2222, allocations: 0.5 kB / 446.4 MB, free: 42.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.2222, allocations: 12.19 kB / 446.4 MB, free: 42.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2222, allocations: 0 / 446.4 MB, free: 42.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001432/0.2224, allocations: 129.7 kB / 446.5 MB, free: 42.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.746e-06/0.2224, allocations: 6.984 kB / 446.5 MB, free: 42.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.523e-05/0.2224, allocations: 14.16 kB / 446.5 MB, free: 42.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.2225, allocations: 22.3 kB / 446.6 MB, free: 42.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.037e-05/0.2225, allocations: 6.047 kB / 446.6 MB, free: 42.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.2225, allocations: 7.094 kB / 446.6 MB, free: 42.39 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.442e-05/0.2225, allocations: 82.19 kB / 446.7 MB, free: 42.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.2225, allocations: 0 / 446.7 MB, free: 42.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002047/0.2227, allocations: 43.17 kB / 446.7 MB, free: 42.31 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.0004694/0.2232, allocations: 0.7526 MB / 447.5 MB, free: 41.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001502/0.2234, allocations: 144.6 kB / 447.6 MB, free: 41.58 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2234, allocations: 2.938 kB / 447.6 MB, free: 41.58 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.344e-05/0.2234, allocations: 27.72 kB / 447.6 MB, free: 41.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001297/0.2235, allocations: 19.78 kB / 447.6 MB, free: 41.56 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008621/0.2244, allocations: 1.548 MB / 449.2 MB, free: 40.12 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.714e-05/0.2244, allocations: 66.17 kB / 449.3 MB, free: 40.05 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.297e-05/0.2245, allocations: 16.25 kB / 449.3 MB, free: 40.04 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.565e-05/0.2245, allocations: 18.22 kB / 449.3 MB, free: 40.04 MB / 410.7 MB Notification: Performance of SimCode: time 5.21e-07/0.2245, allocations: 0 / 449.3 MB, free: 40.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01988/0.2444, allocations: 3.849 MB / 453.1 MB, free: 38.93 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.889/7.134, allocations: 9.156 kB / 453.2 MB, free: 38.93 MB / 410.7 MB " [Timeout remaining time 653] (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/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_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: 9.203058230690658]