Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001745/0.001745, allocations: 117.9 kB / 18.5 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001543/0.001543, allocations: 214.5 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.508/1.508, allocations: 230.5 MB / 254.8 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002132/0.002132, allocations: 71.83 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1085, allocations: 53.32 MB / 427 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002335/0.1108, allocations: 1.245 MB / 428.3 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.1118, allocations: 470.3 kB / 428.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.772e-05/0.1118, allocations: 0 / 428.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.74e-05/0.1119, allocations: 3.938 kB / 428.7 MB, free: 3.098 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeBindings: time 0.0004956/0.1124, allocations: 75.72 kB / 428.8 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001464/0.1125, allocations: 55.83 kB / 428.8 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001109/0.1126, allocations: 51.89 kB / 428.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.886e-05/0.1127, allocations: 3.984 kB / 428.9 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.858e-05/0.1127, allocations: 15.94 kB / 428.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.508e-05/0.1127, allocations: 23.91 kB / 428.9 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.245e-05/0.1128, allocations: 4 kB / 428.9 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002504/0.113, allocations: 131.8 kB / 429.1 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.143e-05/0.1131, allocations: 31.86 kB / 429.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.512e-05/0.1131, allocations: 51.67 kB / 429.2 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002637/0.1134, allocations: 175.2 kB / 429.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1134, allocations: 3.938 kB / 429.3 MB, free: 2.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1134, allocations: 0 / 429.3 MB, free: 2.484 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1134, allocations: 0 / 429.3 MB, free: 2.484 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006935/0.1141, allocations: 0.5643 MB / 429.9 MB, free: 1.855 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.1141, allocations: 12.03 kB / 429.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.896e-05/0.1142, allocations: 62.67 kB / 430 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001217/0.1143, allocations: 20.84 kB / 430 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001686/0.1145, allocations: 176.2 kB / 430.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.1145, allocations: 8.375 kB / 430.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.843e-05/0.1145, allocations: 4.375 kB / 430.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000351/0.1149, allocations: 282.8 kB / 430.4 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.1149, allocations: 3.938 kB / 430.4 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.1149, allocations: 4 kB / 430.5 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.1149, allocations: 4 kB / 430.5 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001746/0.1151, allocations: 152.3 kB / 430.6 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003762/0.1155, allocations: 377.5 kB / 431 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002252/0.1157, allocations: 193.5 kB / 431.2 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.1159, allocations: 170 kB / 431.3 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.299e-05/0.1159, allocations: 8 kB / 431.3 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005309/0.1164, allocations: 494.8 kB / 431.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 1.142e-06/0.1164, allocations: 0 / 431.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.000938/0.1174, allocations: 0.754 MB / 432.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.1175, allocations: 156.5 kB / 432.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.37e-05/0.1176, allocations: 114 kB / 432.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.1176, allocations: 25.7 kB / 432.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.57e-05/0.1176, allocations: 81.14 kB / 432.9 MB, free: 14.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.598e-05/0.1177, allocations: 107.1 kB / 433 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.1178, allocations: 41.69 kB / 433.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.118, allocations: 330.8 kB / 433.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.1181, allocations: 84.41 kB / 433.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001148/0.1182, allocations: 124.2 kB / 433.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003907/0.1186, allocations: 427.8 kB / 434 MB, free: 13.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1186, allocations: 3.938 kB / 434 MB, free: 13.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004364/0.119, allocations: 376.2 kB / 434.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001056/0.1191, allocations: 107.3 kB / 434.5 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.1191, allocations: 0 / 434.5 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.1192, allocations: 4 kB / 434.5 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.239e-05/0.1192, allocations: 4 kB / 434.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.1192, allocations: 0 / 434.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.381e-05/0.1193, allocations: 31.77 kB / 434.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/0.1193, allocations: 12.03 kB / 434.6 MB, free: 12.85 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 (state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$outputAlias_r1024,$outputAlias_r128,$outputAlias_r64,$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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.0002775/0.1196, allocations: 295.7 kB / 434.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.35e-05/0.1196, allocations: 31.91 kB / 434.9 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.008e-05/0.1197, allocations: 5.562 kB / 434.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.1197, allocations: 0 / 434.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.1197, allocations: 0 / 434.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.1197, allocations: 7.984 kB / 434.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.1211, allocations: 1.46 MB / 436.4 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1211, allocations: 4 kB / 436.4 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.146e-05/0.1211, allocations: 4 kB / 436.4 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1211, allocations: 0 / 436.4 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.228e-05/0.1212, allocations: 23.98 kB / 436.4 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1212, allocations: 0 / 436.4 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1212, allocations: 0 / 436.4 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001384/0.1225, allocations: 1.338 MB / 437.7 MB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.087e-05/0.1226, allocations: 100.9 kB / 437.8 MB, free: 9.457 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.1227, allocations: 63.95 kB / 437.9 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.504e-05/0.1228, allocations: 8.125 kB / 437.9 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.812e-05/0.1228, allocations: 19.98 kB / 437.9 MB, free: 9.367 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/0.1229, allocations: 19.98 kB / 437.9 MB, free: 9.348 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.497e-05/0.1229, allocations: 87.22 kB / 438 MB, free: 9.262 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1229, allocations: 0 / 438 MB, free: 9.262 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003855/0.1233, allocations: 91.86 kB / 438.1 MB, free: 9.172 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition1,rImpure,iImpure,$whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33]) * Number of discrete states: 46 ($outputAlias_r1024,$outputAlias_r128,$outputAlias_r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.002642/0.126, allocations: 2.353 MB / 440.5 MB, free: 6.809 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.1271, allocations: 1.078 MB / 441.5 MB, free: 5.707 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.1271, allocations: 0 / 441.5 MB, free: 5.707 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008247/0.1279, allocations: 0.8967 MB / 442.4 MB, free: 4.785 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.1282, allocations: 19.98 kB / 442.5 MB, free: 4.766 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003767/0.1319, allocations: 3.324 MB / 445.8 MB, free: 1.328 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003819/0.1323, allocations: 0.7317 MB / 446.5 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.71e-05/0.1323, allocations: 0 / 446.5 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.916e-05/0.1324, allocations: 31.42 kB / 446.5 MB, free: 0.543 MB / 366.1 MB Notification: Performance of SimCode: time 8.21e-07/0.1324, allocations: 0 / 446.5 MB, free: 0.543 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.225/0.3574, allocations: 4.772 MB / 451.3 MB, free: 25.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.32/8.677, allocations: 15.2 kB / 451.3 MB, free: 25.16 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000396747 Modelica_4_1_0-beta_om_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.220380779821426] Failed to read output from testmodel.py, exit status != 0: ['time', 'r1024', 'r128', 'r64'] 8.744900793768466 8.755989605 8.640280312 Calling exit ...