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.001679/0.001679, allocations: 112 kB / 20.43 MB, free: 1.449 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.00207/0.00207, allocations: 188.4 kB / 23.72 MB, free: 4.684 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.357/1.357, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.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.001479/0.001479, allocations: 43.94 kB / 370.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2608, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002536/0.2634, allocations: 1.242 MB / 423.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00104/0.2644, allocations: 473 kB / 424.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.53e-05/0.2644, allocations: 0 / 424.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.127e-05/0.2645, allocations: 3.938 kB / 424.3 MB, free: 12.9 MB / 334.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.0005367/0.265, allocations: 75.72 kB / 424.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001494/0.2652, allocations: 67.8 kB / 424.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.2653, allocations: 47.84 kB / 424.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.81e-05/0.2653, allocations: 4 kB / 424.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.577e-05/0.2653, allocations: 19.97 kB / 424.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.762e-05/0.2654, allocations: 19.91 kB / 424.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.289e-05/0.2654, allocations: 8 kB / 424.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002979/0.2657, allocations: 151.7 kB / 424.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.883e-05/0.2657, allocations: 35.86 kB / 424.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.298e-05/0.2658, allocations: 55.66 kB / 424.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002568/0.2661, allocations: 179.6 kB / 425 MB, free: 12.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2661, allocations: 3.938 kB / 425 MB, free: 12.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2661, allocations: 0 / 425 MB, free: 12.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.2661, allocations: 0 / 425 MB, free: 12.25 MB / 334.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.0005775/0.2666, allocations: 0.4929 MB / 425.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.2667, allocations: 8.031 kB / 425.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.58e-05/0.2668, allocations: 62.7 kB / 425.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.2669, allocations: 24.8 kB / 425.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001313/0.267, allocations: 122.3 kB / 425.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.641e-05/0.267, allocations: 8.375 kB / 425.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.467e-05/0.267, allocations: 4.375 kB / 425.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003345/0.2674, allocations: 282.9 kB / 426 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.2674, allocations: 3.938 kB / 426 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.2674, allocations: 4 kB / 426 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.2674, allocations: 4 kB / 426 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001709/0.2676, allocations: 144.3 kB / 426.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003663/0.2679, allocations: 356.6 kB / 426.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002287/0.2682, allocations: 193.5 kB / 426.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001807/0.2684, allocations: 162.1 kB / 426.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.814e-06/0.2684, allocations: 4 kB / 426.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005372/0.2689, allocations: 494.8 kB / 427.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.172e-06/0.2689, allocations: 0 / 427.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.0008985/0.2698, allocations: 0.7568 MB / 428.1 MB, free: 8.938 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/0.2699, allocations: 160.5 kB / 428.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.868e-05/0.27, allocations: 113.8 kB / 428.3 MB, free: 8.629 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.27, allocations: 29.7 kB / 428.4 MB, free: 8.594 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.271e-05/0.2701, allocations: 85.14 kB / 428.5 MB, free: 8.508 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.533e-05/0.2701, allocations: 91.23 kB / 428.5 MB, free: 8.418 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.684e-05/0.2702, allocations: 45.69 kB / 428.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.2703, allocations: 326.8 kB / 428.9 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.2704, allocations: 88.41 kB / 429 MB, free: 7.949 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001095/0.2706, allocations: 120.2 kB / 429.1 MB, free: 7.828 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003777/0.2709, allocations: 436.9 kB / 429.5 MB, free: 7.371 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.2709, allocations: 3.938 kB / 429.5 MB, free: 7.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003926/0.2713, allocations: 372.4 kB / 429.9 MB, free: 6.984 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.644e-05/0.2714, allocations: 107.3 kB / 430 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.2714, allocations: 0 / 430 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.2714, allocations: 0 / 430 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.833e-05/0.2715, allocations: 7.984 kB / 430 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.2715, allocations: 4 kB / 430 MB, free: 6.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.098e-05/0.2716, allocations: 23.78 kB / 430 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/0.2716, allocations: 16.03 kB / 430.1 MB, free: 6.816 MB / 334.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: 49 (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,r1024,$outputAlias_r128,r128,$outputAlias_r64,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.0002693/0.2719, allocations: 295.7 kB / 430.3 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.141e-05/0.2719, allocations: 35.84 kB / 430.4 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.045e-05/0.2719, allocations: 9.641 kB / 430.4 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.2719, allocations: 0 / 430.4 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2719, allocations: 0 / 430.4 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.2719, allocations: 0 / 430.4 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001421/0.2734, allocations: 1.435 MB / 431.8 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.2734, allocations: 4 kB / 431.8 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.973e-05/0.2734, allocations: 4 kB / 431.8 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2734, allocations: 0 / 431.8 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.2734, allocations: 23.98 kB / 431.9 MB, free: 4.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2734, allocations: 0 / 431.9 MB, free: 4.934 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2734, allocations: 0 / 431.9 MB, free: 4.934 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001336/0.2747, allocations: 1.339 MB / 433.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.651e-05/0.2748, allocations: 27.83 kB / 433.2 MB, free: 3.535 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.847e-05/0.2749, allocations: 67.94 kB / 433.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.219e-05/0.275, allocations: 12 kB / 433.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.676e-05/0.275, allocations: 8 kB / 433.3 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.802e-05/0.275, allocations: 19.98 kB / 433.3 MB, free: 3.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.655e-05/0.2751, allocations: 95.14 kB / 433.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2751, allocations: 0 / 433.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003568/0.2754, allocations: 91.88 kB / 433.5 MB, free: 3.246 MB / 334.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: 49 ($whenCondition1,rImpure,iImpure,$whenCondition2,r64,$outputAlias_r64,r128,$outputAlias_r128,r1024,$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.002476/0.2779, allocations: 2.344 MB / 435.9 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001079/0.279, allocations: 1.07 MB / 436.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.279, allocations: 0 / 436.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008083/0.2798, allocations: 0.9005 MB / 437.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002468/0.28, allocations: 23.66 kB / 437.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003357/0.2834, allocations: 3.3 MB / 441.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003606/0.2838, allocations: 0.7318 MB / 441.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.5e-05/0.2838, allocations: 4 kB / 441.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.985e-05/0.2838, allocations: 43.34 kB / 441.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of SimCode: time 4.5e-07/0.2838, allocations: 0 / 441.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03345/0.3173, allocations: 5.123 MB / 447.1 MB, free: 5.652 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.9, allocations: 12.3 kB / 447.1 MB, free: 5.645 MB / 350.1 MB " [Timeout remaining time 649] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 13.182075930060819]