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.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.001368/0.001368, allocations: 107.5 kB / 19.69 MB, free: 2.203 MB / 14.72 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.001487/0.001487, allocations: 226.3 kB / 23.01 MB, free: 5.035 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.562/1.562, allocations: 207.6 MB / 233.8 MB, free: 9.98 MB / 190.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.2422/0.2422, allocations: 44.23 MB / 330.3 MB, free: 9.523 MB / 270.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.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_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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002156/0.002156, allocations: 71.91 kB / 467.5 MB, free: 4.52 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1375, allocations: 61.04 MB / 0.5161 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001927/0.1394, allocations: 0.5485 MB / 0.5167 GB, free: 6.793 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.1404, allocations: 461.2 kB / 0.5171 GB, free: 6.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.433e-05/0.1405, allocations: 0 / 0.5171 GB, free: 6.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.565e-05/0.1406, allocations: 0 / 0.5171 GB, free: 6.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000151/0.1407, allocations: 7.938 kB / 0.5171 GB, free: 6.332 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006551/0.1414, allocations: 183.5 kB / 0.5173 GB, free: 6.152 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001884/0.1416, allocations: 87.78 kB / 0.5174 GB, free: 6.066 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.824e-05/0.1416, allocations: 4 kB / 0.5174 GB, free: 6.062 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.049e-05/0.1417, allocations: 39.95 kB / 0.5174 GB, free: 6.023 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00312/0.1448, allocations: 461.6 kB / 0.5179 GB, free: 5.633 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.405e-05/0.1448, allocations: 8 kB / 0.5179 GB, free: 5.625 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.531e-05/0.1449, allocations: 23.97 kB / 0.5179 GB, free: 5.602 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.744e-05/0.145, allocations: 15.98 kB / 0.5179 GB, free: 5.586 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.198e-05/0.145, allocations: 27.84 kB / 0.5179 GB, free: 5.559 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001899/0.1452, allocations: 67.77 kB / 0.518 GB, free: 5.492 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1452, allocations: 0 / 0.518 GB, free: 5.492 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1452, allocations: 4 kB / 0.518 GB, free: 5.488 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.75e-06/0.1452, allocations: 0 / 0.518 GB, free: 5.488 MB / 398.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.0006065/0.1458, allocations: 312 kB / 0.5183 GB, free: 5.145 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.1459, allocations: 12.03 kB / 0.5183 GB, free: 5.133 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.922e-05/0.1459, allocations: 38.75 kB / 0.5184 GB, free: 5.086 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.98e-05/0.146, allocations: 8.875 kB / 0.5184 GB, free: 5.078 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002064/0.1462, allocations: 130.4 kB / 0.5185 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.1462, allocations: 384 / 0.5185 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.397e-05/0.1462, allocations: 4.375 kB / 0.5185 GB, free: 4.922 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002226/0.1464, allocations: 94.19 kB / 0.5186 GB, free: 4.824 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.1464, allocations: 3.938 kB / 0.5186 GB, free: 4.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.755e-05/0.1465, allocations: 3.984 kB / 0.5186 GB, free: 4.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1465, allocations: 0 / 0.5186 GB, free: 4.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.346e-05/0.1465, allocations: 23.98 kB / 0.5186 GB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001891/0.1467, allocations: 140.7 kB / 0.5188 GB, free: 4.613 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.049e-05/0.1468, allocations: 42.5 kB / 0.5188 GB, free: 4.562 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.58e-05/0.1469, allocations: 24.91 kB / 0.5188 GB, free: 4.535 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.145e-05/0.1469, allocations: 0 / 0.5188 GB, free: 4.535 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002498/0.1471, allocations: 143.1 kB / 0.519 GB, free: 4.383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.222e-06/0.1471, allocations: 0 / 0.519 GB, free: 4.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002934/0.1474, allocations: 113.9 kB / 0.5191 GB, free: 4.266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.1475, allocations: 59.34 kB / 0.5191 GB, free: 4.195 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.088e-05/0.1475, allocations: 105.8 kB / 0.5192 GB, free: 4.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.292e-05/0.1476, allocations: 37.64 kB / 0.5193 GB, free: 4.039 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.186e-05/0.1476, allocations: 84.14 kB / 0.5193 GB, free: 3.953 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.756e-05/0.1477, allocations: 31.94 kB / 0.5194 GB, free: 3.922 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.602e-05/0.1477, allocations: 25.72 kB / 0.5194 GB, free: 3.891 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.1479, allocations: 326.8 kB / 0.5197 GB, free: 3.562 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.785e-05/0.1479, allocations: 19.98 kB / 0.5197 GB, free: 3.543 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.958e-05/0.148, allocations: 78.84 kB / 0.5198 GB, free: 3.441 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.1482, allocations: 148.4 kB / 0.5199 GB, free: 3.266 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1482, allocations: 0 / 0.5199 GB, free: 3.266 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002264/0.1485, allocations: 159.1 kB / 0.5201 GB, free: 3.098 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.06e-05/0.1485, allocations: 37.69 kB / 0.5201 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.1485, allocations: 0 / 0.5201 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.1485, allocations: 4 kB / 0.5201 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.1486, allocations: 12 kB / 0.5201 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.1486, allocations: 12.2 kB / 0.5202 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.913e-05/0.1487, allocations: 11.89 kB / 0.5202 GB, free: 3.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.1487, allocations: 8 kB / 0.5202 GB, free: 3.008 MB / 398.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.0001514/0.1489, allocations: 121.8 kB / 0.5203 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.13e-05/0.1489, allocations: 15.88 kB / 0.5203 GB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.569e-05/0.1489, allocations: 8.062 kB / 0.5203 GB, free: 2.852 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1489, allocations: 4 kB / 0.5203 GB, free: 2.848 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1489, allocations: 4 kB / 0.5203 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.1489, allocations: 0 / 0.5203 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.1491, allocations: 140.7 kB / 0.5205 GB, free: 2.664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1491, allocations: 0 / 0.5205 GB, free: 2.664 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.228e-05/0.1491, allocations: 19.88 kB / 0.5205 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1491, allocations: 3.938 kB / 0.5205 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-06/0.1491, allocations: 0 / 0.5205 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.1491, allocations: 3.984 kB / 0.5205 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1491, allocations: 0 / 0.5205 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002135/0.1494, allocations: 129.1 kB / 0.5206 GB, free: 2.492 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.225e-05/0.1494, allocations: 7.922 kB / 0.5206 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.1494, allocations: 8.062 kB / 0.5206 GB, free: 2.477 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001921/0.1496, allocations: 19.97 kB / 0.5206 GB, free: 2.457 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.655e-05/0.1496, allocations: 7.938 kB / 0.5206 GB, free: 2.449 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.1496, allocations: 11.92 kB / 0.5207 GB, free: 2.438 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.297e-05/0.1497, allocations: 83.28 kB / 0.5207 GB, free: 2.355 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1497, allocations: 0 / 0.5207 GB, free: 2.355 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002246/0.1499, allocations: 24 kB / 0.5208 GB, free: 2.332 MB / 398.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.0006863/0.1506, allocations: 0.6944 MB / 0.5214 GB, free: 1.613 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002134/0.1508, allocations: 127.6 kB / 0.5216 GB, free: 1.477 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1508, allocations: 0 / 0.5216 GB, free: 1.477 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.193e-05/0.1509, allocations: 27.92 kB / 0.5216 GB, free: 1.449 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001527/0.151, allocations: 8 kB / 0.5216 GB, free: 1.441 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.1525, allocations: 1.42 MB / 0.523 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.1528, allocations: 0.6924 MB / 0.5237 GB, free: 15.17 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.287e-05/0.1529, allocations: 12.66 kB / 0.5237 GB, free: 15.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.836e-05/0.1529, allocations: 19.42 kB / 0.5237 GB, free: 15.14 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1529, allocations: 3.938 kB / 0.5237 GB, free: 15.13 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02819/0.1811, allocations: 2.617 MB / 0.5262 GB, free: 12.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.09, allocations: 0 / 0.5262 GB, free: 12.5 MB / 414.1 MB " [Timeout remaining time 649] (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/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) [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: 14.613290333887562]