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.001199/0.001199, allocations: 104.8 kB / 17.32 MB, free: 5.984 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.0018/0.0018, allocations: 193.3 kB / 18.25 MB, free: 5.07 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.437/1.437, allocations: 222.9 MB / 241.9 MB, free: 13.69 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.2254/0.2254, allocations: 44.18 MB / 336.2 MB, free: 2.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 65.03 kB / 408 MB, free: 27.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1159, allocations: 60.81 MB / 468.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.00182/0.1178, allocations: 0.598 MB / 469.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008415/0.1186, allocations: 437.1 kB / 469.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.21e-05/0.1187, allocations: 0 / 469.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.794e-05/0.1188, allocations: 4 kB / 469.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000133/0.1189, allocations: 15.92 kB / 469.9 MB, free: 13.59 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.0005464/0.1194, allocations: 150.7 kB / 470 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001433/0.1196, allocations: 79.92 kB / 470.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.706e-05/0.1196, allocations: 0 / 470.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.884e-05/0.1197, allocations: 47.89 kB / 470.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.265e-05/0.1198, allocations: 19.84 kB / 470.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.356e-05/0.1198, allocations: 4 kB / 470.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001833/0.12, allocations: 99.84 kB / 470.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.282e-05/0.1201, allocations: 19.95 kB / 470.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.882e-05/0.1201, allocations: 27.91 kB / 470.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002069/0.1203, allocations: 123.7 kB / 470.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1203, allocations: 3.938 kB / 470.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1204, allocations: 4 kB / 470.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.1204, allocations: 4 kB / 470.4 MB, free: 13.02 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.0006086/0.121, allocations: 409.1 kB / 470.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.121, allocations: 8.031 kB / 470.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.552e-05/0.1211, allocations: 30.75 kB / 470.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.401e-05/0.1211, allocations: 4.938 kB / 470.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001852/0.1213, allocations: 188.6 kB / 471.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-06/0.1213, allocations: 4.375 kB / 471.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.387e-05/0.1213, allocations: 384 / 471.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001936/0.1215, allocations: 90.2 kB / 471.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.1216, allocations: 7.922 kB / 471.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.1216, allocations: 4 kB / 471.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.1216, allocations: 0 / 471.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.131e-05/0.1217, allocations: 23.92 kB / 471.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001883/0.1219, allocations: 173.5 kB / 471.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.202e-05/0.122, allocations: 50.55 kB / 471.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.514e-05/0.122, allocations: 24.91 kB / 471.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.367e-05/0.122, allocations: 4 kB / 471.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002422/0.1223, allocations: 135.2 kB / 471.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.1223, allocations: 0 / 471.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002777/0.1226, allocations: 117.6 kB / 471.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.1226, allocations: 63.55 kB / 471.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.593e-05/0.1227, allocations: 101.8 kB / 471.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/0.1227, allocations: 33.7 kB / 471.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.015e-05/0.1228, allocations: 84.14 kB / 472 MB, free: 11.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.983e-05/0.1228, allocations: 23.7 kB / 472 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.663e-05/0.1229, allocations: 33.98 kB / 472 MB, free: 11.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.123, allocations: 318.8 kB / 472.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.056e-05/0.123, allocations: 23.98 kB / 472.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.035e-05/0.1231, allocations: 82.78 kB / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001845/0.1233, allocations: 148.3 kB / 472.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1233, allocations: 0 / 472.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002209/0.1235, allocations: 167.3 kB / 472.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.1236, allocations: 33.73 kB / 472.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.1236, allocations: 4 kB / 472.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.1236, allocations: 0 / 472.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.1237, allocations: 23.92 kB / 472.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.1237, allocations: 0 / 472.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.799e-05/0.1238, allocations: 7.906 kB / 472.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.1238, allocations: 12 kB / 472.8 MB, free: 10.32 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.0001467/0.124, allocations: 129.8 kB / 472.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.643e-05/0.124, allocations: 3.938 kB / 472.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.482e-05/0.124, allocations: 15.91 kB / 473 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.124, allocations: 0 / 473 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1241, allocations: 0 / 473 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1241, allocations: 0 / 473 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.1242, allocations: 173.5 kB / 473.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1242, allocations: 0 / 473.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.029e-05/0.1243, allocations: 11.94 kB / 473.1 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1243, allocations: 3.938 kB / 473.1 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.1243, allocations: 7.984 kB / 473.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1243, allocations: 0 / 473.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.1243, allocations: 8.062 kB / 473.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001785/0.1245, allocations: 129 kB / 473.3 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.396e-05/0.1245, allocations: 84.95 kB / 473.4 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.1246, allocations: 4 kB / 473.4 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002162/0.1248, allocations: 23.97 kB / 473.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.269e-05/0.1248, allocations: 4 kB / 473.4 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.1248, allocations: 7.984 kB / 473.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.605e-05/0.1249, allocations: 83.47 kB / 473.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1249, allocations: 0 / 473.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002653/0.1251, allocations: 43.98 kB / 473.5 MB, free: 9.504 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.0007208/0.1259, allocations: 0.7399 MB / 474.3 MB, free: 8.754 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002/0.1261, allocations: 139.2 kB / 474.4 MB, free: 8.605 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1261, allocations: 0 / 474.4 MB, free: 8.605 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.317e-05/0.1262, allocations: 24.42 kB / 474.4 MB, free: 8.582 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000149/0.1263, allocations: 14.19 kB / 474.4 MB, free: 8.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001272/0.1276, allocations: 1.439 MB / 475.9 MB, free: 7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.1278, allocations: 0.6845 MB / 476.6 MB, free: 6.289 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.74e-05/0.1279, allocations: 24.64 kB / 476.6 MB, free: 6.262 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.45e-05/0.1279, allocations: 15.44 kB / 476.6 MB, free: 6.246 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1279, allocations: 0 / 476.6 MB, free: 6.246 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02156/0.1495, allocations: 2.897 MB / 479.5 MB, free: 3.465 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002214/0.1498, allocations: 247.7 kB / 479.8 MB, free: 3.203 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.997/2.147, allocations: 0 / 479.8 MB, free: 3.203 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