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.001636/0.001636, 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.001634/0.001634, allocations: 216.6 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.612/1.612, allocations: 207.7 MB / 233.8 MB, free: 9.789 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.2333/0.2333, allocations: 44.26 MB / 330.3 MB, free: 9.324 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.00232/0.00232, allocations: 75.89 kB / 467.5 MB, free: 4.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1406, allocations: 61.04 MB / 0.5162 GB, free: 7.188 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001872/0.1424, allocations: 0.5454 MB / 0.5167 GB, free: 6.641 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.1435, allocations: 437.2 kB / 0.5171 GB, free: 6.211 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.146e-05/0.1435, allocations: 0 / 0.5171 GB, free: 6.211 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.088e-05/0.1436, allocations: 0 / 0.5171 GB, free: 6.211 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001304/0.1437, allocations: 15.92 kB / 0.5171 GB, free: 6.195 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005958/0.1443, allocations: 175.5 kB / 0.5173 GB, free: 6.023 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000147/0.1445, allocations: 83.86 kB / 0.5174 GB, free: 5.941 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.628e-05/0.1445, allocations: 0 / 0.5174 GB, free: 5.941 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.357e-05/0.1446, allocations: 47.89 kB / 0.5174 GB, free: 5.895 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003136/0.1477, allocations: 462.3 kB / 0.5178 GB, free: 5.5 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.229e-05/0.1478, allocations: 4 kB / 0.5179 GB, free: 5.496 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.134e-05/0.1478, allocations: 15.94 kB / 0.5179 GB, free: 5.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.558e-05/0.1479, allocations: 27.89 kB / 0.5179 GB, free: 5.453 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.802e-05/0.1479, allocations: 23.91 kB / 0.5179 GB, free: 5.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00019/0.1481, allocations: 67.78 kB / 0.518 GB, free: 5.363 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1481, allocations: 0 / 0.518 GB, free: 5.363 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1481, allocations: 0 / 0.518 GB, free: 5.363 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.1481, allocations: 0 / 0.518 GB, free: 5.363 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.0006133/0.1488, allocations: 312 kB / 0.5183 GB, free: 5.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.1488, allocations: 16.02 kB / 0.5183 GB, free: 5.004 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.082e-05/0.1489, allocations: 38.75 kB / 0.5183 GB, free: 4.957 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.17e-05/0.1489, allocations: 12.89 kB / 0.5183 GB, free: 4.945 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001959/0.1491, allocations: 126.4 kB / 0.5185 GB, free: 4.797 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.1491, allocations: 4.375 kB / 0.5185 GB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.166e-05/0.1491, allocations: 384 / 0.5185 GB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002102/0.1493, allocations: 90.19 kB / 0.5186 GB, free: 4.699 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.1493, allocations: 3.938 kB / 0.5186 GB, free: 4.695 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.1494, allocations: 8 kB / 0.5186 GB, free: 4.688 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.1494, allocations: 0 / 0.5186 GB, free: 4.688 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.845e-05/0.1494, allocations: 19.98 kB / 0.5186 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001956/0.1496, allocations: 136.7 kB / 0.5187 GB, free: 4.492 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001028/0.1497, allocations: 54.47 kB / 0.5188 GB, free: 4.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.548e-05/0.1498, allocations: 20.91 kB / 0.5188 GB, free: 4.406 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.1498, allocations: 4 kB / 0.5188 GB, free: 4.402 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002529/0.15, allocations: 139.1 kB / 0.5189 GB, free: 4.254 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.1501, allocations: 0 / 0.5189 GB, free: 4.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003144/0.1504, allocations: 121.8 kB / 0.519 GB, free: 4.129 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.418e-05/0.1504, allocations: 63.34 kB / 0.5191 GB, free: 4.055 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.744e-05/0.1505, allocations: 97.84 kB / 0.5192 GB, free: 3.949 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/0.1505, allocations: 33.7 kB / 0.5192 GB, free: 3.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.425e-05/0.1506, allocations: 80.14 kB / 0.5193 GB, free: 3.828 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.498e-05/0.1506, allocations: 27.8 kB / 0.5193 GB, free: 3.801 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.83e-05/0.1507, allocations: 37.92 kB / 0.5194 GB, free: 3.758 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.1508, allocations: 318.8 kB / 0.5197 GB, free: 3.438 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.682e-05/0.1509, allocations: 45.69 kB / 0.5197 GB, free: 3.387 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001127/0.151, allocations: 108.5 kB / 0.5198 GB, free: 3.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002078/0.1512, allocations: 144.4 kB / 0.52 GB, free: 3.078 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.1512, allocations: 0 / 0.52 GB, free: 3.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002496/0.1515, allocations: 189 kB / 0.5201 GB, free: 2.875 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.054e-05/0.1515, allocations: 37.73 kB / 0.5202 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.1515, allocations: 0 / 0.5202 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.1515, allocations: 4 kB / 0.5202 GB, free: 2.828 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.1516, allocations: 15.98 kB / 0.5202 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.1516, allocations: 4 kB / 0.5202 GB, free: 2.809 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.047e-05/0.1517, allocations: 11.95 kB / 0.5202 GB, free: 2.797 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/0.1517, allocations: 7.938 kB / 0.5202 GB, free: 2.789 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.000154/0.1519, allocations: 125.8 kB / 0.5203 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.265e-05/0.1519, allocations: 19.95 kB / 0.5204 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.668e-05/0.1519, allocations: 8.062 kB / 0.5204 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1519, allocations: 4 kB / 0.5204 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.1519, allocations: 0 / 0.5204 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.1519, allocations: 3.984 kB / 0.5204 GB, free: 2.617 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001627/0.1521, allocations: 140.7 kB / 0.5205 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.1521, allocations: 0 / 0.5205 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.542e-05/0.1521, allocations: 11.88 kB / 0.5205 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.1522, allocations: 7.938 kB / 0.5205 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.1522, allocations: 0 / 0.5205 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.1522, allocations: 3.984 kB / 0.5205 GB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.1522, allocations: 4 kB / 0.5205 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002193/0.1524, allocations: 133 kB / 0.5207 GB, free: 2.262 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.15e-05/0.1524, allocations: 7.938 kB / 0.5207 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.132e-05/0.1524, allocations: 4 kB / 0.5207 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001797/0.1526, allocations: 19.97 kB / 0.5207 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.817e-05/0.1526, allocations: 7.938 kB / 0.5207 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.525e-05/0.1526, allocations: 7.984 kB / 0.5207 GB, free: 2.215 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.077e-05/0.1527, allocations: 75.47 kB / 0.5208 GB, free: 2.141 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1527, allocations: 0 / 0.5208 GB, free: 2.141 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002324/0.1529, allocations: 28 kB / 0.5208 GB, free: 2.113 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.0007267/0.1536, allocations: 0.7016 MB / 0.5215 GB, free: 1.387 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002463/0.1539, allocations: 149 kB / 0.5216 GB, free: 1.223 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1539, allocations: 0 / 0.5216 GB, free: 1.223 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.345e-05/0.154, allocations: 31.92 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.0001569/0.1541, allocations: 8.422 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.001633/0.1557, allocations: 1.535 MB / 0.5232 GB, free: 15.49 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.137e-05/0.1558, allocations: 63.34 kB / 0.5232 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.714e-05/0.1559, 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.348e-05/0.1559, allocations: 23.42 kB / 0.5233 GB, free: 15.37 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1559, allocations: 3.938 kB / 0.5233 GB, free: 15.37 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03081/0.1867, allocations: 3.14 MB / 0.5263 GB, free: 12.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.76, allocations: 3.938 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 & 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: 15.27419167617336] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 11.864487308077514 12.081015032 11.739431041 Calling exit ...