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.001343/0.001343, allocations: 108.2 kB / 16.41 MB, free: 6.484 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.001189/0.001189, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.454/1.454, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2289/0.2289, allocations: 43.53 MB / 314.1 MB, free: 464 kB / 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.002025/0.002025, allocations: 71.91 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1208, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001702/0.1225, allocations: 0.5336 MB / 499.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009918/0.1235, allocations: 446.3 kB / 0.4884 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4e-05/0.1236, allocations: 4 kB / 0.4884 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001005/0.1237, allocations: 3.938 kB / 0.4884 GB, free: 11.33 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001366/0.1238, allocations: 7.938 kB / 0.4884 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006248/0.1245, allocations: 179.5 kB / 0.4885 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001794/0.1246, allocations: 75.86 kB / 0.4886 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.643e-05/0.1247, allocations: 4 kB / 0.4886 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.604e-05/0.1248, allocations: 39.95 kB / 0.4887 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002898/0.1277, allocations: 388 kB / 0.489 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.956e-05/0.1277, allocations: 0 / 0.489 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.364e-05/0.1278, allocations: 16 kB / 0.489 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.043e-05/0.1279, allocations: 23.95 kB / 0.4891 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.01e-05/0.128, allocations: 27.84 kB / 0.4891 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002147/0.1282, allocations: 75.77 kB / 0.4892 GB, free: 10.56 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1282, allocations: 0 / 0.4892 GB, free: 10.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1282, allocations: 0 / 0.4892 GB, free: 10.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.1282, allocations: 0 / 0.4892 GB, free: 10.56 MB / 382.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.0006579/0.1289, allocations: 392.5 kB / 0.4895 GB, free: 10.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.759e-05/0.1289, allocations: 11.89 kB / 0.4895 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.03e-05/0.129, allocations: 34.75 kB / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.392e-05/0.1291, allocations: 8.891 kB / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002232/0.1293, allocations: 188.2 kB / 0.4898 GB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.1293, allocations: 4.375 kB / 0.4898 GB, free: 9.836 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.506e-05/0.1293, allocations: 8.359 kB / 0.4898 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002126/0.1295, allocations: 86.2 kB / 0.4899 GB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.1296, allocations: 3.938 kB / 0.4899 GB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.1296, allocations: 4 kB / 0.4899 GB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.1296, allocations: 0 / 0.4899 GB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.823e-05/0.1297, allocations: 23.97 kB / 0.4899 GB, free: 9.707 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002336/0.1299, allocations: 161.7 kB / 0.49 GB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001116/0.13, allocations: 58.48 kB / 0.4901 GB, free: 9.434 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.846e-05/0.1301, allocations: 20.91 kB / 0.4901 GB, free: 9.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.332e-05/0.1301, allocations: 0 / 0.4901 GB, free: 9.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002704/0.1304, allocations: 143.3 kB / 0.4903 GB, free: 9.258 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.283e-06/0.1304, allocations: 4 kB / 0.4903 GB, free: 9.254 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003081/0.1307, allocations: 117.9 kB / 0.4904 GB, free: 9.133 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.344e-05/0.1308, allocations: 63.34 kB / 0.4904 GB, free: 9.059 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.983e-05/0.1309, allocations: 101.8 kB / 0.4905 GB, free: 8.949 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/0.1309, allocations: 29.7 kB / 0.4906 GB, free: 8.914 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.176e-05/0.131, allocations: 80.14 kB / 0.4906 GB, free: 8.832 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.455e-05/0.131, allocations: 31.73 kB / 0.4907 GB, free: 8.801 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.981e-05/0.1311, allocations: 29.72 kB / 0.4907 GB, free: 8.766 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1312, allocations: 322.8 kB / 0.491 GB, free: 8.441 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.059e-05/0.1313, allocations: 27.92 kB / 0.491 GB, free: 8.414 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.55e-05/0.1314, allocations: 74.78 kB / 0.4911 GB, free: 8.316 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.1316, allocations: 144.4 kB / 0.4912 GB, free: 8.145 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.1316, allocations: 0 / 0.4912 GB, free: 8.145 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002337/0.1318, allocations: 171.1 kB / 0.4914 GB, free: 7.965 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.916e-05/0.1319, allocations: 33.7 kB / 0.4914 GB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.485e-06/0.1319, allocations: 3.984 kB / 0.4914 GB, free: 7.922 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.1319, allocations: 4 kB / 0.4914 GB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.132, allocations: 12 kB / 0.4915 GB, free: 7.906 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.132, allocations: 4 kB / 0.4915 GB, free: 7.902 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.516e-05/0.1321, allocations: 3.953 kB / 0.4915 GB, free: 7.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.1321, allocations: 15.98 kB / 0.4915 GB, free: 7.883 MB / 382.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.0001503/0.1323, allocations: 129.9 kB / 0.4916 GB, free: 7.746 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.923e-05/0.1323, allocations: 11.89 kB / 0.4916 GB, free: 7.734 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.8e-05/0.1324, allocations: 11.95 kB / 0.4916 GB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1324, allocations: 0 / 0.4916 GB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.1324, allocations: 0 / 0.4916 GB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.1324, allocations: 4 kB / 0.4916 GB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001647/0.1325, allocations: 177.6 kB / 0.4918 GB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1326, allocations: 0 / 0.4918 GB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.654e-05/0.1326, allocations: 11.94 kB / 0.4918 GB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1326, allocations: 0 / 0.4918 GB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.1326, allocations: 0 / 0.4918 GB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.1326, allocations: 7.938 kB / 0.4918 GB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1326, allocations: 0 / 0.4918 GB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002007/0.1328, allocations: 125 kB / 0.4919 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.423e-05/0.1329, allocations: 85.05 kB / 0.492 GB, free: 7.227 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.1329, allocations: 3.984 kB / 0.492 GB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002/0.1332, allocations: 31.91 kB / 0.492 GB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.208e-05/0.1332, allocations: 0 / 0.492 GB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.1332, allocations: 7.984 kB / 0.4921 GB, free: 7.184 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.14e-05/0.1333, allocations: 87.41 kB / 0.4921 GB, free: 7.098 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1333, allocations: 0 / 0.4921 GB, free: 7.098 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002361/0.1335, allocations: 23.94 kB / 0.4922 GB, free: 7.074 MB / 382.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.0006793/0.1342, allocations: 0.6948 MB / 0.4928 GB, free: 6.352 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002211/0.1344, allocations: 123.3 kB / 0.493 GB, free: 6.219 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1344, allocations: 0 / 0.493 GB, free: 6.219 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.712e-05/0.1345, allocations: 35.92 kB / 0.493 GB, free: 6.184 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001592/0.1347, allocations: 16.36 kB / 0.493 GB, free: 6.168 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001525/0.1362, allocations: 1.422 MB / 0.4944 GB, free: 4.617 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003235/0.1366, allocations: 0.6884 MB / 0.4951 GB, free: 3.902 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.14e-05/0.1366, allocations: 20.59 kB / 0.4951 GB, free: 3.879 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.02e-05/0.1367, allocations: 23.36 kB / 0.4951 GB, free: 3.855 MB / 382.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1367, allocations: 0 / 0.4951 GB, free: 3.855 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02481/0.1615, allocations: 2.42 MB / 0.4975 GB, free: 1.402 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.95/8.112, allocations: 11.89 kB / 0.4975 GB, free: 1.391 MB / 382.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)