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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001492/0.001493, allocations: 111.3 kB / 16.41 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001609/0.001609, allocations: 185.5 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.604/1.604, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2612/0.2612, allocations: 43.52 MB / 314.1 MB, free: 468 kB / 254.1 MB 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.00208/0.00208, allocations: 75.89 kB / 441.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.1484, allocations: 57.78 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001761/0.1502, allocations: 0.5491 MB / 499.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009798/0.1512, allocations: 446.2 kB / 0.4884 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.968e-05/0.1513, allocations: 0 / 0.4884 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.249e-05/0.1514, allocations: 4 kB / 0.4884 GB, free: 11.33 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000131/0.1515, allocations: 11.91 kB / 0.4884 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006625/0.1522, allocations: 171.5 kB / 0.4885 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002237/0.1524, allocations: 79.86 kB / 0.4886 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.124e-05/0.1525, allocations: 0 / 0.4886 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.734e-05/0.1526, allocations: 47.89 kB / 0.4887 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002912/0.1555, allocations: 376.2 kB / 0.489 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.101e-05/0.1555, allocations: 4 kB / 0.489 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.67e-05/0.1556, allocations: 12 kB / 0.489 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.027e-05/0.1557, allocations: 27.95 kB / 0.4891 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.885e-05/0.1558, allocations: 27.84 kB / 0.4891 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000206/0.156, allocations: 67.77 kB / 0.4892 GB, free: 10.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.676e-06/0.156, allocations: 4 kB / 0.4892 GB, free: 10.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.156, allocations: 0 / 0.4892 GB, free: 10.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.156, allocations: 0 / 0.4892 GB, free: 10.57 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.0006817/0.1567, allocations: 389.1 kB / 0.4895 GB, free: 10.13 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.1568, allocations: 15.89 kB / 0.4895 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.717e-05/0.1568, allocations: 30.75 kB / 0.4896 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.826e-05/0.1569, allocations: 16.83 kB / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000233/0.1571, allocations: 180.3 kB / 0.4898 GB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.1571, allocations: 8.359 kB / 0.4898 GB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.764e-05/0.1571, allocations: 4.375 kB / 0.4898 GB, free: 9.836 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002359/0.1574, allocations: 86.2 kB / 0.4899 GB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.1574, allocations: 3.938 kB / 0.4899 GB, free: 9.742 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.948e-05/0.1574, allocations: 3.984 kB / 0.4899 GB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1574, allocations: 0 / 0.4899 GB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.078e-05/0.1575, allocations: 23.98 kB / 0.4899 GB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002328/0.1578, allocations: 169.7 kB / 0.49 GB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000103/0.1579, allocations: 46.5 kB / 0.4901 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.925e-05/0.1579, allocations: 24.91 kB / 0.4901 GB, free: 9.418 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.1579, allocations: 0 / 0.4901 GB, free: 9.418 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002564/0.1582, allocations: 143.3 kB / 0.4903 GB, free: 9.266 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 3.226e-06/0.1582, allocations: 0 / 0.4903 GB, free: 9.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003128/0.1585, allocations: 117.6 kB / 0.4904 GB, free: 9.145 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/0.1586, allocations: 55.41 kB / 0.4904 GB, free: 9.078 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.661e-05/0.1587, allocations: 101.8 kB / 0.4905 GB, free: 8.969 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.587e-05/0.1587, allocations: 37.64 kB / 0.4906 GB, free: 8.926 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.336e-05/0.1588, allocations: 80.42 kB / 0.4906 GB, free: 8.844 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.056e-05/0.1588, allocations: 31.73 kB / 0.4907 GB, free: 8.812 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-05/0.1589, allocations: 29.72 kB / 0.4907 GB, free: 8.777 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.1591, allocations: 326.8 kB / 0.491 GB, free: 8.449 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.089e-05/0.1591, allocations: 23.92 kB / 0.491 GB, free: 8.426 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.184e-05/0.1592, allocations: 78.78 kB / 0.4911 GB, free: 8.324 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002257/0.1595, allocations: 148.4 kB / 0.4912 GB, free: 8.148 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1595, allocations: 4 kB / 0.4912 GB, free: 8.145 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002341/0.1597, allocations: 155.1 kB / 0.4914 GB, free: 7.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.931e-05/0.1598, allocations: 37.69 kB / 0.4914 GB, free: 7.938 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.1598, allocations: 0 / 0.4914 GB, free: 7.938 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.1598, allocations: 4 kB / 0.4914 GB, free: 7.934 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.1599, allocations: 16 kB / 0.4914 GB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.1599, allocations: 7.984 kB / 0.4915 GB, free: 7.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.826e-05/0.16, allocations: 8.172 kB / 0.4915 GB, free: 7.902 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.16, allocations: 8 kB / 0.4915 GB, free: 7.895 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.0001732/0.1602, allocations: 129.7 kB / 0.4916 GB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.972e-05/0.1602, allocations: 12.08 kB / 0.4916 GB, free: 7.746 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.19e-05/0.1602, allocations: 15.94 kB / 0.4916 GB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.1603, allocations: 4 kB / 0.4916 GB, free: 7.719 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.1603, allocations: 0 / 0.4916 GB, free: 7.719 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1603, allocations: 0 / 0.4916 GB, free: 7.719 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001776/0.1605, allocations: 177.6 kB / 0.4918 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1605, allocations: 0 / 0.4918 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.525e-05/0.1605, allocations: 7.938 kB / 0.4918 GB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.1605, allocations: 4 kB / 0.4918 GB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.1605, allocations: 4 kB / 0.4918 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.1605, allocations: 0 / 0.4918 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.1605, allocations: 7.922 kB / 0.4918 GB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000216/0.1608, allocations: 125.1 kB / 0.4919 GB, free: 7.332 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.204e-05/0.1608, allocations: 89.03 kB / 0.492 GB, free: 7.227 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.987e-05/0.1608, allocations: 4 kB / 0.492 GB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/0.1611, allocations: 19.97 kB / 0.492 GB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.034e-05/0.1611, allocations: 4 kB / 0.492 GB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.1611, allocations: 12.05 kB / 0.4921 GB, free: 7.188 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.697e-05/0.1612, allocations: 75.28 kB / 0.4921 GB, free: 7.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1612, allocations: 3.938 kB / 0.4921 GB, free: 7.109 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002437/0.1614, allocations: 27.94 kB / 0.4922 GB, free: 7.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.0007498/0.1622, allocations: 0.6984 MB / 0.4928 GB, free: 6.355 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002326/0.1624, allocations: 123.3 kB / 0.493 GB, free: 6.223 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.1624, allocations: 4.438 kB / 0.493 GB, free: 6.219 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.905e-05/0.1625, allocations: 27.94 kB / 0.493 GB, free: 6.191 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001615/0.1627, allocations: 15.92 kB / 0.493 GB, free: 6.176 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001565/0.1642, allocations: 1.422 MB / 0.4944 GB, free: 4.625 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003718/0.1646, allocations: 0.6923 MB / 0.4951 GB, free: 3.906 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.368e-05/0.1647, allocations: 20.64 kB / 0.4951 GB, free: 3.883 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.698e-05/0.1647, allocations: 15.44 kB / 0.4951 GB, free: 3.867 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1647, allocations: 0 / 0.4951 GB, free: 3.867 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02368/0.1884, allocations: 2.423 MB / 0.4975 GB, free: 1.414 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.276/8.464, allocations: 23.83 kB / 0.4975 GB, free: 1.391 MB / 382.1 MB (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 --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) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" 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