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.0013/0.0013, allocations: 109.8 kB / 17.06 MB, free: 6.016 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.001335/0.001336, allocations: 189.4 kB / 18 MB, free: 5.102 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.384/1.384, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 47.92 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2965, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002391/0.299, allocations: 1.228 MB / 401.5 MB, free: 7.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001035/0.3, allocations: 466.4 kB / 401.9 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.425e-05/0.3001, allocations: 0.9688 kB / 401.9 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.318e-05/0.3001, allocations: 0 / 401.9 MB, free: 7.098 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.0005059/0.3006, allocations: 75.08 kB / 402 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001543/0.3008, allocations: 65.67 kB / 402.1 MB, free: 7 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000124/0.3009, allocations: 54.47 kB / 402.1 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.641e-05/0.301, allocations: 3.516 kB / 402.1 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.713e-05/0.301, allocations: 19.97 kB / 402.1 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.771e-05/0.3011, allocations: 19.92 kB / 402.1 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.702e-05/0.3011, allocations: 4 kB / 402.2 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002376/0.3013, allocations: 127.8 kB / 402.3 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.815e-05/0.3014, allocations: 27.92 kB / 402.3 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.335e-05/0.3015, allocations: 47.69 kB / 402.4 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000281/0.3018, allocations: 178.2 kB / 402.5 MB, free: 6.535 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3018, allocations: 0 / 402.5 MB, free: 6.535 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3018, allocations: 0 / 402.5 MB, free: 6.535 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.3018, allocations: 0 / 402.5 MB, free: 6.535 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.0008002/0.3026, allocations: 0.5759 MB / 403.1 MB, free: 5.895 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.3027, allocations: 8.031 kB / 403.1 MB, free: 5.887 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001062/0.3028, allocations: 54.67 kB / 403.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001247/0.3029, allocations: 32.78 kB / 403.2 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001762/0.3031, allocations: 176.2 kB / 403.4 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/0.3031, allocations: 8.312 kB / 403.4 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.71e-05/0.3031, allocations: 4.375 kB / 403.4 MB, free: 5.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003793/0.3035, allocations: 286.9 kB / 403.7 MB, free: 5.281 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.3035, allocations: 3.938 kB / 403.7 MB, free: 5.277 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.3035, allocations: 0 / 403.7 MB, free: 5.277 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.3036, allocations: 7.984 kB / 403.7 MB, free: 5.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001743/0.3037, allocations: 152.2 kB / 403.8 MB, free: 5.117 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003802/0.3041, allocations: 377.7 kB / 404.2 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004644/0.3046, allocations: 0.5014 MB / 404.7 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004584/0.3051, allocations: 482.1 kB / 405.2 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.447e-05/0.3051, allocations: 8 kB / 405.2 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005554/0.3057, allocations: 490.8 kB / 405.6 MB, free: 3.164 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.263e-06/0.3057, allocations: 0 / 405.6 MB, free: 3.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.0009199/0.3066, allocations: 0.7332 MB / 406.4 MB, free: 2.414 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.3067, allocations: 156.5 kB / 406.5 MB, free: 2.23 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.197e-05/0.3068, allocations: 105.8 kB / 406.6 MB, free: 2.117 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.3068, allocations: 29.73 kB / 406.7 MB, free: 2.082 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.533e-05/0.3069, allocations: 81.14 kB / 406.7 MB, free: 1.996 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.452e-05/0.307, allocations: 95.23 kB / 406.8 MB, free: 1.902 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.004e-05/0.307, allocations: 45.69 kB / 406.9 MB, free: 1.852 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.3072, allocations: 326.8 kB / 407.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.527e-05/0.3073, allocations: 88.41 kB / 407.3 MB, free: 1.438 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.3074, allocations: 112.3 kB / 407.4 MB, free: 1.324 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003912/0.3078, allocations: 444.8 kB / 407.8 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.3079, allocations: 3.938 kB / 407.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004131/0.3083, allocations: 364.5 kB / 408.2 MB, free: 492 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.3084, allocations: 107.3 kB / 408.3 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3084, allocations: 3.938 kB / 408.3 MB, free: 368 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.3084, allocations: 0 / 408.3 MB, free: 368 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.468e-05/0.3085, allocations: 15.92 kB / 408.3 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.3085, allocations: 0 / 408.3 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.304e-05/0.3086, allocations: 31.73 kB / 408.3 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.3086, allocations: 8 kB / 408.4 MB, free: 312 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.0003151/0.3089, allocations: 295.8 kB / 408.6 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.226e-05/0.309, allocations: 31.91 kB / 408.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.871e-05/0.309, allocations: 13.5 kB / 408.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.309, allocations: 0 / 408.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.309, allocations: 3.938 kB / 408.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.309, allocations: 64 / 408.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001481/0.3105, allocations: 1.444 MB / 410.1 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3105, allocations: 480 / 410.1 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.315e-05/0.3106, allocations: 4 kB / 410.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.093e-06/0.3106, allocations: 4 kB / 410.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.238e-05/0.3106, allocations: 19.98 kB / 410.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3106, allocations: 4 kB / 410.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3106, allocations: 0 / 410.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0014/0.312, allocations: 1.315 MB / 411.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.903e-05/0.3121, allocations: 96.89 kB / 411.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.3122, allocations: 67.94 kB / 411.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.151e-05/0.3123, allocations: 8 kB / 411.7 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.49e-05/0.3124, allocations: 15.98 kB / 411.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.843e-05/0.3124, allocations: 23.98 kB / 411.7 MB, free: 12.83 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.156e-05/0.3125, allocations: 83.22 kB / 411.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.814e-06/0.3125, allocations: 0 / 411.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004306/0.3129, allocations: 99.8 kB / 411.9 MB, free: 12.65 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.002648/0.3156, allocations: 2.313 MB / 414.2 MB, free: 10.33 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001967/0.3175, allocations: 2.144 MB / 416.3 MB, free: 8.156 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3176, allocations: 0 / 416.3 MB, free: 8.156 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001865/0.3194, allocations: 2.19 MB / 418.5 MB, free: 5.941 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002863/0.3197, allocations: 20 kB / 418.5 MB, free: 5.922 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003913/0.3236, allocations: 3.332 MB / 421.9 MB, free: 2.477 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003835/0.3241, allocations: 0.7279 MB / 422.6 MB, free: 1.723 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.521e-05/0.3241, allocations: 0 / 422.6 MB, free: 1.723 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.902e-05/0.3241, allocations: 35.52 kB / 422.6 MB, free: 1.688 MB / 334.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3242, allocations: 7.938 kB / 422.6 MB, free: 1.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02721/0.3514, allocations: 4.743 MB / 427.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.882/8.233, allocations: 14.55 kB / 427.4 MB, free: 13.02 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