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.001865/0.001865, allocations: 111.6 kB / 20.43 MB, free: 1.473 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.002272/0.002272, allocations: 214.7 kB / 23.74 MB, free: 4.688 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.432/1.432, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.001568/0.001568, allocations: 47.92 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2812, allocations: 53.36 MB / 431.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002846/0.284, allocations: 1.243 MB / 432.4 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001029/0.285, allocations: 477.4 kB / 432.8 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.989e-05/0.2851, allocations: 0 / 432.8 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.963e-05/0.2851, allocations: 11.92 kB / 432.9 MB, free: 5.121 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.0005189/0.2856, allocations: 83.72 kB / 432.9 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001625/0.2858, allocations: 63.75 kB / 433 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001116/0.2859, allocations: 47.89 kB / 433 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.395e-05/0.286, allocations: 4 kB / 433 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.473e-05/0.286, allocations: 11.98 kB / 433.1 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.98e-05/0.286, allocations: 31.78 kB / 433.1 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.546e-05/0.286, allocations: 4 kB / 433.1 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003236/0.2864, allocations: 159.7 kB / 433.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.265e-05/0.2864, allocations: 31.91 kB / 433.3 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.447e-05/0.2865, allocations: 47.69 kB / 433.3 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002783/0.2868, allocations: 179.7 kB / 433.5 MB, free: 4.473 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2868, allocations: 0 / 433.5 MB, free: 4.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2868, allocations: 0 / 433.5 MB, free: 4.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.2868, allocations: 0 / 433.5 MB, free: 4.473 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.0006595/0.2874, allocations: 0.4968 MB / 434 MB, free: 3.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.2875, allocations: 8.031 kB / 434 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.82e-05/0.2876, allocations: 62.61 kB / 434.1 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.2877, allocations: 28.77 kB / 434.1 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001242/0.2878, allocations: 122.4 kB / 434.2 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.2878, allocations: 384 / 434.2 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.975e-05/0.2879, allocations: 12.31 kB / 434.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003492/0.2882, allocations: 278.9 kB / 434.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.2882, allocations: 3.938 kB / 434.5 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.2882, allocations: 4 kB / 434.5 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.2882, allocations: 0 / 434.5 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.2884, allocations: 144.3 kB / 434.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000387/0.2888, allocations: 364.6 kB / 435 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/0.289, allocations: 193.4 kB / 435.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.2892, allocations: 162.1 kB / 435.4 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.27e-05/0.2892, allocations: 0 / 435.4 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005384/0.2897, allocations: 494.8 kB / 435.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.162e-06/0.2897, allocations: 0 / 435.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.0009383/0.2907, allocations: 0.7605 MB / 436.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.2908, allocations: 160.5 kB / 436.8 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.933e-05/0.2909, allocations: 101.9 kB / 436.9 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.2909, allocations: 25.7 kB / 436.9 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.164e-05/0.2909, allocations: 85.17 kB / 437 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.562e-05/0.291, allocations: 103.2 kB / 437.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.878e-05/0.2911, allocations: 41.7 kB / 437.1 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.2912, allocations: 334.8 kB / 437.4 MB, free: 264 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.86e-05/0.2913, allocations: 80.41 kB / 437.5 MB, free: 180 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.2914, allocations: 120.2 kB / 437.6 MB, free: 56 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003923/0.2918, allocations: 432.9 kB / 438 MB, free: 15.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.2918, allocations: 7.938 kB / 438.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003882/0.2922, allocations: 364.9 kB / 438.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/0.2923, allocations: 115.3 kB / 438.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.2923, allocations: 64 / 438.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/0.2924, allocations: 8 kB / 438.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.971e-05/0.2924, allocations: 4 kB / 438.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.2924, allocations: 0 / 438.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.069e-05/0.2925, allocations: 27.78 kB / 438.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.056e-05/0.2925, allocations: 11.98 kB / 438.6 MB, free: 15.04 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.00031/0.2928, allocations: 299.7 kB / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.405e-05/0.2929, allocations: 31.86 kB / 438.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.771e-05/0.2929, allocations: 13.59 kB / 438.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2929, allocations: 4 kB / 438.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.902e-06/0.2929, allocations: 4 kB / 438.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.2929, allocations: 0 / 438.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001462/0.2944, allocations: 1.435 MB / 440.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2944, allocations: 0 / 440.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.373e-05/0.2944, allocations: 7.984 kB / 440.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.2944, allocations: 0 / 440.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.959e-05/0.2944, allocations: 16 kB / 440.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.2944, allocations: 3.938 kB / 440.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2945, allocations: 0 / 440.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001361/0.2958, allocations: 1.339 MB / 441.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.895e-05/0.2958, allocations: 23.84 kB / 441.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.2959, allocations: 67.94 kB / 441.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.532e-05/0.296, allocations: 11.94 kB / 441.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.54e-05/0.2961, allocations: 11.98 kB / 441.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-05/0.2961, allocations: 19.98 kB / 441.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.855e-05/0.2962, allocations: 87.22 kB / 441.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2962, allocations: 0 / 441.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003903/0.2965, allocations: 99.86 kB / 442 MB, free: 11.47 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.002515/0.2991, allocations: 2.338 MB / 444.4 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.3002, allocations: 1.078 MB / 445.5 MB, free: 8.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3002, allocations: 0 / 445.5 MB, free: 8.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008236/0.301, allocations: 0.8967 MB / 446.3 MB, free: 7.098 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002786/0.3013, allocations: 22.75 kB / 446.4 MB, free: 7.078 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00352/0.3048, allocations: 3.307 MB / 449.7 MB, free: 3.664 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003714/0.3052, allocations: 0.7281 MB / 450.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.614e-05/0.3052, allocations: 0 / 450.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.609e-05/0.3052, allocations: 39.36 kB / 450.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3052, allocations: 0 / 450.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03697/0.3422, allocations: 5.127 MB / 455.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/10.98, allocations: 17.94 kB / 455.6 MB, free: 13.85 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.354883448919281]