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.001297/0.001297, allocations: 111.7 kB / 19.69 MB, free: 2.188 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.001454/0.001454, allocations: 217.6 kB / 23 MB, free: 5.004 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.497/1.497, allocations: 207.6 MB / 233.8 MB, free: 10 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.2337/0.2337, allocations: 44.24 MB / 330.3 MB, free: 9.531 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.002152/0.002152, allocations: 63.91 kB / 467.5 MB, free: 4.52 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1365, allocations: 61.04 MB / 0.5161 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001767/0.1383, allocations: 0.5523 MB / 0.5167 GB, free: 6.789 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000944/0.1392, allocations: 449.2 kB / 0.5171 GB, free: 6.348 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.689e-05/0.1393, allocations: 8 kB / 0.5171 GB, free: 6.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.381e-05/0.1394, allocations: 3.938 kB / 0.5171 GB, free: 6.336 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001207/0.1395, allocations: 3.984 kB / 0.5171 GB, free: 6.332 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005711/0.1401, allocations: 179.5 kB / 0.5173 GB, free: 6.156 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001745/0.1402, allocations: 87.8 kB / 0.5174 GB, free: 6.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.642e-05/0.1403, allocations: 7.984 kB / 0.5174 GB, free: 6.062 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.829e-05/0.1403, allocations: 35.97 kB / 0.5174 GB, free: 6.027 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003156/0.1435, allocations: 477.4 kB / 0.5179 GB, free: 5.621 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.172e-05/0.1435, allocations: 4 kB / 0.5179 GB, free: 5.617 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.514e-05/0.1436, allocations: 12 kB / 0.5179 GB, free: 5.605 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.959e-05/0.1437, allocations: 19.95 kB / 0.5179 GB, free: 5.586 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.312e-05/0.1437, allocations: 27.91 kB / 0.5179 GB, free: 5.559 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001946/0.1439, allocations: 75.7 kB / 0.518 GB, free: 5.484 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1439, allocations: 3.938 kB / 0.518 GB, free: 5.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1439, allocations: 0 / 0.518 GB, free: 5.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.012e-06/0.1439, allocations: 0 / 0.518 GB, free: 5.48 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.0005741/0.1445, allocations: 316 kB / 0.5183 GB, free: 5.133 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.1445, allocations: 8.031 kB / 0.5183 GB, free: 5.125 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.942e-05/0.1446, allocations: 34.75 kB / 0.5184 GB, free: 5.082 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.622e-05/0.1446, allocations: 8.891 kB / 0.5184 GB, free: 5.074 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.1448, allocations: 122.5 kB / 0.5185 GB, free: 4.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.853e-06/0.1448, allocations: 8.312 kB / 0.5185 GB, free: 4.922 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.1448, allocations: 8.375 kB / 0.5185 GB, free: 4.914 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001929/0.145, allocations: 86.19 kB / 0.5186 GB, free: 4.824 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.145, allocations: 7.938 kB / 0.5186 GB, free: 4.816 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.145, allocations: 0 / 0.5186 GB, free: 4.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.145, allocations: 0 / 0.5186 GB, free: 4.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.784e-05/0.1451, allocations: 27.91 kB / 0.5186 GB, free: 4.789 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000187/0.1453, allocations: 140.7 kB / 0.5188 GB, free: 4.609 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.6e-05/0.1454, allocations: 46.55 kB / 0.5188 GB, free: 4.555 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.758e-05/0.1454, allocations: 24.91 kB / 0.5188 GB, free: 4.527 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.24e-05/0.1454, allocations: 4 kB / 0.5188 GB, free: 4.523 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002478/0.1457, allocations: 135.2 kB / 0.519 GB, free: 4.379 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.1457, allocations: 4 kB / 0.519 GB, free: 4.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003097/0.146, allocations: 130 kB / 0.5191 GB, free: 4.242 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.1461, allocations: 55.41 kB / 0.5191 GB, free: 4.176 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.964e-05/0.1461, allocations: 93.86 kB / 0.5192 GB, free: 4.074 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.431e-05/0.1462, allocations: 37.62 kB / 0.5193 GB, free: 4.031 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.456e-05/0.1462, allocations: 84.14 kB / 0.5193 GB, free: 3.945 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.76e-05/0.1463, allocations: 23.81 kB / 0.5194 GB, free: 3.922 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.076e-05/0.1463, allocations: 29.7 kB / 0.5194 GB, free: 3.887 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.1465, allocations: 326.8 kB / 0.5197 GB, free: 3.559 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.93e-05/0.1465, allocations: 19.98 kB / 0.5197 GB, free: 3.539 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.673e-05/0.1466, allocations: 74.88 kB / 0.5198 GB, free: 3.441 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002001/0.1468, allocations: 144.4 kB / 0.5199 GB, free: 3.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.1468, allocations: 4 kB / 0.5199 GB, free: 3.266 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002378/0.147, allocations: 163.1 kB / 0.5201 GB, free: 3.094 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.958e-05/0.1471, allocations: 33.7 kB / 0.5201 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1471, allocations: 3.984 kB / 0.5201 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.1471, allocations: 4 kB / 0.5201 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.1472, allocations: 19.92 kB / 0.5201 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.1472, allocations: 4 kB / 0.5202 GB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.196e-05/0.1473, allocations: 11.95 kB / 0.5202 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.1473, allocations: 4 kB / 0.5202 GB, free: 3.008 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.000168/0.1475, allocations: 130 kB / 0.5203 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.833e-05/0.1475, allocations: 11.89 kB / 0.5203 GB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.745e-05/0.1475, allocations: 15.98 kB / 0.5203 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.1475, allocations: 0 / 0.5203 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1475, allocations: 4 kB / 0.5203 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.1475, allocations: 0 / 0.5203 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001453/0.1477, allocations: 144.7 kB / 0.5205 GB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1477, allocations: 4 kB / 0.5205 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.337e-05/0.1477, allocations: 11.92 kB / 0.5205 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.1477, allocations: 4 kB / 0.5205 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.1477, allocations: 4.062 kB / 0.5205 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.1477, allocations: 3.938 kB / 0.5205 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1477, allocations: 0 / 0.5205 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002003/0.1479, allocations: 133 kB / 0.5206 GB, free: 2.477 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.734e-06/0.1479, allocations: 3.938 kB / 0.5206 GB, free: 2.473 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/0.148, allocations: 11.98 kB / 0.5206 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001835/0.1482, allocations: 15.98 kB / 0.5206 GB, free: 2.445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.176e-05/0.1482, allocations: 7.984 kB / 0.5206 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.1482, allocations: 11.94 kB / 0.5207 GB, free: 2.426 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.235e-05/0.1483, allocations: 83.44 kB / 0.5207 GB, free: 2.344 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.1e-08/0.1483, allocations: 0 / 0.5207 GB, free: 2.344 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002297/0.1485, allocations: 24 kB / 0.5208 GB, free: 2.32 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.0006972/0.1492, allocations: 0.6899 MB / 0.5214 GB, free: 1.605 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002121/0.1494, allocations: 119.2 kB / 0.5216 GB, free: 1.477 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.1494, allocations: 4 kB / 0.5216 GB, free: 1.473 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.104e-05/0.1495, allocations: 28.42 kB / 0.5216 GB, free: 1.445 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001582/0.1496, allocations: 15.97 kB / 0.5216 GB, free: 1.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001489/0.1511, allocations: 1.419 MB / 0.523 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/0.1514, allocations: 0.6846 MB / 0.5237 GB, free: 15.17 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.601e-05/0.1514, allocations: 16.66 kB / 0.5237 GB, free: 15.15 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.067e-05/0.1515, allocations: 19.42 kB / 0.5237 GB, free: 15.13 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1515, allocations: 3.938 kB / 0.5237 GB, free: 15.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0281/0.1796, allocations: 2.61 MB / 0.5262 GB, free: 12.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/10.9, allocations: 0 / 0.5262 GB, free: 12.5 MB / 414.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000166639 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.139151354000205] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 11.000742212003388 11.204658234 10.868452407 Calling exit ...