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.001673/0.001673, allocations: 110.1 kB / 17.06 MB, free: 6.02 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.001859/0.00186, 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.429/1.429, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 55.91 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2574, 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.002455/0.2598, allocations: 1.231 MB / 401.5 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.2609, allocations: 459.2 kB / 401.9 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.111e-05/0.261, allocations: 1.5 kB / 401.9 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.797e-05/0.261, allocations: 3.938 kB / 401.9 MB, free: 7.09 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.0004942/0.2615, allocations: 70.86 kB / 402 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001781/0.2617, allocations: 69.64 kB / 402.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001244/0.2618, allocations: 58.12 kB / 402.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.991e-05/0.2619, allocations: 3.516 kB / 402.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.135e-05/0.2619, allocations: 19.97 kB / 402.1 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.121e-05/0.262, allocations: 23.86 kB / 402.2 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.557e-05/0.262, allocations: 7.984 kB / 402.2 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000263/0.2623, allocations: 115.8 kB / 402.3 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.463e-05/0.2623, allocations: 27.92 kB / 402.3 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.835e-05/0.2624, allocations: 47.69 kB / 402.4 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003101/0.2627, allocations: 182.2 kB / 402.5 MB, free: 6.523 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2628, allocations: 0 / 402.5 MB, free: 6.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2628, allocations: 4 kB / 402.5 MB, free: 6.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.2628, allocations: 0 / 402.5 MB, free: 6.52 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.0007102/0.2635, allocations: 0.5721 MB / 403.1 MB, free: 5.883 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.2635, allocations: 8.031 kB / 403.1 MB, free: 5.875 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.733e-05/0.2636, allocations: 50.73 kB / 403.2 MB, free: 5.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001461/0.2638, allocations: 28.78 kB / 403.2 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001763/0.264, allocations: 180.1 kB / 403.4 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.264, allocations: 4.375 kB / 403.4 MB, free: 5.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.918e-05/0.264, allocations: 4.375 kB / 403.4 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003606/0.2644, allocations: 290.9 kB / 403.7 MB, free: 5.273 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.2644, allocations: 7.875 kB / 403.7 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.2644, allocations: 0 / 403.7 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.2644, allocations: 4 kB / 403.7 MB, free: 5.262 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001738/0.2646, allocations: 144.3 kB / 403.8 MB, free: 5.117 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004274/0.265, allocations: 385.6 kB / 404.2 MB, free: 4.688 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004973/0.2656, allocations: 0.5014 MB / 404.7 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004097/0.266, allocations: 482.1 kB / 405.2 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.266, allocations: 4 kB / 405.2 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005707/0.2666, allocations: 494.8 kB / 405.6 MB, free: 3.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.833e-06/0.2666, allocations: 0 / 405.6 MB, free: 3.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.0009783/0.2676, allocations: 0.7332 MB / 406.4 MB, free: 2.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.2677, allocations: 156.5 kB / 406.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.2678, allocations: 105.8 kB / 406.6 MB, free: 2.113 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.2678, allocations: 25.7 kB / 406.7 MB, free: 2.082 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.696e-05/0.2679, allocations: 81.14 kB / 406.7 MB, free: 1.996 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.713e-05/0.268, allocations: 95.23 kB / 406.8 MB, free: 1.902 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.435e-05/0.2681, allocations: 49.72 kB / 406.9 MB, free: 1.848 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.2682, allocations: 326.8 kB / 407.2 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.2683, allocations: 88.41 kB / 407.3 MB, free: 1.43 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/0.2685, allocations: 116.3 kB / 407.4 MB, free: 1.312 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004139/0.2689, allocations: 436.8 kB / 407.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/0.2689, allocations: 3.938 kB / 407.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004219/0.2693, allocations: 376.4 kB / 408.2 MB, free: 476 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.2694, allocations: 107.3 kB / 408.3 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.2695, allocations: 4.031 kB / 408.3 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.2695, allocations: 0 / 408.3 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.676e-05/0.2695, allocations: 16.05 kB / 408.3 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.2696, allocations: 0 / 408.3 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.64e-05/0.2696, allocations: 27.73 kB / 408.4 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.856e-05/0.2697, allocations: 12 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.0002979/0.27, allocations: 295.7 kB / 408.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.309e-05/0.27, allocations: 27.91 kB / 408.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.431e-05/0.27, allocations: 13.55 kB / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.2701, allocations: 0 / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.2701, allocations: 0 / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.2701, allocations: 0 / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001413/0.2715, allocations: 1.444 MB / 410.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.2715, allocations: 0 / 410.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.484e-05/0.2715, allocations: 4 kB / 410.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.2716, allocations: 7.984 kB / 410.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.728e-05/0.2716, allocations: 16 kB / 410.2 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.2716, allocations: 0 / 410.2 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2716, allocations: 0 / 410.2 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001355/0.273, allocations: 1.319 MB / 411.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.576e-05/0.273, allocations: 93.42 kB / 411.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.2732, allocations: 67.94 kB / 411.6 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.563e-05/0.2733, allocations: 8 kB / 411.7 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.209e-05/0.2733, allocations: 15.98 kB / 411.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.245e-05/0.2733, allocations: 19.98 kB / 411.7 MB, free: 12.83 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.966e-05/0.2734, allocations: 91.14 kB / 411.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2734, allocations: 0 / 411.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003881/0.2738, allocations: 95.86 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.002467/0.2763, allocations: 2.319 MB / 414.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001894/0.2782, allocations: 2.144 MB / 416.3 MB, free: 8.148 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.2782, allocations: 4.062 kB / 416.3 MB, free: 8.145 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001771/0.28, 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.0002771/0.2803, allocations: 20 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.003654/0.284, allocations: 3.328 MB / 421.9 MB, free: 2.469 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003582/0.2843, allocations: 0.7318 MB / 422.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.59e-05/0.2844, allocations: 0 / 422.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.936e-05/0.2844, allocations: 35.42 kB / 422.6 MB, free: 1.68 MB / 334.1 MB Notification: Performance of SimCode: time 4.5e-07/0.2844, allocations: 4 kB / 422.6 MB, free: 1.676 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02734/0.3118, allocations: 4.749 MB / 427.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.121/8.432, allocations: 11.73 kB / 427.4 MB, free: 13.01 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