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.001295/0.001295, allocations: 104.1 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.001356/0.001356, 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.476/1.476, allocations: 227.4 MB / 246.8 MB, free: 10.5 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.2503/0.2503, allocations: 46.11 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.002181/0.002181, allocations: 87.66 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1255, allocations: 62.45 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001999/0.1275, allocations: 0.5269 MB / 480.7 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.1286, allocations: 445.3 kB / 481.2 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.849e-05/0.1286, allocations: 3.938 kB / 481.2 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.45e-05/0.1287, allocations: 0 / 481.2 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001249/0.1288, allocations: 11.92 kB / 481.2 MB, free: 4.145 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.0005817/0.1294, allocations: 163.5 kB / 481.3 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001442/0.1296, allocations: 79.91 kB / 481.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.201e-05/0.1296, allocations: 8 kB / 481.4 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.093e-05/0.1297, allocations: 43.89 kB / 481.5 MB, free: 3.855 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.532e-05/0.1298, allocations: 19.86 kB / 481.5 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.641e-05/0.1298, allocations: 4 kB / 481.5 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002001/0.13, allocations: 95.91 kB / 481.6 MB, free: 3.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.633e-05/0.1301, allocations: 19.95 kB / 481.6 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.087e-05/0.1301, allocations: 23.91 kB / 481.6 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002245/0.1304, allocations: 131.7 kB / 481.8 MB, free: 3.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1304, allocations: 3.938 kB / 481.8 MB, free: 3.562 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1304, allocations: 0 / 481.8 MB, free: 3.562 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1304, allocations: 4 kB / 481.8 MB, free: 3.559 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.0006504/0.1311, allocations: 405.1 kB / 482.2 MB, free: 3.105 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.1311, allocations: 8.031 kB / 482.2 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.776e-05/0.1312, allocations: 34.75 kB / 482.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.813e-05/0.1312, allocations: 8.922 kB / 482.2 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000205/0.1314, allocations: 184.5 kB / 482.4 MB, free: 2.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.678e-06/0.1314, allocations: 8.375 kB / 482.4 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.297e-05/0.1315, allocations: 384 / 482.4 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002028/0.1317, allocations: 94.19 kB / 482.5 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.1317, allocations: 3.938 kB / 482.5 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.1317, allocations: 4 kB / 482.5 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.1317, allocations: 0 / 482.5 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.919e-05/0.1318, allocations: 23.92 kB / 482.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002252/0.132, allocations: 173.5 kB / 482.7 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.68e-05/0.1321, allocations: 46.55 kB / 482.7 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.861e-05/0.1322, allocations: 20.92 kB / 482.8 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.73e-05/0.1323, allocations: 4 kB / 482.8 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002908/0.1325, allocations: 131.3 kB / 482.9 MB, free: 2.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.442e-06/0.1326, allocations: 4 kB / 482.9 MB, free: 2.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003187/0.1329, allocations: 125.6 kB / 483 MB, free: 2.117 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.584e-05/0.133, allocations: 55.41 kB / 483.1 MB, free: 2.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.872e-05/0.133, allocations: 101.8 kB / 483.2 MB, free: 1.941 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.1331, allocations: 29.7 kB / 483.2 MB, free: 1.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.427e-05/0.1331, allocations: 80.14 kB / 483.3 MB, free: 1.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.802e-05/0.1332, allocations: 27.64 kB / 483.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.624e-05/0.1332, allocations: 37.7 kB / 483.3 MB, free: 1.754 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1334, allocations: 314.8 kB / 483.7 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.347e-05/0.1335, allocations: 23.98 kB / 483.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.412e-05/0.1336, allocations: 74.84 kB / 483.8 MB, free: 1.316 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002113/0.1338, allocations: 152.3 kB / 483.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1338, allocations: 0 / 483.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002445/0.134, allocations: 167.1 kB / 484.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.046e-05/0.1341, allocations: 32.36 kB / 484.1 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1341, allocations: 4 kB / 484.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.1341, allocations: 0 / 484.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.1342, allocations: 23.92 kB / 484.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.1343, allocations: 288 / 484.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.295e-05/0.1343, allocations: 11.91 kB / 484.1 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.1343, allocations: 8 kB / 484.1 MB, free: 0.8789 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.0001686/0.1345, allocations: 141.3 kB / 484.3 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.882e-05/0.1346, allocations: 3.938 kB / 484.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.277e-05/0.1346, allocations: 12.09 kB / 484.3 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.1346, allocations: 3.984 kB / 484.3 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1346, allocations: 0 / 484.3 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.1346, allocations: 0 / 484.3 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001789/0.1348, allocations: 181.5 kB / 484.5 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1348, allocations: 3.938 kB / 484.5 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.655e-05/0.1349, allocations: 11.94 kB / 484.5 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1349, allocations: 0 / 484.5 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.1349, allocations: 3.984 kB / 484.5 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.1349, allocations: 0 / 484.5 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.1349, allocations: 4 kB / 484.5 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002196/0.1351, allocations: 129 kB / 484.6 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.249e-05/0.1352, allocations: 84.95 kB / 484.7 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.1352, allocations: 4 kB / 484.7 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002024/0.1354, allocations: 23.97 kB / 484.7 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.602e-05/0.1355, allocations: 3.984 kB / 484.7 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-05/0.1355, allocations: 8 kB / 484.7 MB, free: 184 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.36e-05/0.1355, allocations: 79.28 kB / 484.8 MB, free: 104 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1355, allocations: 0 / 484.8 MB, free: 104 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002855/0.1358, allocations: 43.98 kB / 484.9 MB, free: 60 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.0008897/0.1367, allocations: 0.7467 MB / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000239/0.137, allocations: 135.6 kB / 485.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.137, allocations: 3.938 kB / 485.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.255e-05/0.137, allocations: 27.98 kB / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001677/0.1372, allocations: 14.22 kB / 485.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001595/0.1388, allocations: 1.433 MB / 487.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/0.1392, allocations: 0.6885 MB / 487.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.772e-05/0.1393, allocations: 12.66 kB / 487.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.82e-05/0.1393, allocations: 15.44 kB / 487.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1393, allocations: 0 / 487.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02475/0.1641, allocations: 2.979 MB / 490.9 MB, free: 9.902 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.175/8.339, allocations: 5.141 kB / 490.9 MB, free: 9.898 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1)