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.00094/0.00094, allocations: 97.89 kB / 17 MB, free: 6.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001097/0.001097, allocations: 193.6 kB / 17.91 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2188/0.2188, allocations: 45.92 MB / 344.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002632/0.0002632, allocations: 11.94 kB / 418.2 MB, free: 20.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1402, allocations: 63.46 MB / 481.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0007416/0.141, allocations: 262.8 kB / 481.9 MB, free: 5.039 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008966/0.1419, allocations: 405.6 kB / 482.3 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.441e-05/0.142, allocations: 4 kB / 482.3 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.347e-05/0.1421, allocations: 0 / 482.3 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001377/0.1422, allocations: 11.92 kB / 482.3 MB, free: 4.629 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.0006954/0.1429, allocations: 151.6 kB / 482.5 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001627/0.1431, allocations: 63.86 kB / 482.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.586e-05/0.1432, allocations: 0 / 482.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.061e-05/0.1433, allocations: 43.89 kB / 482.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.317e-05/0.1433, allocations: 15.97 kB / 482.6 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.125e-05/0.1434, allocations: 4 kB / 482.6 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002718/0.1436, allocations: 87.84 kB / 482.7 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.391e-05/0.1437, allocations: 23.95 kB / 482.7 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.213e-05/0.1438, allocations: 33.64 kB / 482.7 MB, free: 4.207 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002144/0.144, allocations: 83.86 kB / 482.8 MB, free: 4.125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.144, allocations: 4 kB / 482.8 MB, free: 4.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.144, allocations: 0 / 482.8 MB, free: 4.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.1441, allocations: 0 / 482.8 MB, free: 4.121 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.0006092/0.1447, allocations: 385 kB / 483.2 MB, free: 3.691 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.1447, allocations: 12.03 kB / 483.2 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.062e-05/0.1448, allocations: 34.56 kB / 483.2 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.649e-05/0.1449, allocations: 8 kB / 483.2 MB, free: 3.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002284/0.1451, allocations: 179.3 kB / 483.4 MB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.1451, allocations: 0 / 483.4 MB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.981e-05/0.1451, allocations: 11.98 kB / 483.4 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002189/0.1454, allocations: 89.64 kB / 483.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.1454, allocations: 3.938 kB / 483.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.893e-05/0.1454, allocations: 0 / 483.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.1454, allocations: 0 / 483.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.135e-05/0.1455, allocations: 27.97 kB / 483.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000232/0.1458, allocations: 181.4 kB / 483.7 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.909e-05/0.1459, allocations: 42.55 kB / 483.8 MB, free: 3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.374e-05/0.1459, allocations: 28.91 kB / 483.8 MB, free: 2.969 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.146, allocations: 4 kB / 483.8 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002648/0.1462, allocations: 127.2 kB / 483.9 MB, free: 2.828 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.1462, allocations: 0 / 483.9 MB, free: 2.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.000325/0.1466, allocations: 125.5 kB / 484 MB, free: 2.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.1466, allocations: 59.55 kB / 484.1 MB, free: 2.629 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.878e-05/0.1467, allocations: 101.8 kB / 484.2 MB, free: 2.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/0.1468, allocations: 29.7 kB / 484.2 MB, free: 2.484 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.91e-05/0.1468, allocations: 80.33 kB / 484.3 MB, free: 2.398 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.738e-05/0.1469, allocations: 23.72 kB / 484.3 MB, free: 2.375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.305e-06/0.1469, allocations: 4 kB / 484.3 MB, free: 2.371 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.147, allocations: 322.8 kB / 484.6 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.836e-05/0.1471, allocations: 19.98 kB / 484.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.58e-05/0.1472, allocations: 82.78 kB / 484.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.1473, allocations: 61.69 kB / 484.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1473, allocations: 4 kB / 484.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002289/0.1475, allocations: 159.1 kB / 485 MB, free: 1.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.792e-05/0.1476, allocations: 33.7 kB / 485 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.1476, allocations: 0 / 485 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.1476, allocations: 4 kB / 485 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.1478, allocations: 15.98 kB / 485 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.1478, allocations: 8.156 kB / 485 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.716e-05/0.1478, allocations: 15.84 kB / 485 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.1479, allocations: 8 kB / 485 MB, free: 1.594 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.000167/0.148, allocations: 129.7 kB / 485.2 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.115e-05/0.1481, allocations: 4 kB / 485.2 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.947e-05/0.1481, allocations: 7.969 kB / 485.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1481, allocations: 0 / 485.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.1481, allocations: 4 kB / 485.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.1482, allocations: 4 kB / 485.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/0.1483, allocations: 177.5 kB / 485.4 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.1483, allocations: 0 / 485.4 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.449e-05/0.1484, allocations: 15.98 kB / 485.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.1484, allocations: 0 / 485.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.1484, allocations: 4 kB / 485.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.1484, allocations: 0 / 485.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1484, allocations: 0 / 485.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002215/0.1487, allocations: 129.4 kB / 485.5 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.067e-05/0.1487, allocations: 92.91 kB / 485.6 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.1487, allocations: 0 / 485.6 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002065/0.149, allocations: 27.97 kB / 485.6 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.176e-05/0.149, allocations: 11.92 kB / 485.6 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.149, allocations: 7.938 kB / 485.7 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.375e-05/0.1491, allocations: 79.47 kB / 485.7 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1491, allocations: 4 kB / 485.7 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003149/0.1494, allocations: 43.98 kB / 485.8 MB, free: 0.7734 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.0008659/0.1503, allocations: 0.7384 MB / 486.5 MB, free: 28 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002504/0.1505, allocations: 127.3 kB / 486.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1505, allocations: 0 / 486.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.304e-05/0.1506, allocations: 31.92 kB / 486.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001669/0.1508, allocations: 10.95 kB / 486.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00095/0.1517, allocations: 0.5244 MB / 487.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.152, allocations: 0.6809 MB / 487.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.13e-05/0.1521, allocations: 12.66 kB / 487.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.91e-05/0.1521, allocations: 19.42 kB / 487.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1521, allocations: 0 / 487.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01443/0.1666, allocations: 2.646 MB / 490.6 MB, free: 11.99 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001905/0.1668, allocations: 221 kB / 490.8 MB, free: 11.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.959/2.126, allocations: 0 / 490.8 MB, free: 11.75 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