Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001913/0.001913, allocations: 112.8 kB / 17.13 MB, free: 5.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002111/0.002111, allocations: 191.7 kB / 20.08 MB, free: 3.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.568/1.568, allocations: 207.6 MB / 230.5 MB, free: 4.027 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5061/0.5061, allocations: 44.22 MB / 326.5 MB, free: 6.852 MB / 254.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002249/0.002249, allocations: 75.88 kB / 462.2 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4076/0.4099, allocations: 60.99 MB / 0.5109 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001791/0.4117, allocations: 0.5598 MB / 0.5114 GB, free: 12.81 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009206/0.4126, allocations: 452.3 kB / 0.5119 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.055e-05/0.4126, allocations: 1.094 kB / 0.5119 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.71e-05/0.4127, allocations: 3.938 kB / 0.5119 GB, free: 12.47 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001256/0.4128, allocations: 4.969 kB / 0.5119 GB, free: 12.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005484/0.4134, allocations: 169.6 kB / 0.512 GB, free: 12.36 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001606/0.4135, allocations: 87.39 kB / 0.5121 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.646e-05/0.4136, allocations: 1.156 kB / 0.5121 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.151e-05/0.4136, allocations: 45.36 kB / 0.5122 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002708/0.4163, allocations: 378.2 kB / 0.5125 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.518e-05/0.4164, allocations: 3.156 kB / 0.5125 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.406e-05/0.4164, allocations: 18.02 kB / 0.5126 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.983e-05/0.4165, allocations: 23.84 kB / 0.5126 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.561e-05/0.4165, allocations: 27.78 kB / 0.5126 GB, free: 12.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001912/0.4167, allocations: 66.95 kB / 0.5127 GB, free: 12.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.4167, allocations: 0 / 0.5127 GB, free: 12.03 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.4167, allocations: 1.188 kB / 0.5127 GB, free: 12.03 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.4167, allocations: 4 kB / 0.5127 GB, free: 12.03 MB / 382.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.000473/0.4172, allocations: 395.4 kB / 0.513 GB, free: 11.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.4172, allocations: 13.89 kB / 0.5131 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.881e-05/0.4173, allocations: 40.11 kB / 0.5131 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.306e-05/0.4173, allocations: 8.172 kB / 0.5131 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001518/0.4175, allocations: 181.3 kB / 0.5133 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.4175, allocations: 1.469 kB / 0.5133 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.374e-05/0.4175, allocations: 2.719 kB / 0.5133 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002084/0.4177, allocations: 90.5 kB / 0.5134 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.4177, allocations: 7.938 kB / 0.5134 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/0.4177, allocations: 1.344 kB / 0.5134 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.4177, allocations: 3.938 kB / 0.5134 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.364e-05/0.4178, allocations: 25.27 kB / 0.5134 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001383/0.4179, allocations: 164.8 kB / 0.5136 GB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.877e-05/0.418, allocations: 42.16 kB / 0.5136 GB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.79e-05/0.4181, allocations: 19.02 kB / 0.5136 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.4181, allocations: 4 kB / 0.5136 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002049/0.4183, allocations: 136.1 kB / 0.5138 GB, free: 10.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.202e-06/0.4183, allocations: 1.781 kB / 0.5138 GB, free: 10.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.000265/0.4186, allocations: 124.3 kB / 0.5139 GB, free: 10.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.4186, allocations: 62.55 kB / 0.5139 GB, free: 10.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.046e-05/0.4186, allocations: 102.8 kB / 0.514 GB, free: 10.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.4187, allocations: 31.33 kB / 0.5141 GB, free: 10.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.01e-05/0.4187, allocations: 82.3 kB / 0.5141 GB, free: 10.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.851e-05/0.4187, allocations: 35.92 kB / 0.5142 GB, free: 10.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.342e-05/0.4188, allocations: 31.33 kB / 0.5142 GB, free: 10.49 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.667e-05/0.4188, allocations: 312.2 kB / 0.5145 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.521e-05/0.4189, allocations: 25.73 kB / 0.5145 GB, free: 10.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.097e-05/0.4189, allocations: 76.53 kB / 0.5146 GB, free: 10.08 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001577/0.4191, allocations: 144.5 kB / 0.5147 GB, free: 9.949 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.4191, allocations: 0 / 0.5147 GB, free: 9.949 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001893/0.4193, allocations: 161.3 kB / 0.5149 GB, free: 9.836 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/0.4193, allocations: 41.33 kB / 0.5149 GB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.4193, allocations: 1.375 kB / 0.5149 GB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.4193, allocations: 2.656 kB / 0.5149 GB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.4194, allocations: 20.67 kB / 0.515 GB, free: 9.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.4194, allocations: 2.312 kB / 0.515 GB, free: 9.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.675e-05/0.4195, allocations: 12.23 kB / 0.515 GB, free: 9.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.4195, allocations: 5.688 kB / 0.515 GB, free: 9.781 MB / 382.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.0001159/0.4196, allocations: 137.6 kB / 0.5151 GB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.471e-05/0.4196, allocations: 19.27 kB / 0.5151 GB, free: 9.629 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.521e-05/0.4197, allocations: 5.281 kB / 0.5151 GB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.4197, allocations: 1.312 kB / 0.5151 GB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.4197, allocations: 0 / 0.5151 GB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4197, allocations: 0 / 0.5151 GB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001183/0.4198, allocations: 178.9 kB / 0.5153 GB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.4198, allocations: 192 / 0.5153 GB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.601e-05/0.4198, allocations: 8.875 kB / 0.5153 GB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.4198, allocations: 1.219 kB / 0.5153 GB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.4198, allocations: 8.969 kB / 0.5153 GB, free: 9.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.4198, allocations: 4 kB / 0.5153 GB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4198, allocations: 1.125 kB / 0.5153 GB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001912/0.42, allocations: 134 kB / 0.5155 GB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.35e-05/0.4201, allocations: 83.8 kB / 0.5155 GB, free: 9.188 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.021e-05/0.4201, allocations: 2.75 kB / 0.5155 GB, free: 9.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.4203, allocations: 21.31 kB / 0.5156 GB, free: 9.176 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.658e-05/0.4203, allocations: 6.453 kB / 0.5156 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.4203, allocations: 12.47 kB / 0.5156 GB, free: 9.164 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.514e-05/0.4203, allocations: 77.5 kB / 0.5156 GB, free: 9.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4203, allocations: 0 / 0.5156 GB, free: 9.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002405/0.4206, allocations: 25.17 kB / 0.5157 GB, free: 9.082 MB / 382.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.0005499/0.4211, allocations: 0.6888 MB / 0.5163 GB, free: 8.438 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002048/0.4213, allocations: 128.8 kB / 0.5165 GB, free: 8.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.4213, allocations: 1.531 kB / 0.5165 GB, free: 8.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.65e-05/0.4214, allocations: 28.09 kB / 0.5165 GB, free: 8.328 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001516/0.4215, allocations: 7.844 kB / 0.5165 GB, free: 8.324 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/0.4226, allocations: 1.437 MB / 0.5179 GB, free: 6.934 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001076/0.4227, allocations: 0.6823 MB / 0.5186 GB, free: 6.234 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.348e-05/0.4227, allocations: 16.84 kB / 0.5186 GB, free: 6.223 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.138e-05/0.4228, allocations: 16.94 kB / 0.5186 GB, free: 6.211 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4228, allocations: 0 / 0.5186 GB, free: 6.211 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02362/0.4464, allocations: 2.459 MB / 0.521 GB, free: 4.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.089/8.535, allocations: 8.812 kB / 0.521 GB, free: 4.062 MB / 382.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --stepSize=0.000166639 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,y,cnt[1],cnt[2],cnt[3],avg,lowBound,highBound,samples Variables in the result:avg,cnt[1],cnt[2],cnt[3],highBound,id,lowBound,n,nrSigma,samples,time,y [Calling sys.exit(0), Time elapsed: 11.818887407891452]