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.001775/0.001775, allocations: 100.3 kB / 19.69 MB, free: 1.805 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.002325/0.002325, allocations: 215.4 kB / 22.99 MB, free: 4.602 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.65/1.65, allocations: 207.7 MB / 233.8 MB, free: 9.797 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.2388/0.2388, allocations: 44.25 MB / 330.3 MB, free: 9.316 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",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.002412/0.002412, allocations: 83.88 kB / 467.5 MB, free: 4.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1299, allocations: 61.03 MB / 0.5161 GB, free: 7.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001879/0.1318, allocations: 0.5493 MB / 0.5167 GB, free: 6.645 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.1328, allocations: 437.2 kB / 0.5171 GB, free: 6.215 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.694e-05/0.1329, allocations: 0 / 0.5171 GB, free: 6.215 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.131e-05/0.1329, allocations: 0 / 0.5171 GB, free: 6.215 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001165/0.133, allocations: 15.92 kB / 0.5171 GB, free: 6.199 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007046/0.1338, allocations: 179.5 kB / 0.5173 GB, free: 6.023 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001821/0.1339, allocations: 83.84 kB / 0.5174 GB, free: 5.941 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.02e-05/0.134, allocations: 4 kB / 0.5174 GB, free: 5.938 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.003e-05/0.1341, allocations: 43.89 kB / 0.5174 GB, free: 5.895 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003339/0.1374, allocations: 450 kB / 0.5178 GB, free: 5.512 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.84e-05/0.1375, allocations: 8 kB / 0.5178 GB, free: 5.504 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.27e-05/0.1376, allocations: 19.98 kB / 0.5179 GB, free: 5.484 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.438e-05/0.1376, allocations: 23.91 kB / 0.5179 GB, free: 5.461 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.286e-05/0.1377, allocations: 23.89 kB / 0.5179 GB, free: 5.438 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001963/0.1379, allocations: 67.78 kB / 0.518 GB, free: 5.371 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1379, allocations: 0 / 0.518 GB, free: 5.371 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1379, allocations: 4 kB / 0.518 GB, free: 5.367 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.1379, allocations: 0 / 0.518 GB, free: 5.367 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.0005568/0.1384, allocations: 312 kB / 0.5183 GB, free: 5.023 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/0.1385, allocations: 8.031 kB / 0.5183 GB, free: 5.016 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.355e-05/0.1385, allocations: 50.73 kB / 0.5183 GB, free: 4.957 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.613e-05/0.1386, allocations: 8.891 kB / 0.5183 GB, free: 4.949 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001943/0.1388, allocations: 126.4 kB / 0.5185 GB, free: 4.801 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.1388, allocations: 384 / 0.5185 GB, free: 4.801 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.449e-05/0.1388, allocations: 4.375 kB / 0.5185 GB, free: 4.797 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002242/0.139, allocations: 90.19 kB / 0.5186 GB, free: 4.703 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.139, allocations: 3.938 kB / 0.5186 GB, free: 4.699 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.1391, allocations: 4 kB / 0.5186 GB, free: 4.695 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.1391, allocations: 3.984 kB / 0.5186 GB, free: 4.691 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.056e-05/0.1391, allocations: 23.98 kB / 0.5186 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000192/0.1393, allocations: 132.7 kB / 0.5187 GB, free: 4.496 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.46e-05/0.1394, allocations: 50.48 kB / 0.5188 GB, free: 4.438 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.545e-05/0.1395, allocations: 21.08 kB / 0.5188 GB, free: 4.414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.1395, allocations: 0 / 0.5188 GB, free: 4.414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002803/0.1398, allocations: 147.1 kB / 0.5189 GB, free: 4.258 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.262e-06/0.1398, allocations: 0 / 0.5189 GB, free: 4.258 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003177/0.1401, allocations: 121.5 kB / 0.519 GB, free: 4.133 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.077e-05/0.1401, allocations: 63.41 kB / 0.5191 GB, free: 4.059 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.885e-05/0.1402, allocations: 97.84 kB / 0.5192 GB, free: 3.953 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.093e-05/0.1403, allocations: 29.7 kB / 0.5192 GB, free: 3.918 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.103e-05/0.1403, allocations: 84.14 kB / 0.5193 GB, free: 3.832 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.657e-05/0.1404, allocations: 27.8 kB / 0.5193 GB, free: 3.805 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.193e-05/0.1404, allocations: 29.7 kB / 0.5194 GB, free: 3.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.1406, allocations: 322.8 kB / 0.5197 GB, free: 3.445 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.698e-05/0.1406, allocations: 45.69 kB / 0.5197 GB, free: 3.395 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.1408, allocations: 104.5 kB / 0.5198 GB, free: 3.262 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002237/0.141, allocations: 148.4 kB / 0.52 GB, free: 3.086 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.141, allocations: 0 / 0.52 GB, free: 3.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002949/0.1413, allocations: 189 kB / 0.5201 GB, free: 2.883 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.072e-05/0.1413, allocations: 33.73 kB / 0.5202 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/0.1413, allocations: 4 kB / 0.5202 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.1414, allocations: 0 / 0.5202 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.1415, allocations: 15.98 kB / 0.5202 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.1415, allocations: 7.938 kB / 0.5202 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.486e-05/0.1416, allocations: 11.95 kB / 0.5202 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.1416, allocations: 4 kB / 0.5202 GB, free: 2.801 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.0002095/0.1418, allocations: 129.8 kB / 0.5203 GB, free: 2.664 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.836e-05/0.1418, allocations: 15.89 kB / 0.5203 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.061e-05/0.1419, allocations: 12.06 kB / 0.5204 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.1419, allocations: 0 / 0.5204 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.1419, allocations: 0 / 0.5204 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1419, allocations: 0 / 0.5204 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001919/0.1421, allocations: 148.7 kB / 0.5205 GB, free: 2.445 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.1421, allocations: 0 / 0.5205 GB, free: 2.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.491e-05/0.1421, allocations: 11.88 kB / 0.5205 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1421, allocations: 3.938 kB / 0.5205 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.1421, allocations: 0 / 0.5205 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.1421, allocations: 3.984 kB / 0.5205 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.212e-05/0.1422, allocations: 8 kB / 0.5205 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002433/0.1424, allocations: 129.3 kB / 0.5206 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.159e-05/0.1424, allocations: 7.922 kB / 0.5207 GB, free: 2.266 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.1424, allocations: 11.88 kB / 0.5207 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00019/0.1426, allocations: 16.16 kB / 0.5207 GB, free: 2.238 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.608e-05/0.1427, allocations: 8 kB / 0.5207 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.977e-05/0.1427, allocations: 11.97 kB / 0.5207 GB, free: 2.219 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.047e-05/0.1427, allocations: 79.28 kB / 0.5208 GB, free: 2.141 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1427, allocations: 0 / 0.5208 GB, free: 2.141 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002484/0.143, allocations: 20 kB / 0.5208 GB, free: 2.121 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.0008613/0.1439, allocations: 0.7095 MB / 0.5215 GB, free: 1.387 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002899/0.1441, allocations: 149.2 kB / 0.5216 GB, free: 1.223 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1441, allocations: 0 / 0.5216 GB, free: 1.223 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.13e-05/0.1442, allocations: 31.91 kB / 0.5217 GB, free: 1.191 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000183/0.1444, allocations: 8.438 kB / 0.5217 GB, free: 1.184 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001838/0.1462, allocations: 1.531 MB / 0.5232 GB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.56e-05/0.1463, allocations: 71.28 kB / 0.5232 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.793e-05/0.1464, allocations: 12.66 kB / 0.5232 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.463e-05/0.1464, allocations: 19.42 kB / 0.5233 GB, free: 15.37 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1464, allocations: 0 / 0.5233 GB, free: 15.37 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03143/0.1778, allocations: 3.14 MB / 0.5263 GB, free: 12.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.41, allocations: 8 kB / 0.5263 GB, free: 12.2 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: 14.836613096762449] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 11.513791809324175 11.76387052 11.389555971 Calling exit ...