Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.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.001638/0.001638, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001922/0.001922, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.437/1.437, allocations: 230.6 MB / 254.1 MB, free: 15.09 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+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(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001631/0.001631, allocations: 55.91 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1034, allocations: 53.32 MB / 426.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002651/0.1061, allocations: 1.243 MB / 427.6 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.1071, allocations: 458.4 kB / 428 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.45e-05/0.1072, allocations: 8 kB / 428 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.431e-05/0.1072, allocations: 3.938 kB / 428 MB, free: 3.105 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.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.0005003/0.1077, allocations: 75.72 kB / 428.1 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001724/0.1079, allocations: 63.75 kB / 428.2 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000101/0.108, allocations: 39.97 kB / 428.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.135e-05/0.108, allocations: 7.984 kB / 428.2 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.336e-05/0.1081, allocations: 19.92 kB / 428.2 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.226e-05/0.1081, allocations: 27.84 kB / 428.2 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.533e-05/0.1081, allocations: 4 kB / 428.2 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002589/0.1084, allocations: 123.8 kB / 428.4 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.987e-05/0.1085, allocations: 43.83 kB / 428.4 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.185e-05/0.1085, allocations: 43.69 kB / 428.5 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003142/0.1088, allocations: 175.2 kB / 428.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1088, allocations: 0 / 428.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1088, allocations: 0 / 428.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.1088, allocations: 4 kB / 428.6 MB, free: 2.488 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.0007786/0.1096, allocations: 0.5682 MB / 429.2 MB, free: 1.855 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.1097, allocations: 8.031 kB / 429.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.737e-05/0.1097, allocations: 54.69 kB / 429.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.1099, allocations: 24.83 kB / 429.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001831/0.1101, allocations: 180.2 kB / 429.5 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.1101, allocations: 4.375 kB / 429.5 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.002e-05/0.1101, allocations: 8.312 kB / 429.5 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003631/0.1105, allocations: 282.9 kB / 429.7 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.1105, allocations: 3.938 kB / 429.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.89e-05/0.1105, allocations: 11.98 kB / 429.8 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.1105, allocations: 3.938 kB / 429.8 MB, free: 1.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001769/0.1107, allocations: 140.3 kB / 429.9 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004054/0.1111, allocations: 385.6 kB / 430.3 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002404/0.1113, allocations: 193.4 kB / 430.5 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.1115, allocations: 174 kB / 430.6 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.194e-06/0.1115, allocations: 0 / 430.6 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005666/0.1121, allocations: 490.8 kB / 431.1 MB, free: 15.76 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 1.292e-06/0.1121, allocations: 0 / 431.1 MB, free: 15.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.0009695/0.1131, allocations: 0.7582 MB / 431.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/0.1132, allocations: 160.5 kB / 432 MB, free: 14.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.534e-05/0.1133, allocations: 105.8 kB / 432.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.1133, allocations: 29.7 kB / 432.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.425e-05/0.1133, allocations: 85.17 kB / 432.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.8e-05/0.1134, allocations: 107.1 kB / 432.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.438e-05/0.1135, allocations: 41.7 kB / 432.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1136, allocations: 330.8 kB / 432.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.974e-05/0.1137, allocations: 84.41 kB / 432.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/0.1138, allocations: 116.3 kB / 432.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003894/0.1142, allocations: 435.8 kB / 433.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.1142, allocations: 3.938 kB / 433.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004387/0.1147, allocations: 368.2 kB / 433.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001085/0.1148, allocations: 117.5 kB / 433.8 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.1148, allocations: 0 / 433.8 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.1148, allocations: 0 / 433.8 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.208e-05/0.1149, allocations: 4 kB / 433.8 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.1149, allocations: 0 / 433.8 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.334e-05/0.1149, allocations: 27.78 kB / 433.8 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.115, allocations: 8 kB / 433.9 MB, free: 12.86 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.0003126/0.1153, allocations: 303.7 kB / 434.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.803e-05/0.1153, allocations: 23.91 kB / 434.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.576e-05/0.1154, allocations: 17.5 kB / 434.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1154, allocations: 4 kB / 434.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1154, allocations: 0 / 434.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.1154, allocations: 0 / 434.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00149/0.1169, allocations: 1.456 MB / 435.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1169, allocations: 0 / 435.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.641e-05/0.1169, allocations: 4 kB / 435.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.1169, allocations: 0 / 435.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.238e-05/0.1169, allocations: 23.97 kB / 435.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/0.1169, allocations: 8 kB / 435.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.675e-06/0.1169, allocations: 8 kB / 435.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001443/0.1184, allocations: 1.338 MB / 437 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.748e-05/0.1184, allocations: 92.95 kB / 437.1 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.1186, allocations: 67.94 kB / 437.2 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.49e-05/0.1186, allocations: 8 kB / 437.2 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.362e-05/0.1187, allocations: 15.98 kB / 437.2 MB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.952e-05/0.1187, allocations: 23.92 kB / 437.2 MB, free: 9.348 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.711e-05/0.1188, allocations: 87.22 kB / 437.3 MB, free: 9.262 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1188, allocations: 0 / 437.3 MB, free: 9.262 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000391/0.1192, allocations: 95.86 kB / 437.4 MB, free: 9.168 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.0026/0.1218, allocations: 2.351 MB / 439.8 MB, free: 6.809 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001124/0.1229, allocations: 1.078 MB / 440.8 MB, free: 5.707 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1229, allocations: 0 / 440.8 MB, free: 5.707 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008244/0.1237, allocations: 0.8928 MB / 441.7 MB, free: 4.789 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.124, allocations: 24 kB / 441.8 MB, free: 4.766 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003754/0.1277, allocations: 3.324 MB / 445.1 MB, free: 1.332 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003668/0.1281, allocations: 0.7278 MB / 445.8 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.684e-05/0.1281, allocations: 4 kB / 445.8 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.087e-05/0.1282, allocations: 35.42 kB / 445.9 MB, free: 0.543 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.1282, allocations: 0 / 445.9 MB, free: 0.543 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1983/0.3265, allocations: 4.76 MB / 450.6 MB, free: 25.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.659/7.986, allocations: 5.969 kB / 450.6 MB, free: 25.15 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.349360424792394]