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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 104.1 kB / 16.27 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 184.5 kB / 17.19 MB, free: 5.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.586/1.586, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2485/0.2485, allocations: 43.52 MB / 313.9 MB, free: 0.543 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001535, allocations: 67.2 kB / 382.8 MB, free: 56.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1307, allocations: 57.79 MB / 440.6 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001901/0.1327, allocations: 0.5381 MB / 441.2 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008531/0.1336, allocations: 442.3 kB / 441.6 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.657e-05/0.1336, allocations: 4 kB / 441.6 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.103e-05/0.1337, allocations: 0 / 441.6 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001234/0.1339, allocations: 7.938 kB / 441.6 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005042/0.1344, allocations: 171.2 kB / 441.8 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001215/0.1345, allocations: 91.77 kB / 441.9 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.564e-05/0.1345, allocations: 0 / 441.9 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.535e-05/0.1346, allocations: 35.97 kB / 441.9 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002068/0.1367, allocations: 389.8 kB / 442.3 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.148e-05/0.1367, allocations: 4 kB / 442.3 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.327e-05/0.1368, allocations: 11.98 kB / 442.3 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.955e-05/0.1369, allocations: 19.97 kB / 442.3 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.678e-05/0.1369, allocations: 23.91 kB / 442.3 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001779/0.1371, allocations: 75.77 kB / 442.4 MB, free: 5.121 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1371, allocations: 0 / 442.4 MB, free: 5.121 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1371, allocations: 0 / 442.4 MB, free: 5.121 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.722e-06/0.1371, allocations: 0 / 442.4 MB, free: 5.121 MB / 318.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.0005136/0.1376, allocations: 393.1 kB / 442.8 MB, free: 4.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.1377, allocations: 15.89 kB / 442.8 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.195e-05/0.1377, allocations: 38.73 kB / 442.8 MB, free: 4.617 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.794e-05/0.1378, allocations: 8.844 kB / 442.8 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001592/0.1379, allocations: 184.3 kB / 443 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.138, allocations: 384 / 443 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.245e-05/0.138, allocations: 8.312 kB / 443 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001835/0.1382, allocations: 94.19 kB / 443.1 MB, free: 4.285 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.1382, allocations: 3.938 kB / 443.1 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/0.1382, allocations: 3.938 kB / 443.1 MB, free: 4.277 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.1382, allocations: 4 kB / 443.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.231e-05/0.1383, allocations: 23.98 kB / 443.2 MB, free: 4.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002006/0.1385, allocations: 165.6 kB / 443.3 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.277e-05/0.1386, allocations: 46.5 kB / 443.4 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.445e-05/0.1386, allocations: 20.92 kB / 443.4 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.323e-05/0.1387, allocations: 4 kB / 443.4 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001888/0.1389, allocations: 139.1 kB / 443.5 MB, free: 3.809 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.1389, allocations: 0 / 443.5 MB, free: 3.809 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002618/0.1391, allocations: 117.8 kB / 443.6 MB, free: 3.688 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.1392, allocations: 67.31 kB / 443.7 MB, free: 3.609 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.919e-05/0.1392, allocations: 97.86 kB / 443.8 MB, free: 3.504 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.1393, allocations: 29.7 kB / 443.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.972e-05/0.1393, allocations: 84.14 kB / 443.9 MB, free: 3.383 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.546e-05/0.1393, allocations: 23.7 kB / 443.9 MB, free: 3.359 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.728e-05/0.1393, allocations: 29.7 kB / 444 MB, free: 3.324 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.01e-05/0.1394, allocations: 318.8 kB / 444.3 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.076e-05/0.1394, allocations: 23.98 kB / 444.3 MB, free: 2.98 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.397e-05/0.1395, allocations: 86.58 kB / 444.4 MB, free: 2.875 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001445/0.1397, allocations: 144.4 kB / 444.5 MB, free: 2.703 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1397, allocations: 4 kB / 444.5 MB, free: 2.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001686/0.1398, allocations: 167 kB / 444.7 MB, free: 2.523 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.1399, allocations: 33.7 kB / 444.7 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1399, allocations: 0 / 444.7 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.1399, allocations: 4.219 kB / 444.7 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.625e-05/0.14, allocations: 19.98 kB / 444.8 MB, free: 2.461 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.14, allocations: 4 kB / 444.8 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.528e-05/0.1401, allocations: 11.91 kB / 444.8 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.1401, allocations: 7.938 kB / 444.8 MB, free: 2.438 MB / 318.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.0001041/0.1402, allocations: 126.9 kB / 444.9 MB, free: 2.305 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.557e-05/0.1402, allocations: 11.94 kB / 444.9 MB, free: 2.293 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.84e-05/0.1403, allocations: 4.25 kB / 444.9 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1403, allocations: 8 kB / 444.9 MB, free: 2.277 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1403, allocations: 0 / 444.9 MB, free: 2.277 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.1403, allocations: 3.938 kB / 444.9 MB, free: 2.273 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.828e-05/0.1404, allocations: 169.6 kB / 445.1 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1404, allocations: 0 / 445.1 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.309e-05/0.1404, allocations: 7.938 kB / 445.1 MB, free: 2.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.1404, allocations: 3.938 kB / 445.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.1404, allocations: 7.984 kB / 445.1 MB, free: 2.039 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.1405, allocations: 0 / 445.1 MB, free: 2.039 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1405, allocations: 3.938 kB / 445.1 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001594/0.1406, allocations: 133.2 kB / 445.2 MB, free: 1.887 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.225e-05/0.1407, allocations: 93.03 kB / 445.3 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.109e-05/0.1407, allocations: 4 kB / 445.3 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001887/0.1409, allocations: 15.97 kB / 445.4 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.427e-05/0.1409, allocations: 11.92 kB / 445.4 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/0.1409, allocations: 8 kB / 445.4 MB, free: 1.738 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.85e-05/0.1409, allocations: 75.28 kB / 445.5 MB, free: 1.664 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.141, allocations: 4 kB / 445.5 MB, free: 1.66 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002275/0.1412, allocations: 31.98 kB / 445.5 MB, free: 1.629 MB / 318.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.0005602/0.1418, allocations: 0.6832 MB / 446.2 MB, free: 0.918 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002074/0.142, allocations: 139.3 kB / 446.3 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.142, allocations: 0 / 446.3 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.295e-05/0.142, allocations: 31.92 kB / 446.3 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001701/0.1422, allocations: 8.266 kB / 446.3 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.1437, allocations: 1.416 MB / 447.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.144, allocations: 0.6846 MB / 448.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.921e-05/0.1441, allocations: 12.66 kB / 448.5 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.243e-05/0.1441, allocations: 19.42 kB / 448.5 MB, free: 14.44 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1441, allocations: 0 / 448.5 MB, free: 14.44 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02061/0.1648, allocations: 2.398 MB / 450.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.951/8.116, allocations: 4 kB / 450.9 MB, free: 12.02 MB / 334.1 MB (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.0004 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1)