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.001434/0.001434, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001503/0.001503, allocations: 216.3 kB / 23.75 MB, free: 4.668 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.476/1.476, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.001562/0.001562, allocations: 51.92 kB / 377.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2644, allocations: 53.35 MB / 431.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002553/0.267, allocations: 1.246 MB / 432.4 MB, free: 5.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001374/0.2684, allocations: 477.5 kB / 432.8 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.427e-05/0.2684, allocations: 0 / 432.8 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.077e-05/0.2685, allocations: 7.875 kB / 432.9 MB, free: 5.109 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.0006671/0.2691, allocations: 87.66 kB / 432.9 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001899/0.2693, allocations: 59.81 kB / 433 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001339/0.2694, allocations: 47.91 kB / 433 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.832e-05/0.2695, allocations: 3.984 kB / 433 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.855e-05/0.2696, allocations: 19.92 kB / 433.1 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.615e-05/0.2696, allocations: 27.89 kB / 433.1 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.724e-05/0.2696, allocations: 4 kB / 433.1 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003322/0.27, allocations: 155.7 kB / 433.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.477e-05/0.27, allocations: 27.91 kB / 433.3 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.702e-05/0.2701, allocations: 51.62 kB / 433.3 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002811/0.2704, allocations: 176.9 kB / 433.5 MB, free: 4.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.2704, allocations: 4 kB / 433.5 MB, free: 4.457 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2704, allocations: 0 / 433.5 MB, free: 4.457 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.854e-06/0.2704, allocations: 0 / 433.5 MB, free: 4.457 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.0007214/0.2711, allocations: 0.5007 MB / 434 MB, free: 3.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.2712, allocations: 8.031 kB / 434 MB, free: 3.902 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.273e-05/0.2712, allocations: 54.69 kB / 434.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/0.2714, allocations: 24.83 kB / 434.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.2715, allocations: 122.4 kB / 434.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.2716, allocations: 384 / 434.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.04e-05/0.2716, allocations: 16.38 kB / 434.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003616/0.2719, allocations: 278.9 kB / 434.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.2719, allocations: 7.922 kB / 434.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.272, allocations: 4 kB / 434.5 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.272, allocations: 0 / 434.5 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001737/0.2721, allocations: 144.3 kB / 434.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003944/0.2725, allocations: 360.6 kB / 435 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000231/0.2728, allocations: 189.5 kB / 435.2 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/0.2729, allocations: 170 kB / 435.4 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.068e-05/0.273, allocations: 0 / 435.4 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005507/0.2735, allocations: 494.8 kB / 435.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 9.82e-07/0.2735, allocations: 0 / 435.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.0008978/0.2744, allocations: 0.7607 MB / 436.6 MB, free: 1.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.2745, allocations: 156.5 kB / 436.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.789e-05/0.2746, allocations: 109.8 kB / 436.9 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.2746, allocations: 29.7 kB / 436.9 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.149e-05/0.2747, allocations: 81.14 kB / 437 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.019e-05/0.2748, allocations: 95.17 kB / 437.1 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.778e-05/0.2748, allocations: 49.73 kB / 437.1 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.275, allocations: 334.8 kB / 437.4 MB, free: 244 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.73e-05/0.2751, allocations: 80.41 kB / 437.5 MB, free: 160 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001095/0.2752, allocations: 120.2 kB / 437.6 MB, free: 36 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004035/0.2756, allocations: 433 kB / 438.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.2756, allocations: 3.938 kB / 438.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003964/0.276, allocations: 368.5 kB / 438.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.2761, allocations: 115.4 kB / 438.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2761, allocations: 0 / 438.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.2761, allocations: 4 kB / 438.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.763e-05/0.2762, allocations: 4 kB / 438.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.2762, allocations: 0 / 438.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.761e-05/0.2762, allocations: 27.78 kB / 438.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.2763, allocations: 8 kB / 438.6 MB, free: 15.03 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.0002813/0.2765, allocations: 303.6 kB / 438.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.547e-05/0.2766, allocations: 31.86 kB / 438.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.361e-05/0.2766, allocations: 5.656 kB / 438.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.2766, allocations: 0 / 438.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.2766, allocations: 4 kB / 438.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.2766, allocations: 4 kB / 438.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001394/0.278, allocations: 1.439 MB / 440.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.278, allocations: 0 / 440.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.079e-05/0.2781, allocations: 4 kB / 440.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2781, allocations: 0 / 440.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.593e-05/0.2781, allocations: 28.03 kB / 440.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2781, allocations: 3.938 kB / 440.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2781, allocations: 0 / 440.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001347/0.2794, allocations: 1.335 MB / 441.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.145e-05/0.2795, allocations: 23.84 kB / 441.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.2796, allocations: 71.94 kB / 441.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.4e-05/0.2797, allocations: 8 kB / 441.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.567e-05/0.2797, allocations: 11.98 kB / 441.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.127e-05/0.2797, allocations: 19.98 kB / 441.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.09e-05/0.2798, allocations: 83.22 kB / 441.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2798, allocations: 0 / 441.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003756/0.2802, allocations: 103.9 kB / 442 MB, free: 11.45 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.002526/0.2827, allocations: 2.331 MB / 444.4 MB, free: 9.113 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.2838, allocations: 1.081 MB / 445.4 MB, free: 8.008 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.2838, allocations: 0 / 445.4 MB, free: 8.008 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008023/0.2846, allocations: 0.8967 MB / 446.3 MB, free: 7.086 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002619/0.2849, allocations: 24 kB / 446.4 MB, free: 7.062 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003541/0.2884, allocations: 3.307 MB / 449.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003562/0.2888, allocations: 0.732 MB / 450.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.273e-05/0.2888, allocations: 0 / 450.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.997e-05/0.2888, allocations: 39.41 kB / 450.4 MB, free: 2.852 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2888, allocations: 0 / 450.4 MB, free: 2.852 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03775/0.3266, allocations: 5.13 MB / 455.6 MB, free: 13.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.05, allocations: 20.19 kB / 455.6 MB, free: 13.83 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000396747 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.csv","/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.707059731001209]