Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001806/0.001806, allocations: 124.8 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001958/0.001958, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 225.6 MB / 249.1 MB, free: 3.637 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 52.06 kB / 365.6 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09833/0.09987, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.00229/0.1022, allocations: 1.227 MB / 419 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009487/0.1031, allocations: 472.2 kB / 419.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.16e-05/0.1031, allocations: 0 / 419.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.409e-05/0.1032, allocations: 11.94 kB / 419.5 MB, free: 10.92 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.000452/0.1036, allocations: 71.67 kB / 419.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000151/0.1038, allocations: 63.81 kB / 419.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001023/0.1039, allocations: 47.89 kB / 419.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.5e-05/0.1039, allocations: 4 kB / 419.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.476e-05/0.1039, allocations: 23.91 kB / 419.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.501e-05/0.104, allocations: 15.92 kB / 419.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.097e-05/0.104, allocations: 0 / 419.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002447/0.1042, allocations: 131.8 kB / 419.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.192e-05/0.1043, allocations: 35.84 kB / 419.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.844e-05/0.1043, allocations: 51.67 kB / 419.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002665/0.1046, allocations: 175.2 kB / 420.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1046, allocations: 0 / 420.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1046, allocations: 0 / 420.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.1046, allocations: 0 / 420.1 MB, free: 10.31 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.000669/0.1053, allocations: 0.5759 MB / 420.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.1053, allocations: 12.02 kB / 420.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.015e-05/0.1054, allocations: 50.73 kB / 420.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.1055, allocations: 28.8 kB / 420.8 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001635/0.1057, allocations: 184.2 kB / 420.9 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.1057, allocations: 4.375 kB / 420.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.803e-05/0.1057, allocations: 4.375 kB / 420.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003357/0.1061, allocations: 286.8 kB / 421.2 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.1061, allocations: 3.938 kB / 421.2 MB, free: 9.055 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.1061, allocations: 4 kB / 421.2 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.1061, allocations: 4 kB / 421.2 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.1063, allocations: 144.3 kB / 421.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003694/0.1066, allocations: 381.6 kB / 421.7 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/0.1069, allocations: 193.4 kB / 421.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001725/0.107, allocations: 166.1 kB / 422.1 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.115e-05/0.107, allocations: 0 / 422.1 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000549/0.1076, allocations: 494.8 kB / 422.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.132e-06/0.1076, allocations: 0 / 422.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.000911/0.1085, allocations: 0.7607 MB / 423.3 MB, free: 6.797 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.1086, allocations: 160.5 kB / 423.5 MB, free: 6.609 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.521e-05/0.1087, allocations: 101.8 kB / 423.6 MB, free: 6.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.1087, allocations: 33.7 kB / 423.6 MB, free: 6.461 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.233e-05/0.1088, allocations: 85.17 kB / 423.7 MB, free: 6.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.841e-05/0.1088, allocations: 99.16 kB / 423.8 MB, free: 6.273 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.567e-05/0.1089, allocations: 45.7 kB / 423.9 MB, free: 6.223 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.109, allocations: 330.8 kB / 424.2 MB, free: 5.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.601e-05/0.1091, allocations: 88.41 kB / 424.3 MB, free: 5.801 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.1093, allocations: 112.3 kB / 424.4 MB, free: 5.688 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003737/0.1096, allocations: 432.8 kB / 424.8 MB, free: 5.234 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.1096, allocations: 11.94 kB / 424.8 MB, free: 5.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003954/0.11, allocations: 368.5 kB / 425.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/0.1101, allocations: 111.3 kB / 425.3 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1101, allocations: 0 / 425.3 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.1102, allocations: 0 / 425.3 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.38e-05/0.1102, allocations: 4 kB / 425.3 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.1102, allocations: 0 / 425.3 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.961e-05/0.1103, allocations: 27.8 kB / 425.3 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.1103, allocations: 8 kB / 425.3 MB, free: 4.684 MB / 350.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.0003265/0.1106, allocations: 308.3 kB / 425.6 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.065e-05/0.1107, allocations: 23.91 kB / 425.6 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.825e-05/0.1107, allocations: 9.5 kB / 425.6 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1107, allocations: 8 kB / 425.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.1107, allocations: 0 / 425.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1107, allocations: 0 / 425.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001497/0.1122, allocations: 1.471 MB / 427.1 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1122, allocations: 0 / 427.1 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.205e-05/0.1122, allocations: 7.984 kB / 427.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.1122, allocations: 0 / 427.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.353e-05/0.1123, allocations: 16 kB / 427.2 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1123, allocations: 0 / 427.2 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.1123, allocations: 4 kB / 427.2 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001367/0.1136, allocations: 1.339 MB / 428.5 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.757e-05/0.1137, allocations: 92.95 kB / 428.6 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.1138, allocations: 67.94 kB / 428.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.247e-05/0.1139, allocations: 12 kB / 428.7 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.723e-05/0.1139, allocations: 15.98 kB / 428.7 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.887e-05/0.114, allocations: 19.97 kB / 428.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.418e-05/0.114, allocations: 87.22 kB / 428.8 MB, free: 1.078 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.114, allocations: 0 / 428.8 MB, free: 1.078 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003798/0.1144, allocations: 99.86 kB / 428.9 MB, free: 0.9805 MB / 350.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.00253/0.1169, allocations: 2.347 MB / 431.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00118/0.1181, allocations: 1.078 MB / 432.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1181, allocations: 0 / 432.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008441/0.119, allocations: 0.9006 MB / 433.2 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00026/0.1192, allocations: 20 kB / 433.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003559/0.1228, allocations: 3.328 MB / 436.6 MB, free: 9.133 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003949/0.1232, allocations: 0.7279 MB / 437.3 MB, free: 8.379 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.725e-05/0.1232, allocations: 0 / 437.3 MB, free: 8.379 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.517e-05/0.1232, allocations: 39.42 kB / 437.3 MB, free: 8.344 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1232, allocations: 0 / 437.3 MB, free: 8.344 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/0.1507, allocations: 4.778 MB / 442.1 MB, free: 3.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.653/7.804, allocations: 15.78 kB / 442.1 MB, free: 3.652 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.278539655730128]