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.001281/0.001281, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001453/0.001453, allocations: 211.7 kB / 23.73 MB, free: 4.387 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.389/1.389, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.00154/0.00154, allocations: 51.92 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2689, allocations: 53.36 MB / 431.1 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002388/0.2713, allocations: 1.242 MB / 432.3 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.2724, allocations: 454.3 kB / 432.8 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.565e-05/0.2724, allocations: 3.938 kB / 432.8 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.189e-05/0.2724, allocations: 0 / 432.8 MB, free: 5.109 MB / 334.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.0004995/0.2729, allocations: 79.7 kB / 432.8 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001597/0.2731, allocations: 63.77 kB / 432.9 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001169/0.2732, allocations: 47.89 kB / 433 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.364e-05/0.2733, allocations: 11.98 kB / 433 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.578e-05/0.2733, allocations: 11.94 kB / 433 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.588e-05/0.2733, allocations: 27.89 kB / 433 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.2734, allocations: 4 kB / 433 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003061/0.2737, allocations: 147.7 kB / 433.2 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.075e-05/0.2737, allocations: 35.86 kB / 433.2 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.86e-05/0.2738, allocations: 39.75 kB / 433.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002807/0.2741, allocations: 181.3 kB / 433.4 MB, free: 4.473 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2741, allocations: 0 / 433.4 MB, free: 4.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2741, allocations: 0 / 433.4 MB, free: 4.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.2741, allocations: 4 kB / 433.4 MB, free: 4.469 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.0006368/0.2747, allocations: 484.7 kB / 433.9 MB, free: 3.949 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.2748, allocations: 12.03 kB / 433.9 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.854e-05/0.2749, allocations: 58.67 kB / 433.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.275, allocations: 20.84 kB / 434 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.2751, allocations: 118.4 kB / 434.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.2751, allocations: 4.375 kB / 434.1 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.858e-05/0.2751, allocations: 8.375 kB / 434.1 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000454/0.2756, allocations: 398.3 kB / 434.5 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.2756, allocations: 7.875 kB / 434.5 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.2756, allocations: 4 kB / 434.5 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.369e-06/0.2756, allocations: 0 / 434.5 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002766/0.2759, allocations: 275.6 kB / 434.8 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003474/0.2762, allocations: 348.7 kB / 435.1 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003208/0.2766, allocations: 312.8 kB / 435.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002761/0.2768, allocations: 285.4 kB / 435.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.06e-05/0.2769, allocations: 0 / 435.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006069/0.2775, allocations: 0.5802 MB / 436.3 MB, free: 1.336 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.072e-06/0.2775, allocations: 0 / 436.3 MB, free: 1.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.001141/0.2786, allocations: 0.9977 MB / 437.3 MB, free: 304 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.2787, allocations: 168.5 kB / 437.4 MB, free: 104 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.744e-05/0.2788, allocations: 101.8 kB / 437.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.2788, allocations: 29.7 kB / 437.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.016e-05/0.2789, allocations: 85.14 kB / 437.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.411e-05/0.279, allocations: 95.17 kB / 437.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.847e-05/0.279, allocations: 45.69 kB / 437.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.2792, allocations: 326.8 kB / 438.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002009/0.2794, allocations: 207.8 kB / 438.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002092/0.2796, allocations: 231.7 kB / 438.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004391/0.28, allocations: 488.9 kB / 439 MB, free: 14.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.28, allocations: 7.875 kB / 439 MB, free: 14.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005298/0.2806, allocations: 0.5039 MB / 439.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001061/0.2807, allocations: 107.3 kB / 439.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.2807, allocations: 4 kB / 439.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.2807, allocations: 0 / 439.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.45e-05/0.2808, allocations: 4 kB / 439.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.2808, allocations: 0 / 439.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.693e-05/0.2808, allocations: 31.72 kB / 439.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.189e-05/0.2809, allocations: 8 kB / 439.7 MB, free: 13.72 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: 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.0002871/0.2811, allocations: 283.7 kB / 439.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.366e-05/0.2812, allocations: 31.86 kB / 440 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.558e-05/0.2812, allocations: 9.656 kB / 440 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.2812, allocations: 4 kB / 440 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.2812, allocations: 0 / 440 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.2812, allocations: 4 kB / 440 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.2824, allocations: 1.054 MB / 441.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2824, allocations: 0 / 441.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.237e-05/0.2825, allocations: 7.984 kB / 441.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.2825, allocations: 4 kB / 441.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.75e-05/0.2825, allocations: 12 kB / 441.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.2825, allocations: 4 kB / 441.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.2825, allocations: 7.922 kB / 441.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.2836, allocations: 0.9946 MB / 442.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.048e-05/0.2836, allocations: 19.84 kB / 442.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.2837, allocations: 67.94 kB / 442.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.438e-05/0.2838, allocations: 16 kB / 442.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.477e-05/0.2838, allocations: 19.92 kB / 442.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.199e-05/0.2839, allocations: 15.98 kB / 442.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.828e-05/0.2839, allocations: 87.69 kB / 442.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2839, allocations: 0 / 442.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003565/0.2843, allocations: 95.86 kB / 442.4 MB, free: 10.87 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: 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.002637/0.2869, allocations: 2.149 MB / 444.5 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.288, allocations: 0.8774 MB / 445.4 MB, free: 7.766 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.288, allocations: 4.062 kB / 445.4 MB, free: 7.762 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005495/0.2885, allocations: 0.5293 MB / 446 MB, free: 7.195 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/0.2888, allocations: 23.94 kB / 446 MB, free: 7.172 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003751/0.2925, allocations: 3.558 MB / 449.5 MB, free: 3.441 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001327/0.2927, allocations: 110.8 kB / 449.6 MB, free: 3.312 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.531e-05/0.2927, allocations: 4.062 kB / 449.7 MB, free: 3.309 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.057e-05/0.2927, allocations: 39.42 kB / 449.7 MB, free: 3.27 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.2927, allocations: 0 / 449.7 MB, free: 3.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03213/0.3249, allocations: 5.417 MB / 455.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.84, allocations: 7.75 kB / 455.1 MB, free: 13.98 MB / 366.1 MB " [Timeout remaining time 649] (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: 13.166052334941924]