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.0008522/0.0008522, allocations: 91.05 kB / 17.35 MB, free: 6.375 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.0009433/0.0009433, allocations: 178.1 kB / 18.25 MB, free: 5.52 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.326/1.326, allocations: 223.3 MB / 242.3 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1886/0.1886, allocations: 44.25 MB / 337.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00035/0.00035, allocations: 8.281 kB / 410.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1149, allocations: 61.92 MB / 472.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0006696/0.1156, allocations: 262.8 kB / 472.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008879/0.1165, allocations: 440.5 kB / 473 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.56e-05/0.1165, allocations: 3.938 kB / 473 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.468e-05/0.1166, allocations: 0 / 473 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001186/0.1167, allocations: 7.984 kB / 473.1 MB, free: 12.58 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.0004869/0.1172, allocations: 154.9 kB / 473.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001211/0.1174, allocations: 79.84 kB / 473.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.078e-05/0.1174, allocations: 4 kB / 473.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.161e-05/0.1175, allocations: 43.89 kB / 473.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.926e-05/0.1175, allocations: 15.92 kB / 473.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.173e-05/0.1176, allocations: 4 kB / 473.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001725/0.1178, allocations: 91.84 kB / 473.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.082e-05/0.1178, allocations: 23.95 kB / 473.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.894e-05/0.1179, allocations: 49.61 kB / 473.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002042/0.1181, allocations: 127.8 kB / 473.6 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1181, allocations: 7.938 kB / 473.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.1181, allocations: 3.984 kB / 473.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.556e-06/0.1181, allocations: 0 / 473.6 MB, free: 11.98 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.0004905/0.1186, allocations: 373.2 kB / 474 MB, free: 11.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.1187, allocations: 12.03 kB / 474 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.187e-05/0.1187, allocations: 34.73 kB / 474.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.563e-05/0.1188, allocations: 4.938 kB / 474.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001676/0.1189, allocations: 180.6 kB / 474.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.119, allocations: 8.312 kB / 474.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.518e-05/0.119, allocations: 12.31 kB / 474.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001877/0.1192, allocations: 98.19 kB / 474.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.1192, allocations: 3.938 kB / 474.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.732e-05/0.1192, allocations: 0 / 474.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.1192, allocations: 0 / 474.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.114e-05/0.1193, allocations: 23.98 kB / 474.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002048/0.1195, allocations: 177.5 kB / 474.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.611e-05/0.1196, allocations: 42.56 kB / 474.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.527e-05/0.1197, allocations: 32.84 kB / 474.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.569e-05/0.1197, allocations: 4.141 kB / 474.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002349/0.1199, allocations: 131.2 kB / 474.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.242e-06/0.1199, allocations: 0 / 474.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002726/0.1202, allocations: 121.6 kB / 474.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.1203, allocations: 59.39 kB / 474.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.775e-05/0.1203, allocations: 97.86 kB / 475 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.617e-05/0.1204, allocations: 33.7 kB / 475.1 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.853e-05/0.1204, allocations: 84.12 kB / 475.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.978e-05/0.1205, allocations: 19.72 kB / 475.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.17e-05/0.1205, allocations: 21.7 kB / 475.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.1206, allocations: 314.8 kB / 475.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.543e-05/0.1207, allocations: 31.92 kB / 475.5 MB, free: 9.867 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.788e-05/0.1208, allocations: 74.78 kB / 475.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001854/0.121, allocations: 148.4 kB / 475.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.121, allocations: 0 / 475.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002142/0.1212, allocations: 163.2 kB / 475.9 MB, free: 9.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.181e-05/0.1212, allocations: 37.7 kB / 475.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.1212, allocations: 0 / 475.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.1213, allocations: 4 kB / 475.9 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001016/0.1214, allocations: 19.92 kB / 476 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.1214, allocations: 4 kB / 476 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.493e-05/0.1214, allocations: 3.906 kB / 476 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.376e-05/0.1214, allocations: 12 kB / 476 MB, free: 9.336 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.0001456/0.1216, allocations: 136.6 kB / 476.1 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.144e-05/0.1216, allocations: 7.938 kB / 476.1 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.081e-05/0.1217, allocations: 7.969 kB / 476.1 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1217, allocations: 0 / 476.1 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1217, allocations: 0 / 476.1 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.1217, allocations: 4 kB / 476.1 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001515/0.1218, allocations: 173.5 kB / 476.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-06/0.1219, allocations: 0 / 476.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.381e-05/0.1219, allocations: 8 kB / 476.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.1219, allocations: 8 kB / 476.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.1219, allocations: 12.27 kB / 476.3 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1219, allocations: 3.938 kB / 476.3 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1219, allocations: 0 / 476.3 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001794/0.1221, allocations: 129 kB / 476.5 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.565e-05/0.1222, allocations: 89.14 kB / 476.6 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.678e-05/0.1222, allocations: 0 / 476.6 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002216/0.1224, allocations: 35.95 kB / 476.6 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.629e-05/0.1225, allocations: 7.984 kB / 476.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.1225, allocations: 4 kB / 476.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.248e-05/0.1225, allocations: 79.28 kB / 476.7 MB, free: 8.551 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1225, allocations: 0 / 476.7 MB, free: 8.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002659/0.1228, allocations: 43.98 kB / 476.7 MB, free: 8.508 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.0006978/0.1235, allocations: 0.7366 MB / 477.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001868/0.1237, allocations: 143.6 kB / 477.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.1237, allocations: 0 / 477.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.447e-05/0.1238, allocations: 31.92 kB / 477.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001475/0.1239, allocations: 4 kB / 477.6 MB, free: 7.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.1252, allocations: 1.431 MB / 479.1 MB, free: 6.008 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002475/0.1255, allocations: 0.6848 MB / 479.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.873e-05/0.1256, allocations: 20.58 kB / 479.8 MB, free: 5.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.959e-05/0.1256, allocations: 15.44 kB / 479.8 MB, free: 5.258 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1256, allocations: 0 / 479.8 MB, free: 5.258 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01221/0.1378, allocations: 2.699 MB / 482.5 MB, free: 2.676 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002396/0.1381, allocations: 238.5 kB / 482.7 MB, free: 2.422 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.84/1.978, allocations: 4 kB / 482.7 MB, free: 2.418 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