Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_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.001059/0.001059, allocations: 96.23 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001269/0.001269, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2183/0.2183, allocations: 45.92 MB / 344 MB, free: 12.12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002792/0.0002792, allocations: 8 kB / 418.1 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1369, allocations: 63.46 MB / 481.5 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0007556/0.1378, allocations: 266.8 kB / 481.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007782/0.1385, allocations: 401.5 kB / 482.2 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.949e-05/0.1386, allocations: 0 / 482.2 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.841e-05/0.1387, allocations: 8 kB / 482.2 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001026/0.1388, allocations: 0 / 482.2 MB, free: 4.637 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.0004777/0.1393, allocations: 143.6 kB / 482.3 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001216/0.1394, allocations: 51.91 kB / 482.4 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.747e-05/0.1394, allocations: 3.984 kB / 482.4 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.634e-05/0.1395, allocations: 39.91 kB / 482.4 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.189e-05/0.1396, allocations: 15.97 kB / 482.4 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.013e-05/0.1396, allocations: 4 kB / 482.4 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000139/0.1397, allocations: 75.86 kB / 482.5 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.675e-05/0.1398, allocations: 19.97 kB / 482.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.243e-05/0.1398, allocations: 29.7 kB / 482.5 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.14, allocations: 87.8 kB / 482.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.14, allocations: 0 / 482.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.14, allocations: 0 / 482.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.566e-06/0.14, allocations: 0 / 482.6 MB, free: 4.168 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.0004908/0.1405, allocations: 381 kB / 483 MB, free: 3.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.1406, allocations: 12.03 kB / 483 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.84e-05/0.1406, allocations: 42.48 kB / 483.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.818e-05/0.1407, allocations: 8 kB / 483.1 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.1409, allocations: 179.3 kB / 483.2 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/0.141, allocations: 0 / 483.2 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.724e-05/0.141, allocations: 4 kB / 483.2 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002382/0.1412, allocations: 89.62 kB / 483.3 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.1413, allocations: 0 / 483.3 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.624e-05/0.1413, allocations: 7.938 kB / 483.3 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.1413, allocations: 0 / 483.3 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.762e-05/0.1414, allocations: 23.92 kB / 483.4 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002509/0.1417, allocations: 181.4 kB / 483.5 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001209/0.1418, allocations: 46.56 kB / 483.6 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.1418, allocations: 0 / 483.6 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002897/0.1421, allocations: 139.3 kB / 483.7 MB, free: 2.898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.1421, allocations: 0 / 483.7 MB, free: 2.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003653/0.1425, allocations: 198.8 kB / 483.9 MB, free: 2.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.447e-05/0.1426, allocations: 63.39 kB / 484 MB, free: 2.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.701e-05/0.1427, allocations: 97.84 kB / 484.1 MB, free: 2.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.696e-05/0.1427, allocations: 29.7 kB / 484.1 MB, free: 2.465 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.584e-05/0.1428, allocations: 84.27 kB / 484.2 MB, free: 2.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.648e-05/0.1428, allocations: 23.7 kB / 484.2 MB, free: 2.352 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.056e-05/0.1429, allocations: 8 kB / 484.2 MB, free: 2.344 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.143, allocations: 318.8 kB / 484.5 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.506e-05/0.1431, allocations: 23.98 kB / 484.6 MB, free: 2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.718e-05/0.1432, allocations: 74.84 kB / 484.6 MB, free: 1.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/0.1433, allocations: 61.62 kB / 484.7 MB, free: 1.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.1433, allocations: 4 kB / 484.7 MB, free: 1.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002352/0.1436, allocations: 155.1 kB / 484.8 MB, free: 1.668 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.555e-05/0.1436, allocations: 33.7 kB / 484.9 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.1436, allocations: 224 / 484.9 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.1437, allocations: 8.188 kB / 484.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.1438, allocations: 19.92 kB / 484.9 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.1438, allocations: 4 kB / 484.9 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.776e-05/0.1439, allocations: 11.91 kB / 484.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.1439, allocations: 4 kB / 484.9 MB, free: 1.582 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,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001834/0.1441, allocations: 144 kB / 485.1 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.18e-05/0.1441, allocations: 4 kB / 485.1 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.443e-05/0.1442, allocations: 12.19 kB / 485.1 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1442, allocations: 0 / 485.1 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.439e-05/0.1442, allocations: 7.984 kB / 485.1 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-06/0.1442, allocations: 3.938 kB / 485.1 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000154/0.1443, allocations: 173.5 kB / 485.3 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1444, allocations: 0 / 485.3 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.817e-05/0.1444, allocations: 7.984 kB / 485.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.1444, allocations: 0 / 485.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.1444, allocations: 4 kB / 485.3 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1444, allocations: 0 / 485.3 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1444, allocations: 4 kB / 485.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002006/0.1446, allocations: 133 kB / 485.4 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.8e-05/0.1447, allocations: 88.97 kB / 485.5 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.1447, allocations: 0 / 485.5 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.1449, allocations: 23.97 kB / 485.5 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.872e-05/0.145, allocations: 12.05 kB / 485.5 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.72e-05/0.145, allocations: 12 kB / 485.5 MB, free: 0.875 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.062e-05/0.145, allocations: 79.27 kB / 485.6 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1451, allocations: 0 / 485.6 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002686/0.1453, allocations: 40 kB / 485.7 MB, free: 0.7578 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006948/0.146, allocations: 0.7506 MB / 486.4 MB, free: 0 / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001969/0.1462, allocations: 123.2 kB / 486.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1462, allocations: 0 / 486.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.549e-05/0.1463, allocations: 32.42 kB / 486.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001021/0.1464, allocations: 4 kB / 486.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008775/0.1473, allocations: 1.457 MB / 488 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002176/0.1475, allocations: 0.6809 MB / 488.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.705e-05/0.1476, allocations: 16.66 kB / 488.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.312e-05/0.1476, allocations: 19.42 kB / 488.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1476, allocations: 0 / 488.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01249/0.1601, allocations: 2.613 MB / 491.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001725/0.1603, allocations: 218.7 kB / 491.6 MB, free: 10.81 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.959/2.12, allocations: 0 / 491.6 MB, free: 10.81 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat does not exist to compare? outputFormat=mat