Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001029/0.001029, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001193/0.001193, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 60.05 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2356, allocations: 50.54 MB / 408.7 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002969/0.2387, allocations: 1.242 MB / 410 MB, free: 420 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000919/0.2396, allocations: 460.9 kB / 410.4 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.634e-05/0.2397, allocations: 0 / 410.4 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.512e-05/0.2397, allocations: 3.938 kB / 410.4 MB, free: 15.96 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.0004698/0.2402, allocations: 75.72 kB / 410.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001872/0.2404, allocations: 67.73 kB / 410.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001198/0.2405, allocations: 51.91 kB / 410.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.916e-05/0.2406, allocations: 11.45 kB / 410.6 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.248e-05/0.2406, allocations: 15.97 kB / 410.7 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.085e-05/0.2407, allocations: 19.88 kB / 410.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.339e-05/0.2407, allocations: 3.938 kB / 410.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002845/0.241, allocations: 127.8 kB / 410.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.768e-05/0.2411, allocations: 27.92 kB / 410.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.094e-05/0.2411, allocations: 47.69 kB / 410.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003345/0.2415, allocations: 178.2 kB / 411.1 MB, free: 15.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2415, allocations: 0 / 411.1 MB, free: 15.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2415, allocations: 0 / 411.1 MB, free: 15.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.2415, allocations: 4 kB / 411.1 MB, free: 15.34 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.0006707/0.2422, allocations: 0.5643 MB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.2422, allocations: 8.031 kB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.759e-05/0.2423, allocations: 58.69 kB / 411.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.2425, allocations: 20.83 kB / 411.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001315/0.2426, allocations: 188.1 kB / 411.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.2426, allocations: 4.375 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.863e-05/0.2427, allocations: 12.31 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000297/0.243, allocations: 282.9 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.243, allocations: 3.938 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.243, allocations: 4 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.243, allocations: 0 / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001469/0.2432, allocations: 144.3 kB / 412.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003201/0.2435, allocations: 385.6 kB / 412.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003774/0.2439, allocations: 0.5014 MB / 413.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003377/0.2442, allocations: 486.1 kB / 413.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.426e-05/0.2442, allocations: 4 kB / 413.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004626/0.2447, allocations: 486.8 kB / 414.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.763e-06/0.2447, allocations: 4 kB / 414.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.0008027/0.2455, allocations: 0.7307 MB / 414.9 MB, free: 11.24 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.398e-05/0.2456, allocations: 156.5 kB / 415.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.977e-05/0.2457, allocations: 101.8 kB / 415.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.2457, allocations: 33.7 kB / 415.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.245e-05/0.2458, allocations: 81.14 kB / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.671e-05/0.2458, allocations: 99.12 kB / 415.4 MB, free: 10.72 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.937e-05/0.2459, allocations: 49.69 kB / 415.4 MB, free: 10.67 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.246, allocations: 330.9 kB / 415.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.288e-05/0.2461, allocations: 80.41 kB / 415.8 MB, free: 10.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.219e-05/0.2462, allocations: 116.3 kB / 415.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000331/0.2465, allocations: 435.8 kB / 416.4 MB, free: 9.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.2466, allocations: 7.938 kB / 416.4 MB, free: 9.672 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003671/0.2469, allocations: 368.7 kB / 416.7 MB, free: 9.293 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.113e-05/0.247, allocations: 111.2 kB / 416.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.247, allocations: 4.031 kB / 416.8 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.2471, allocations: 4 kB / 416.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.138e-05/0.2471, allocations: 4.062 kB / 416.8 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.547e-06/0.2471, allocations: 7.984 kB / 416.9 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.738e-05/0.2472, allocations: 27.78 kB / 416.9 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.986e-05/0.2472, allocations: 12 kB / 416.9 MB, free: 9.113 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: 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.0002525/0.2475, allocations: 303.6 kB / 417.2 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.075e-05/0.2476, allocations: 27.89 kB / 417.2 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.958e-05/0.2476, allocations: 13.48 kB / 417.2 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.2476, allocations: 4 kB / 417.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2476, allocations: 0 / 417.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2476, allocations: 0 / 417.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001164/0.2488, allocations: 1.44 MB / 418.7 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2488, allocations: 0 / 418.7 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.246e-05/0.2488, allocations: 4 kB / 418.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.2488, allocations: 0 / 418.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.977e-05/0.2489, allocations: 19.98 kB / 418.7 MB, free: 7.223 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.2489, allocations: 3.938 kB / 418.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2489, allocations: 0 / 418.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.25, allocations: 1.319 MB / 420 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.264e-05/0.25, allocations: 96.95 kB / 420.1 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.695e-05/0.2501, allocations: 67.94 kB / 420.2 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.488e-05/0.2502, allocations: 8 kB / 420.2 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.694e-05/0.2503, allocations: 11.98 kB / 420.2 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.754e-05/0.2503, allocations: 19.98 kB / 420.2 MB, free: 5.652 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.119e-05/0.2504, allocations: 87.22 kB / 420.3 MB, free: 5.566 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2504, allocations: 3.938 kB / 420.3 MB, free: 5.562 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003616/0.2507, allocations: 91.86 kB / 420.4 MB, free: 5.473 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.002033/0.2528, allocations: 2.309 MB / 422.7 MB, free: 3.145 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001484/0.2543, allocations: 2.14 MB / 424.8 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2543, allocations: 0 / 424.8 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00134/0.2556, allocations: 2.19 MB / 427 MB, free: 14.76 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.2559, allocations: 20 kB / 427.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002993/0.2589, allocations: 3.328 MB / 430.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002636/0.2592, allocations: 0.7317 MB / 431.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.567e-05/0.2592, allocations: 0 / 431.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.587e-05/0.2593, allocations: 39.42 kB / 431.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2593, allocations: 0 / 431.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02101/0.2803, allocations: 4.764 MB / 435.9 MB, free: 5.836 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.384/7.664, allocations: 4.656 kB / 435.9 MB, free: 5.832 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches