Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_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.001106/0.001106, allocations: 104.7 kB / 17.63 MB, free: 5.344 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.0009923/0.0009922, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2238/0.2238, allocations: 44.18 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 62.78 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1172, allocations: 60.81 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001943/0.1192, allocations: 0.5299 MB / 469.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009072/0.1201, allocations: 449.1 kB / 470.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.284e-05/0.1202, allocations: 4 kB / 470.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.959e-05/0.1203, allocations: 3.938 kB / 470.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001183/0.1204, allocations: 3.984 kB / 470.3 MB, free: 13.29 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0006167/0.1211, allocations: 171.3 kB / 470.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001526/0.1212, allocations: 83.84 kB / 470.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.123e-05/0.1213, allocations: 7.984 kB / 470.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.508e-05/0.1213, allocations: 39.91 kB / 470.6 MB, free: 13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.751e-05/0.1214, allocations: 19.92 kB / 470.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.489e-05/0.1215, allocations: 4 kB / 470.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002106/0.1217, allocations: 99.83 kB / 470.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.935e-05/0.1217, allocations: 19.97 kB / 470.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.054e-05/0.1218, allocations: 27.89 kB / 470.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002333/0.122, allocations: 127.8 kB / 470.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1221, allocations: 3.938 kB / 470.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1221, allocations: 0 / 470.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.1221, allocations: 0 / 470.9 MB, free: 12.7 MB / 350.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.0006145/0.1227, allocations: 405.1 kB / 471.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.1228, allocations: 8.031 kB / 471.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.3e-05/0.1228, allocations: 38.73 kB / 471.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.369e-05/0.1229, allocations: 4.938 kB / 471.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002311/0.1231, allocations: 184.6 kB / 471.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.1231, allocations: 8.312 kB / 471.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.822e-05/0.1232, allocations: 4.375 kB / 471.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002228/0.1234, allocations: 90.19 kB / 471.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.1234, allocations: 7.938 kB / 471.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.013e-05/0.1234, allocations: 4 kB / 471.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.1234, allocations: 0 / 471.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.585e-05/0.1235, allocations: 23.97 kB / 471.7 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001995/0.1237, allocations: 169.5 kB / 471.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001002/0.1238, allocations: 54.58 kB / 471.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.254e-05/0.1239, allocations: 20.98 kB / 471.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.618e-05/0.1239, allocations: 7.984 kB / 471.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003031/0.1243, allocations: 131.2 kB / 472.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.1243, allocations: 4 kB / 472.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003359/0.1246, allocations: 113.7 kB / 472.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.451e-05/0.1247, allocations: 67.33 kB / 472.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.469e-05/0.1248, allocations: 93.86 kB / 472.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.775e-05/0.1248, allocations: 29.7 kB / 472.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.327e-05/0.1248, allocations: 84.12 kB / 472.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.574e-05/0.1249, allocations: 23.72 kB / 472.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.316e-05/0.125, allocations: 29.7 kB / 472.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1251, allocations: 326.8 kB / 472.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.711e-05/0.1252, allocations: 19.98 kB / 472.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.846e-05/0.1252, allocations: 74.8 kB / 472.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002035/0.1255, allocations: 148.3 kB / 473.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.219e-06/0.1255, allocations: 4 kB / 473.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002411/0.1257, allocations: 163.1 kB / 473.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.575e-05/0.1258, allocations: 33.98 kB / 473.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.1258, allocations: 0 / 473.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.1258, allocations: 4 kB / 473.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001085/0.1259, allocations: 19.92 kB / 473.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.1259, allocations: 4 kB / 473.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.227e-05/0.126, allocations: 11.91 kB / 473.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.126, allocations: 7.938 kB / 473.3 MB, free: 10.02 MB / 350.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.0001524/0.1262, allocations: 130 kB / 473.4 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.225e-05/0.1262, allocations: 8.125 kB / 473.4 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.55e-05/0.1263, allocations: 7.969 kB / 473.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.1263, allocations: 7.969 kB / 473.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.1263, allocations: 4 kB / 473.5 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.1263, allocations: 0 / 473.5 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001566/0.1265, allocations: 173.6 kB / 473.6 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1265, allocations: 4 kB / 473.6 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.539e-05/0.1265, allocations: 15.92 kB / 473.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1265, allocations: 3.938 kB / 473.6 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.1266, allocations: 4 kB / 473.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1266, allocations: 3.938 kB / 473.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1266, allocations: 0 / 473.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002154/0.1268, allocations: 121.2 kB / 473.8 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.827e-05/0.1268, allocations: 88.95 kB / 473.9 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/0.1269, allocations: 11.98 kB / 473.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002011/0.1271, allocations: 15.98 kB / 473.9 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.226e-05/0.1271, allocations: 11.92 kB / 473.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/0.1271, allocations: 8 kB / 473.9 MB, free: 9.312 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.489e-05/0.1272, allocations: 79.27 kB / 474 MB, free: 9.234 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1272, allocations: 0 / 474 MB, free: 9.234 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002985/0.1275, allocations: 40 kB / 474 MB, free: 9.195 MB / 350.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.000754/0.1283, allocations: 0.7531 MB / 474.8 MB, free: 8.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002188/0.1285, allocations: 131.6 kB / 474.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1285, allocations: 0 / 474.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.214e-05/0.1286, allocations: 35.92 kB / 474.9 MB, free: 8.258 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001567/0.1287, allocations: 7.984 kB / 474.9 MB, free: 8.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001464/0.1302, allocations: 1.444 MB / 476.4 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.1305, allocations: 0.6845 MB / 477.1 MB, free: 5.969 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.615e-05/0.1306, allocations: 12.66 kB / 477.1 MB, free: 5.953 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.614e-05/0.1307, allocations: 23.42 kB / 477.1 MB, free: 5.93 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1307, allocations: 0 / 477.1 MB, free: 5.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02342/0.1541, allocations: 2.958 MB / 480.1 MB, free: 3.035 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.889/10.04, allocations: 2.906 kB / 480.1 MB, free: 3.035 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches