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.001052/0.001052, 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.001134/0.001134, 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.314/1.314, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002267/0.002267, allocations: 59.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.241, allocations: 50.53 MB / 408.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002327/0.2433, allocations: 1.246 MB / 410 MB, free: 440 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009579/0.2443, allocations: 461 kB / 410.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.856e-05/0.2444, allocations: 0 / 410.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.673e-05/0.2444, allocations: 3.844 kB / 410.4 MB, free: 15.98 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.000462/0.2449, allocations: 75.72 kB / 410.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001356/0.245, allocations: 55.83 kB / 410.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000104/0.2451, allocations: 55.83 kB / 410.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.13e-05/0.2452, allocations: 11.5 kB / 410.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.684e-05/0.2452, allocations: 15.94 kB / 410.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.256e-05/0.2453, allocations: 23.91 kB / 410.7 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.282e-05/0.2453, allocations: 0 / 410.7 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002085/0.2455, allocations: 123.8 kB / 410.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.214e-05/0.2455, allocations: 31.91 kB / 410.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.648e-05/0.2456, allocations: 47.67 kB / 410.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.2458, allocations: 178.2 kB / 411.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.2459, allocations: 4 kB / 411.1 MB, free: 15.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2459, allocations: 0 / 411.1 MB, free: 15.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.369e-06/0.2459, allocations: 0 / 411.1 MB, free: 15.37 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.0005217/0.2464, allocations: 0.5682 MB / 411.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.2464, allocations: 8.031 kB / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.077e-05/0.2465, allocations: 58.67 kB / 411.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.2466, allocations: 24.83 kB / 411.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.2468, allocations: 180.2 kB / 411.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.328e-05/0.2468, allocations: 12.31 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.451e-05/0.2468, allocations: 8.375 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002841/0.2471, allocations: 282.9 kB / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.2471, allocations: 3.938 kB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.2471, allocations: 4 kB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.2471, allocations: 0 / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001473/0.2473, allocations: 144.3 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003056/0.2476, allocations: 385.6 kB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003857/0.248, allocations: 0.4975 MB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003345/0.2483, allocations: 482.1 kB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.255e-05/0.2484, allocations: 0 / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004325/0.2488, allocations: 498.7 kB / 414.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.152e-06/0.2488, allocations: 0 / 414.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.0007912/0.2496, allocations: 0.7346 MB / 414.9 MB, free: 11.26 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.63e-05/0.2497, allocations: 156.5 kB / 415.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.472e-05/0.2498, allocations: 101.8 kB / 415.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.2498, allocations: 29.7 kB / 415.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.219e-05/0.2498, allocations: 85.14 kB / 415.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.138e-05/0.2499, allocations: 99.17 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.184e-05/0.25, allocations: 45.69 kB / 415.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.2501, allocations: 326.9 kB / 415.7 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.469e-05/0.2502, allocations: 92.41 kB / 415.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.524e-05/0.2503, allocations: 120.2 kB / 415.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003219/0.2506, allocations: 428.2 kB / 416.4 MB, free: 9.703 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.2506, allocations: 3.938 kB / 416.4 MB, free: 9.699 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003652/0.251, allocations: 376.3 kB / 416.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.183e-05/0.2511, allocations: 107.3 kB / 416.8 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.2511, allocations: 11.86 kB / 416.8 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.2511, allocations: 4 kB / 416.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.445e-05/0.2512, allocations: 8.031 kB / 416.9 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.2512, allocations: 0 / 416.9 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.974e-05/0.2513, allocations: 27.78 kB / 416.9 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.2513, allocations: 8 kB / 416.9 MB, free: 9.137 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.0002385/0.2515, allocations: 303.7 kB / 417.2 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.716e-05/0.2516, allocations: 27.91 kB / 417.2 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.751e-05/0.2516, allocations: 5.562 kB / 417.2 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.2516, allocations: 0 / 417.2 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.2516, allocations: 4 kB / 417.2 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.2516, allocations: 0 / 417.2 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001254/0.2529, allocations: 1.44 MB / 418.7 MB, free: 7.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2529, allocations: 4 kB / 418.7 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.907e-05/0.2529, allocations: 4 kB / 418.7 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2529, allocations: 0 / 418.7 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.856e-05/0.253, allocations: 19.98 kB / 418.7 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.253, allocations: 0 / 418.7 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.253, allocations: 0 / 418.7 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.2541, allocations: 1.319 MB / 420 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.351e-05/0.2542, allocations: 96.95 kB / 420.1 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.699e-05/0.2543, allocations: 71.94 kB / 420.2 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.279e-05/0.2544, allocations: 8 kB / 420.2 MB, free: 5.711 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.128e-05/0.2544, allocations: 11.98 kB / 420.2 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.399e-05/0.2545, allocations: 23.97 kB / 420.2 MB, free: 5.676 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.672e-05/0.2545, allocations: 87.22 kB / 420.3 MB, free: 5.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.492e-06/0.2545, allocations: 0 / 420.3 MB, free: 5.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003471/0.2549, allocations: 91.81 kB / 420.4 MB, free: 5.5 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.002015/0.2569, allocations: 2.314 MB / 422.7 MB, free: 3.168 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001538/0.2584, allocations: 2.14 MB / 424.8 MB, free: 1.004 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.2585, allocations: 0 / 424.8 MB, free: 1.004 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001391/0.2599, allocations: 2.19 MB / 427 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.0002525/0.2601, allocations: 24.12 kB / 427.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003205/0.2633, allocations: 3.324 MB / 430.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.2637, allocations: 0.7278 MB / 431.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.559e-05/0.2637, allocations: 4 kB / 431.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.614e-05/0.2638, allocations: 43.36 kB / 431.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2638, allocations: 0 / 431.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02482/0.2886, allocations: 4.761 MB / 435.9 MB, free: 5.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.432/7.72, allocations: 4.656 kB / 435.9 MB, free: 5.855 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