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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 111 kB / 17.06 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 198.9 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 47.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.2712, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002371/0.2736, allocations: 1.22 MB / 401.4 MB, free: 7.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001024/0.2746, allocations: 467.4 kB / 401.9 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.593e-05/0.2747, allocations: 3.938 kB / 401.9 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.747e-05/0.2747, allocations: 1.156 kB / 401.9 MB, free: 7.094 MB / 318.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.0004657/0.2752, allocations: 71.55 kB / 402 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002231/0.2755, allocations: 75.73 kB / 402.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001098/0.2756, allocations: 43.84 kB / 402.1 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.303e-05/0.2756, allocations: 4 kB / 402.1 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.911e-05/0.2757, allocations: 19.97 kB / 402.1 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.991e-05/0.2757, allocations: 19.91 kB / 402.1 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.278e-05/0.2757, allocations: 4 kB / 402.1 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002952/0.276, allocations: 119.8 kB / 402.3 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.049e-05/0.2761, allocations: 35.86 kB / 402.3 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.121e-05/0.2762, allocations: 47.67 kB / 402.3 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003223/0.2765, allocations: 175.4 kB / 402.5 MB, free: 6.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.2765, allocations: 0 / 402.5 MB, free: 6.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2765, allocations: 0 / 402.5 MB, free: 6.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.2765, allocations: 0 / 402.5 MB, free: 6.504 MB / 318.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.0006283/0.2772, allocations: 0.5585 MB / 403.1 MB, free: 5.883 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.2772, allocations: 12.03 kB / 403.1 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.846e-05/0.2773, allocations: 58.72 kB / 403.1 MB, free: 5.805 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001522/0.2775, allocations: 24.73 kB / 403.2 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001603/0.2776, allocations: 184 kB / 403.3 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.2777, allocations: 8.375 kB / 403.4 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.918e-05/0.2777, allocations: 8.312 kB / 403.4 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003239/0.278, allocations: 286.9 kB / 403.6 MB, free: 5.258 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.278, allocations: 3.938 kB / 403.6 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.278, allocations: 0 / 403.6 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.2781, allocations: 4 kB / 403.6 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002175/0.2783, allocations: 156.2 kB / 403.8 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003413/0.2786, allocations: 365.7 kB / 404.2 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003947/0.279, allocations: 0.5014 MB / 404.7 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003623/0.2794, allocations: 486.1 kB / 405.1 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.301e-05/0.2794, allocations: 8 kB / 405.1 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004606/0.2799, allocations: 490.7 kB / 405.6 MB, free: 3.152 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.302e-06/0.2799, allocations: 0 / 405.6 MB, free: 3.152 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.0007775/0.2807, allocations: 0.7293 MB / 406.4 MB, free: 2.406 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.104e-05/0.2808, allocations: 164.4 kB / 406.5 MB, free: 2.215 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.166e-05/0.2809, allocations: 105.9 kB / 406.6 MB, free: 2.102 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.2809, allocations: 29.7 kB / 406.6 MB, free: 2.066 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.303e-05/0.2809, allocations: 81.14 kB / 406.7 MB, free: 1.98 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.146e-05/0.281, allocations: 90.66 kB / 406.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.687e-05/0.2811, allocations: 49.69 kB / 406.9 MB, free: 1.836 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.2812, allocations: 326.8 kB / 407.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.2814, allocations: 84.41 kB / 407.3 MB, free: 1.422 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001155/0.2815, allocations: 112.3 kB / 407.4 MB, free: 1.309 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004396/0.2819, allocations: 449.2 kB / 407.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.282, allocations: 3.938 kB / 407.8 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000386/0.2823, allocations: 360.5 kB / 408.2 MB, free: 476 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.064e-05/0.2824, allocations: 107.3 kB / 408.3 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.2824, allocations: 3.984 kB / 408.3 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.2825, allocations: 3.938 kB / 408.3 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.893e-05/0.2825, allocations: 11.98 kB / 408.3 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.2825, allocations: 3.938 kB / 408.3 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.038e-05/0.2826, allocations: 19.75 kB / 408.3 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.497e-05/0.2826, allocations: 20.03 kB / 408.3 MB, free: 292 kB / 318.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.0002741/0.2829, allocations: 291.7 kB / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.598e-05/0.283, allocations: 31.81 kB / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.28e-05/0.283, allocations: 9.547 kB / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.283, allocations: 0 / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.283, allocations: 0 / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.283, allocations: 64 / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001355/0.2844, allocations: 1.448 MB / 410.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2844, allocations: 0 / 410.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.366e-05/0.2844, allocations: 4 kB / 410.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.82e-06/0.2845, allocations: 4 kB / 410.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.087e-05/0.2845, allocations: 19.98 kB / 410.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.2845, allocations: 4 kB / 410.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2845, allocations: 0 / 410.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.2858, allocations: 1.307 MB / 411.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.273e-05/0.2858, allocations: 96.8 kB / 411.5 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.996e-05/0.2859, allocations: 67.94 kB / 411.6 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.632e-05/0.286, allocations: 12 kB / 411.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.956e-05/0.2861, allocations: 19.92 kB / 411.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.618e-05/0.2861, allocations: 19.98 kB / 411.7 MB, free: 12.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.299e-05/0.2862, allocations: 87.22 kB / 411.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2862, allocations: 0 / 411.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003693/0.2866, allocations: 99.92 kB / 411.8 MB, free: 12.64 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: 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.002279/0.2888, allocations: 2.318 MB / 414.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.2906, allocations: 2.144 MB / 416.3 MB, free: 8.141 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2906, allocations: 0 / 416.3 MB, free: 8.141 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001637/0.2923, allocations: 2.19 MB / 418.5 MB, free: 5.926 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.2925, allocations: 23.09 kB / 418.5 MB, free: 5.906 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00322/0.2958, allocations: 3.32 MB / 421.8 MB, free: 2.473 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002938/0.2961, allocations: 0.7279 MB / 422.6 MB, free: 1.719 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.485e-05/0.2961, allocations: 0 / 422.6 MB, free: 1.719 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.575e-05/0.2961, allocations: 35.42 kB / 422.6 MB, free: 1.688 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2961, allocations: 0 / 422.6 MB, free: 1.688 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01969/0.3158, allocations: 4.887 MB / 427.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.473/7.789, allocations: 14.48 kB / 427.5 MB, free: 12.88 MB / 350.1 MB (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 --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) 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) Reference file matches