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.001083/0.001083, allocations: 113.6 kB / 17.06 MB, free: 6.012 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.001146/0.001146, allocations: 191 kB / 18 MB, free: 5.098 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.313/1.313, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001073/0.001073, allocations: 47.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2679/0.269, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002318/0.2714, allocations: 1.232 MB / 401.5 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.2725, allocations: 454.6 kB / 401.9 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.489e-05/0.2726, allocations: 1.281 kB / 401.9 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.552e-05/0.2726, allocations: 7.922 kB / 401.9 MB, free: 7.086 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.0005441/0.2732, allocations: 71.59 kB / 402 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001568/0.2734, allocations: 65.73 kB / 402 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.2735, allocations: 47.91 kB / 402.1 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.071e-05/0.2735, allocations: 7.516 kB / 402.1 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.94e-05/0.2736, allocations: 23.97 kB / 402.1 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.492e-05/0.2736, allocations: 27.84 kB / 402.2 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.196e-05/0.2736, allocations: 3.938 kB / 402.2 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002835/0.2739, allocations: 115.8 kB / 402.3 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.077e-05/0.274, allocations: 35.91 kB / 402.3 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.594e-05/0.2741, allocations: 51.62 kB / 402.4 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002493/0.2743, allocations: 178.2 kB / 402.5 MB, free: 6.516 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.2743, allocations: 0 / 402.5 MB, free: 6.516 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2743, allocations: 0 / 402.5 MB, free: 6.516 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.2743, allocations: 0 / 402.5 MB, free: 6.516 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.0005645/0.2749, allocations: 0.5682 MB / 403.1 MB, free: 5.883 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.275, allocations: 8.031 kB / 403.1 MB, free: 5.875 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.033e-05/0.275, allocations: 58.72 kB / 403.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001171/0.2752, allocations: 24.8 kB / 403.2 MB, free: 5.785 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.2753, allocations: 184.1 kB / 403.4 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.2753, allocations: 4.375 kB / 403.4 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.802e-05/0.2753, allocations: 12.31 kB / 403.4 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003041/0.2757, allocations: 278.9 kB / 403.7 MB, free: 5.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.2757, allocations: 7.938 kB / 403.7 MB, free: 5.262 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.2757, allocations: 4 kB / 403.7 MB, free: 5.258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.2757, allocations: 3.984 kB / 403.7 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000159/0.2759, allocations: 144.3 kB / 403.8 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003626/0.2762, allocations: 389.6 kB / 404.2 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004094/0.2767, allocations: 0.5014 MB / 404.7 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003668/0.277, allocations: 482.1 kB / 405.2 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.142e-05/0.2771, allocations: 0 / 405.2 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004951/0.2776, allocations: 482.8 kB / 405.6 MB, free: 3.164 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.052e-06/0.2776, allocations: 0 / 405.6 MB, free: 3.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.0008232/0.2784, allocations: 0.741 MB / 406.4 MB, free: 2.406 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.241e-05/0.2785, allocations: 164.5 kB / 406.5 MB, free: 2.215 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.997e-05/0.2786, allocations: 97.86 kB / 406.6 MB, free: 2.109 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.2786, allocations: 29.7 kB / 406.7 MB, free: 2.074 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.325e-05/0.2787, allocations: 85.12 kB / 406.7 MB, free: 1.984 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.243e-05/0.2787, allocations: 99.17 kB / 406.8 MB, free: 1.887 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.278e-05/0.2788, allocations: 41.7 kB / 406.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.2789, allocations: 330.8 kB / 407.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.541e-05/0.279, allocations: 92.44 kB / 407.3 MB, free: 1.414 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.2791, allocations: 112.3 kB / 407.4 MB, free: 1.301 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003191/0.2795, allocations: 428.9 kB / 407.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.2795, allocations: 7.938 kB / 407.8 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003543/0.2798, allocations: 368.5 kB / 408.2 MB, free: 476 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.881e-05/0.2799, allocations: 111.3 kB / 408.3 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.2799, allocations: 4 kB / 408.3 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.28, allocations: 0 / 408.3 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.934e-05/0.28, allocations: 8.031 kB / 408.3 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.28, allocations: 0 / 408.3 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.719e-05/0.2801, allocations: 31.73 kB / 408.3 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.913e-05/0.2801, allocations: 11.94 kB / 408.4 MB, free: 296 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.0002884/0.2804, allocations: 303.7 kB / 408.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.805e-05/0.2805, allocations: 23.91 kB / 408.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.089e-05/0.2805, allocations: 13.5 kB / 408.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.2805, allocations: 4 kB / 408.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2805, allocations: 0 / 408.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.2805, allocations: 0 / 408.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001253/0.2818, allocations: 1.44 MB / 410.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2818, allocations: 480 / 410.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.185e-05/0.2818, allocations: 8.062 kB / 410.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.2818, allocations: 4 kB / 410.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.942e-05/0.2819, allocations: 19.98 kB / 410.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2819, allocations: 3.938 kB / 410.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2819, allocations: 0 / 410.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/0.2831, allocations: 1.315 MB / 411.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.585e-05/0.2832, allocations: 96.95 kB / 411.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.888e-05/0.2833, allocations: 71.94 kB / 411.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.465e-05/0.2834, allocations: 8 kB / 411.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.482e-05/0.2834, allocations: 11.98 kB / 411.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.552e-05/0.2835, allocations: 16 kB / 411.7 MB, free: 12.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.802e-05/0.2835, allocations: 87.2 kB / 411.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2835, allocations: 3.938 kB / 411.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003799/0.2839, allocations: 91.88 kB / 411.9 MB, free: 12.64 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.002219/0.2861, allocations: 2.321 MB / 414.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001539/0.2877, allocations: 2.14 MB / 416.3 MB, free: 8.145 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.2877, allocations: 0 / 416.3 MB, free: 8.145 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001575/0.2893, allocations: 2.19 MB / 418.5 MB, free: 5.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.2896, allocations: 23.22 kB / 418.5 MB, free: 5.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003203/0.2928, allocations: 3.335 MB / 421.9 MB, free: 2.461 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002753/0.2931, allocations: 0.7279 MB / 422.6 MB, free: 1.707 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.544e-05/0.2931, allocations: 4 kB / 422.6 MB, free: 1.703 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.193e-05/0.2931, allocations: 39.42 kB / 422.6 MB, free: 1.668 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2931, allocations: 0 / 422.6 MB, free: 1.668 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01904/0.3122, allocations: 4.737 MB / 427.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.609/7.921, allocations: 22.05 kB / 427.4 MB, free: 13 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 & python3 -m fmpy simulate --output-file Modelica_4.0.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.0008 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.csv","/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