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.001093/0.001093, allocations: 106.4 kB / 17.06 MB, free: 6.027 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.0011/0.0011, allocations: 195 kB / 18 MB, free: 5.105 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.358/1.358, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001048/0.001048, allocations: 51.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2817, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.003073/0.2848, allocations: 1.228 MB / 401.5 MB, free: 7.453 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.2859, allocations: 458.6 kB / 401.9 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.097e-05/0.286, allocations: 4 kB / 401.9 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.084e-05/0.286, allocations: 0 / 401.9 MB, free: 7.113 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.0005745/0.2866, allocations: 75.23 kB / 402 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001886/0.2868, allocations: 69.55 kB / 402.1 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001087/0.2869, allocations: 47.84 kB / 402.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.407e-05/0.287, allocations: 4 kB / 402.1 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.213e-05/0.287, allocations: 19.97 kB / 402.1 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.78e-05/0.2871, allocations: 19.92 kB / 402.1 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.377e-05/0.2871, allocations: 7.938 kB / 402.2 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002259/0.2873, allocations: 119.8 kB / 402.3 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.773e-05/0.2874, allocations: 35.92 kB / 402.3 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.189e-05/0.2874, allocations: 51.67 kB / 402.4 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002629/0.2877, allocations: 183.4 kB / 402.5 MB, free: 6.531 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.2877, allocations: 0 / 402.5 MB, free: 6.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2877, allocations: 0 / 402.5 MB, free: 6.531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.2878, allocations: 0 / 402.5 MB, free: 6.531 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.000672/0.2884, allocations: 0.5546 MB / 403.1 MB, free: 5.914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.2885, allocations: 15.89 kB / 403.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.137e-05/0.2886, allocations: 54.72 kB / 403.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.2887, allocations: 24.75 kB / 403.2 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000158/0.2889, allocations: 184.1 kB / 403.4 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.2889, allocations: 8.312 kB / 403.4 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.395e-05/0.2889, allocations: 4.375 kB / 403.4 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003217/0.2892, allocations: 278.9 kB / 403.6 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.2893, allocations: 11.88 kB / 403.7 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.2893, allocations: 0 / 403.7 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.2893, allocations: 0 / 403.7 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001664/0.2895, allocations: 148.3 kB / 403.8 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003626/0.2898, allocations: 381.6 kB / 404.2 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003894/0.2902, allocations: 0.4975 MB / 404.7 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003537/0.2906, allocations: 482.1 kB / 405.1 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.06e-05/0.2906, allocations: 0 / 405.1 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004284/0.291, allocations: 0.4909 MB / 405.6 MB, free: 3.184 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.242e-06/0.2911, allocations: 0 / 405.6 MB, free: 3.184 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.0008556/0.2919, allocations: 0.7292 MB / 406.4 MB, free: 2.438 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.292, allocations: 164.5 kB / 406.5 MB, free: 2.246 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.424e-05/0.2921, allocations: 97.86 kB / 406.6 MB, free: 2.141 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.2921, allocations: 29.73 kB / 406.7 MB, free: 2.105 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.741e-05/0.2922, allocations: 85.14 kB / 406.7 MB, free: 2.016 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.775e-05/0.2923, allocations: 98.64 kB / 406.8 MB, free: 1.918 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.622e-05/0.2923, allocations: 41.7 kB / 406.9 MB, free: 1.871 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.2925, allocations: 330.8 kB / 407.2 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.593e-05/0.2926, allocations: 88.41 kB / 407.3 MB, free: 1.453 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.495e-05/0.2927, allocations: 112.3 kB / 407.4 MB, free: 1.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003637/0.2931, allocations: 440.8 kB / 407.8 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.2931, allocations: 3.938 kB / 407.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003812/0.2934, allocations: 368.4 kB / 408.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001261/0.2936, allocations: 111.3 kB / 408.3 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2936, allocations: 3.938 kB / 408.3 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.2936, allocations: 0 / 408.3 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.682e-05/0.2937, allocations: 7.938 kB / 408.3 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.934e-06/0.2937, allocations: 4 kB / 408.3 MB, free: 368 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.088e-05/0.2938, allocations: 19.75 kB / 408.3 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.2938, allocations: 8 kB / 408.3 MB, free: 340 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.0002499/0.294, allocations: 303.7 kB / 408.6 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.261e-05/0.2941, allocations: 27.86 kB / 408.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.243e-05/0.2941, allocations: 13.56 kB / 408.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.2941, allocations: 0 / 408.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.2942, allocations: 0 / 408.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2942, allocations: 0 / 408.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001211/0.2954, allocations: 1.448 MB / 410.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2954, allocations: 0 / 410.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.037e-05/0.2954, allocations: 4 kB / 410.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.2954, allocations: 0 / 410.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.713e-05/0.2955, allocations: 19.98 kB / 410.1 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.2955, allocations: 4 kB / 410.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.2955, allocations: 4 kB / 410.2 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001134/0.2966, allocations: 1.311 MB / 411.5 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.104e-05/0.2967, allocations: 100.8 kB / 411.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.181e-05/0.2968, allocations: 67.94 kB / 411.6 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.979e-05/0.2969, allocations: 8 kB / 411.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.634e-05/0.2969, allocations: 12 kB / 411.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-05/0.2969, allocations: 19.98 kB / 411.7 MB, free: 12.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.197e-05/0.297, allocations: 87.67 kB / 411.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.393e-06/0.297, allocations: 0 / 411.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003926/0.2974, allocations: 99.94 kB / 411.8 MB, free: 12.68 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.002162/0.2996, allocations: 2.32 MB / 414.2 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001575/0.3011, allocations: 2.14 MB / 416.3 MB, free: 8.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3012, allocations: 0 / 416.3 MB, free: 8.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001454/0.3026, allocations: 2.19 MB / 418.5 MB, free: 5.965 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002571/0.3029, allocations: 23.94 kB / 418.5 MB, free: 5.941 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003266/0.3062, allocations: 3.324 MB / 421.8 MB, free: 2.504 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003243/0.3065, allocations: 0.7279 MB / 422.6 MB, free: 1.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.653e-05/0.3065, allocations: 0 / 422.6 MB, free: 1.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.188e-05/0.3066, allocations: 39.42 kB / 422.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3066, allocations: 0 / 422.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02111/0.3277, allocations: 4.878 MB / 427.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.445/7.773, allocations: 8 kB / 427.5 MB, free: 12.92 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