Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001605/0.001605, allocations: 97.91 kB / 20.48 MB, free: 1.367 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001568/0.001568, allocations: 215 kB / 23.78 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.563/1.563, allocations: 207.7 MB / 234.6 MB, free: 9.781 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2455/0.2455, allocations: 44.26 MB / 331.1 MB, free: 9.301 MB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002216/0.002216, allocations: 75.89 kB / 468.3 MB, free: 4.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1256, allocations: 61.04 MB / 0.5169 GB, free: 7.176 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002098/0.1277, allocations: 0.5415 MB / 0.5174 GB, free: 6.633 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.1287, allocations: 436.5 kB / 0.5179 GB, free: 6.203 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.443e-05/0.1288, allocations: 0 / 0.5179 GB, free: 6.203 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001069/0.1289, allocations: 4 kB / 0.5179 GB, free: 6.199 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001386/0.129, allocations: 15.92 kB / 0.5179 GB, free: 6.184 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006884/0.1297, allocations: 179.4 kB / 0.5181 GB, free: 6.008 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001857/0.1299, allocations: 79.86 kB / 0.5181 GB, free: 5.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.309e-05/0.1299, allocations: 11.98 kB / 0.5181 GB, free: 5.918 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.391e-05/0.13, allocations: 39.91 kB / 0.5182 GB, free: 5.879 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003369/0.1334, allocations: 457.9 kB / 0.5186 GB, free: 5.488 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.442e-05/0.1334, allocations: 4 kB / 0.5186 GB, free: 5.484 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.432e-05/0.1335, allocations: 16 kB / 0.5186 GB, free: 5.469 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.249e-05/0.1336, allocations: 27.89 kB / 0.5187 GB, free: 5.441 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.501e-05/0.1337, allocations: 23.91 kB / 0.5187 GB, free: 5.418 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002174/0.1339, allocations: 67.78 kB / 0.5187 GB, free: 5.352 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.1339, allocations: 3.984 kB / 0.5188 GB, free: 5.348 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1339, allocations: 0 / 0.5188 GB, free: 5.348 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.1339, allocations: 0 / 0.5188 GB, free: 5.348 MB / 398.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.0005723/0.1345, allocations: 316 kB / 0.5191 GB, free: 5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.1345, allocations: 8.031 kB / 0.5191 GB, free: 4.992 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.277e-05/0.1345, allocations: 192 / 0.5191 GB, free: 4.992 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.354e-05/0.1346, allocations: 46.69 kB / 0.5191 GB, free: 4.938 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.048e-05/0.1346, allocations: 12.83 kB / 0.5191 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001747/0.1348, allocations: 122.5 kB / 0.5192 GB, free: 4.781 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.1348, allocations: 4.375 kB / 0.5192 GB, free: 4.777 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.1348, allocations: 4.375 kB / 0.5192 GB, free: 4.773 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002085/0.135, allocations: 93.94 kB / 0.5193 GB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.135, allocations: 0 / 0.5193 GB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.039e-05/0.1351, allocations: 4 kB / 0.5193 GB, free: 4.672 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.1351, allocations: 4 kB / 0.5193 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.531e-05/0.1351, allocations: 23.97 kB / 0.5194 GB, free: 4.645 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001924/0.1353, allocations: 136.6 kB / 0.5195 GB, free: 4.469 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.728e-05/0.1354, allocations: 46.56 kB / 0.5195 GB, free: 4.414 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.805e-05/0.1355, allocations: 20.91 kB / 0.5196 GB, free: 4.391 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.849e-05/0.1355, allocations: 3.984 kB / 0.5196 GB, free: 4.387 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002761/0.1358, allocations: 139.2 kB / 0.5197 GB, free: 4.238 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.1358, allocations: 0 / 0.5197 GB, free: 4.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003066/0.1361, allocations: 117.6 kB / 0.5198 GB, free: 4.117 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/0.1361, allocations: 71.53 kB / 0.5199 GB, free: 4.035 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.452e-05/0.1362, allocations: 93.86 kB / 0.52 GB, free: 3.934 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.228e-05/0.1362, allocations: 33.7 kB / 0.52 GB, free: 3.895 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.786e-05/0.1363, allocations: 84.12 kB / 0.5201 GB, free: 3.809 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.586e-05/0.1363, allocations: 27.75 kB / 0.5201 GB, free: 3.781 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.487e-05/0.1364, allocations: 33.7 kB / 0.5201 GB, free: 3.742 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.1365, allocations: 314.8 kB / 0.5204 GB, free: 3.426 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.309e-05/0.1366, allocations: 53.67 kB / 0.5205 GB, free: 3.367 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.1367, allocations: 100.6 kB / 0.5206 GB, free: 3.238 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002033/0.1369, allocations: 144.4 kB / 0.5207 GB, free: 3.066 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1369, allocations: 0 / 0.5207 GB, free: 3.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002585/0.1372, allocations: 189 kB / 0.5209 GB, free: 2.863 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/0.1372, allocations: 33.73 kB / 0.5209 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.1372, allocations: 4 kB / 0.5209 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.1372, allocations: 4.281 kB / 0.5209 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.1374, allocations: 15.98 kB / 0.521 GB, free: 2.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.1374, allocations: 3.938 kB / 0.521 GB, free: 2.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.48e-05/0.1374, allocations: 15.89 kB / 0.521 GB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.1374, allocations: 8 kB / 0.521 GB, free: 2.773 MB / 398.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.0001605/0.1376, allocations: 129.8 kB / 0.5211 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.435e-05/0.1376, allocations: 15.89 kB / 0.5211 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.873e-05/0.1377, allocations: 12.05 kB / 0.5211 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.1377, allocations: 64 / 0.5211 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1377, allocations: 4 kB / 0.5211 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.1377, allocations: 0 / 0.5211 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001564/0.1378, allocations: 140.7 kB / 0.5213 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.1378, allocations: 3.938 kB / 0.5213 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.012e-05/0.1379, allocations: 7.938 kB / 0.5213 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1379, allocations: 0 / 0.5213 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.1379, allocations: 7.984 kB / 0.5213 GB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.1379, allocations: 0 / 0.5213 GB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1379, allocations: 4 kB / 0.5213 GB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002316/0.1381, allocations: 137 kB / 0.5214 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.169e-05/0.1381, allocations: 11.88 kB / 0.5214 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.1382, allocations: 0 / 0.5214 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002134/0.1384, allocations: 19.97 kB / 0.5215 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.162e-05/0.1384, allocations: 7.984 kB / 0.5215 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.1384, allocations: 4 kB / 0.5215 GB, free: 2.203 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.685e-05/0.1385, allocations: 79.28 kB / 0.5215 GB, free: 2.125 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1385, allocations: 0 / 0.5215 GB, free: 2.125 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00025/0.1387, allocations: 27.98 kB / 0.5216 GB, free: 2.098 MB / 398.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.0007277/0.1395, allocations: 0.706 MB / 0.5223 GB, free: 1.367 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002412/0.1397, allocations: 145 kB / 0.5224 GB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1397, allocations: 0 / 0.5224 GB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.31e-05/0.1398, allocations: 27.92 kB / 0.5224 GB, free: 1.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001655/0.1399, allocations: 8.438 kB / 0.5224 GB, free: 1.172 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001647/0.1416, allocations: 1.539 MB / 0.5239 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.776e-05/0.1416, allocations: 67.28 kB / 0.524 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.685e-05/0.1417, allocations: 12.66 kB / 0.524 GB, free: 15.38 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.965e-05/0.1417, allocations: 23.42 kB / 0.524 GB, free: 15.35 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.1417, allocations: 0 / 0.524 GB, free: 15.35 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02258/0.1643, allocations: 2.807 MB / 0.5268 GB, free: 12.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/11.83, allocations: 12 kB / 0.5268 GB, free: 12.51 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --stepSize=0.000166639 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.151255571981892] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 11.990959196933545 12.195149119 11.870373131 Calling exit ...