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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 107.5 kB / 20.44 MB, free: 1.348 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 190.3 kB / 23.71 MB, free: 4.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 47.92 kB / 370.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2656, allocations: 52.18 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002425/0.268, allocations: 1.23 MB / 423.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001014/0.269, allocations: 449 kB / 424.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.373e-05/0.269, allocations: 0 / 424.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.066e-05/0.2691, allocations: 3.938 kB / 424.2 MB, free: 12.71 MB / 334.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.000478/0.2695, allocations: 83.69 kB / 424.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001791/0.2697, allocations: 63.81 kB / 424.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001048/0.2698, allocations: 43.91 kB / 424.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.487e-05/0.2699, allocations: 7.984 kB / 424.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.557e-05/0.2699, allocations: 23.92 kB / 424.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.537e-05/0.27, allocations: 23.84 kB / 424.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.344e-05/0.27, allocations: 4 kB / 424.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003167/0.2703, allocations: 147.8 kB / 424.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.1e-05/0.2703, allocations: 39.78 kB / 424.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.748e-05/0.2704, allocations: 39.75 kB / 424.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002748/0.2707, allocations: 177 kB / 424.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2707, allocations: 0 / 424.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2707, allocations: 4 kB / 424.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.2707, allocations: 0 / 424.9 MB, free: 12.06 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.0005702/0.2712, allocations: 488.7 kB / 425.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.2713, allocations: 8.031 kB / 425.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.423e-05/0.2714, allocations: 58.72 kB / 425.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.2715, allocations: 24.73 kB / 425.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.2716, allocations: 130.4 kB / 425.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.2716, allocations: 4.375 kB / 425.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.79e-05/0.2716, allocations: 4.375 kB / 425.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000438/0.2721, allocations: 398.2 kB / 426 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.2721, allocations: 3.938 kB / 426 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.2721, allocations: 8 kB / 426 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.2721, allocations: 0 / 426 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002677/0.2724, allocations: 271.7 kB / 426.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003445/0.2727, allocations: 344.6 kB / 426.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003377/0.2731, allocations: 316.8 kB / 426.9 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002724/0.2733, allocations: 281.4 kB / 427.2 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.2733, allocations: 4 kB / 427.2 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006188/0.274, allocations: 0.5763 MB / 427.8 MB, free: 8.926 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.252e-06/0.274, allocations: 0 / 427.8 MB, free: 8.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.001137/0.2751, allocations: 0.9976 MB / 428.8 MB, free: 7.887 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/0.2752, allocations: 160.5 kB / 428.9 MB, free: 7.699 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.96e-05/0.2753, allocations: 109.8 kB / 429 MB, free: 7.582 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.2753, allocations: 29.7 kB / 429 MB, free: 7.547 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.978e-05/0.2754, allocations: 85.14 kB / 429.1 MB, free: 7.461 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.728e-05/0.2754, allocations: 95.17 kB / 429.2 MB, free: 7.367 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.328e-05/0.2755, allocations: 49.64 kB / 429.3 MB, free: 7.312 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.2756, allocations: 330.8 kB / 429.6 MB, free: 6.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001934/0.2758, allocations: 199.8 kB / 429.8 MB, free: 6.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.2761, allocations: 235.7 kB / 430 MB, free: 6.523 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004489/0.2765, allocations: 480.9 kB / 430.5 MB, free: 6.023 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/0.2765, allocations: 7.938 kB / 430.5 MB, free: 6.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005409/0.277, allocations: 0.4998 MB / 431 MB, free: 5.484 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.768e-05/0.2771, allocations: 111.4 kB / 431.1 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.2772, allocations: 0 / 431.1 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.2772, allocations: 432 / 431.1 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.346e-05/0.2772, allocations: 12.06 kB / 431.1 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.2772, allocations: 3.984 kB / 431.1 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.189e-05/0.2773, allocations: 31.78 kB / 431.2 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.2773, allocations: 8 kB / 431.2 MB, free: 5.309 MB / 334.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.000268/0.2776, allocations: 275.7 kB / 431.4 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.285e-05/0.2777, allocations: 27.91 kB / 431.5 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.859e-05/0.2777, allocations: 17.62 kB / 431.5 MB, free: 4.969 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.2777, allocations: 3.938 kB / 431.5 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.2777, allocations: 0 / 431.5 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.2777, allocations: 4 kB / 431.5 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/0.2788, allocations: 1.054 MB / 432.5 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2788, allocations: 7.938 kB / 432.5 MB, free: 3.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.229e-05/0.2789, allocations: 4 kB / 432.5 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.2789, allocations: 0 / 432.5 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.293e-05/0.2789, allocations: 19.98 kB / 432.6 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.2789, allocations: 3.938 kB / 432.6 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.2789, allocations: 7.938 kB / 432.6 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001109/0.28, allocations: 0.9946 MB / 433.6 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.291e-05/0.28, allocations: 23.84 kB / 433.6 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.2801, allocations: 67.94 kB / 433.7 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.532e-05/0.2802, allocations: 8 kB / 433.7 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.623e-05/0.2803, allocations: 15.98 kB / 433.7 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-05/0.2803, allocations: 16 kB / 433.7 MB, free: 2.633 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.562e-05/0.2804, allocations: 87.2 kB / 433.8 MB, free: 2.547 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2804, allocations: 0 / 433.8 MB, free: 2.547 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003714/0.2807, allocations: 95.88 kB / 433.9 MB, free: 2.453 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: 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.002396/0.2831, allocations: 2.146 MB / 436 MB, free: 288 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001003/0.2841, allocations: 0.8736 MB / 436.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.2841, allocations: 0 / 436.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005431/0.2847, allocations: 0.5332 MB / 437.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/0.2849, allocations: 27.27 kB / 437.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003711/0.2887, allocations: 3.554 MB / 441 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001209/0.2888, allocations: 114.7 kB / 441.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.384e-05/0.2888, allocations: 0 / 441.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.199e-05/0.2888, allocations: 39.42 kB / 441.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2888, allocations: 4.062 kB / 441.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03126/0.3201, allocations: 5.416 MB / 446.6 MB, free: 5.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/10.92, allocations: 14.86 kB / 446.6 MB, free: 5.562 MB / 350.1 MB " [Timeout remaining time 649] (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 --stepSize=0.000396747 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.249964592978358]