Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001756/0.001756, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002043/0.002043, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2922/0.2922, allocations: 46.1 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002293/0.002293, allocations: 77.88 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1259, allocations: 62.45 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001839/0.1277, allocations: 0.527 MB / 480.7 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009116/0.1287, allocations: 441.3 kB / 481.2 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.127e-05/0.1287, allocations: 0 / 481.2 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.353e-05/0.1288, allocations: 3.938 kB / 481.2 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001344/0.1289, allocations: 15.94 kB / 481.2 MB, free: 4.148 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.000593/0.1296, allocations: 166.3 kB / 481.4 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001534/0.1297, allocations: 79.84 kB / 481.4 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.552e-05/0.1298, allocations: 8 kB / 481.4 MB, free: 3.902 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.156e-05/0.1298, allocations: 43.89 kB / 481.5 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.57e-05/0.1299, allocations: 19.92 kB / 481.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.158e-05/0.13, allocations: 0 / 481.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000197/0.1302, allocations: 99.84 kB / 481.6 MB, free: 3.742 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.387e-05/0.1302, allocations: 23.95 kB / 481.6 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.296e-05/0.1303, allocations: 27.91 kB / 481.6 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002309/0.1305, allocations: 127.7 kB / 481.8 MB, free: 3.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1305, allocations: 0 / 481.8 MB, free: 3.566 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1305, allocations: 0 / 481.8 MB, free: 3.566 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.1306, allocations: 0 / 481.8 MB, free: 3.566 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.0006339/0.1312, allocations: 409.1 kB / 482.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.1312, allocations: 8.031 kB / 482.2 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.037e-05/0.1313, allocations: 38.75 kB / 482.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.528e-05/0.1313, allocations: 0.9375 kB / 482.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002144/0.1316, allocations: 192.6 kB / 482.4 MB, free: 2.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.1316, allocations: 4.375 kB / 482.4 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.1316, allocations: 4.375 kB / 482.4 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002051/0.1318, allocations: 82.2 kB / 482.5 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.1318, allocations: 7.938 kB / 482.5 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.233e-05/0.1319, allocations: 3.984 kB / 482.5 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.1319, allocations: 0 / 482.5 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.548e-05/0.132, allocations: 23.92 kB / 482.5 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002325/0.1322, allocations: 173.5 kB / 482.7 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001033/0.1323, allocations: 46.56 kB / 482.7 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.09e-05/0.1324, allocations: 24.91 kB / 482.8 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.572e-05/0.1324, allocations: 0 / 482.8 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003028/0.1327, allocations: 143.3 kB / 482.9 MB, free: 2.246 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.522e-06/0.1327, allocations: 0 / 482.9 MB, free: 2.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003152/0.133, allocations: 125.5 kB / 483 MB, free: 2.117 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.1331, allocations: 51.41 kB / 483.1 MB, free: 2.055 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.623e-05/0.1332, allocations: 105.8 kB / 483.2 MB, free: 1.941 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.1332, allocations: 29.7 kB / 483.2 MB, free: 1.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.405e-05/0.1333, allocations: 84.14 kB / 483.3 MB, free: 1.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.433e-05/0.1333, allocations: 27.64 kB / 483.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.492e-05/0.1334, allocations: 29.72 kB / 483.4 MB, free: 1.758 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.1335, allocations: 322.8 kB / 483.7 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.242e-05/0.1336, allocations: 23.98 kB / 483.7 MB, free: 1.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.869e-05/0.1337, allocations: 78.22 kB / 483.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002107/0.1339, allocations: 148.3 kB / 483.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1339, allocations: 0 / 483.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002486/0.1341, allocations: 167.1 kB / 484.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.847e-05/0.1342, allocations: 37.7 kB / 484.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.1342, allocations: 0 / 484.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.1342, allocations: 4 kB / 484.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/0.1343, allocations: 19.92 kB / 484.1 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.1344, allocations: 4 kB / 484.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.924e-05/0.1344, allocations: 3.906 kB / 484.1 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.1344, allocations: 12.22 kB / 484.2 MB, free: 0.875 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.0001479/0.1346, allocations: 129.8 kB / 484.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.931e-05/0.1346, allocations: 7.938 kB / 484.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.113e-05/0.1347, allocations: 7.969 kB / 484.3 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1347, allocations: 0 / 484.3 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.1347, allocations: 0 / 484.3 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1347, allocations: 3.938 kB / 484.3 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001597/0.1349, allocations: 177.5 kB / 484.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1349, allocations: 7.938 kB / 484.5 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.587e-05/0.1349, allocations: 7.938 kB / 484.5 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1349, allocations: 0 / 484.5 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.1349, allocations: 7.984 kB / 484.5 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.1349, allocations: 4 kB / 484.5 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1349, allocations: 0 / 484.5 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002075/0.1352, allocations: 125.4 kB / 484.6 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.913e-05/0.1352, allocations: 92.95 kB / 484.7 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.1352, allocations: 7.938 kB / 484.7 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.1355, allocations: 23.97 kB / 484.7 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.918e-05/0.1355, allocations: 0 / 484.7 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.1355, allocations: 7.984 kB / 484.8 MB, free: 184 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.557e-05/0.1356, allocations: 79.28 kB / 484.8 MB, free: 104 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1356, allocations: 0 / 484.8 MB, free: 104 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002899/0.1359, allocations: 47.98 kB / 484.9 MB, free: 56 kB / 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.0008388/0.1367, allocations: 0.7376 MB / 485.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002291/0.1369, allocations: 139.4 kB / 485.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.137, allocations: 0 / 485.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.194e-05/0.137, allocations: 28.22 kB / 485.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001585/0.1372, allocations: 14.05 kB / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001511/0.1387, allocations: 1.439 MB / 487.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/0.139, allocations: 0.6807 MB / 487.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.462e-05/0.1391, allocations: 16.64 kB / 487.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.725e-05/0.1391, allocations: 15.44 kB / 487.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1391, allocations: 4 kB / 487.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02522/0.1644, allocations: 2.977 MB / 490.9 MB, free: 9.906 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.116/8.28, allocations: 1.078 kB / 490.9 MB, free: 9.906 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1)