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.001277/0.001277, allocations: 113.6 kB / 17.78 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.001247/0.001247, allocations: 203.9 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.408/1.408, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001789/0.001789, allocations: 63.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2505, allocations: 50.53 MB / 408.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002338/0.2529, allocations: 1.25 MB / 410 MB, free: 464 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009818/0.2539, allocations: 452.9 kB / 410.4 MB, free: 12 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.933e-05/0.254, allocations: 0 / 410.4 MB, free: 12 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.755e-05/0.254, allocations: 3.938 kB / 410.4 MB, free: 8 kB / 318.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.0004502/0.2545, allocations: 71.84 kB / 410.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001378/0.2546, allocations: 71.75 kB / 410.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.424e-05/0.2547, allocations: 47.8 kB / 410.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.843e-05/0.2548, allocations: 6.938 kB / 410.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.985e-05/0.2548, allocations: 15.94 kB / 410.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.804e-05/0.2549, allocations: 23.91 kB / 410.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.203e-05/0.2549, allocations: 11.88 kB / 410.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002218/0.2551, allocations: 115.8 kB / 410.8 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.981e-05/0.2552, allocations: 31.91 kB / 410.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.658e-05/0.2552, allocations: 51.67 kB / 410.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002457/0.2555, allocations: 171.2 kB / 411 MB, free: 15.4 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.2555, allocations: 8 kB / 411.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2555, allocations: 0 / 411.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.2555, allocations: 0 / 411.1 MB, free: 15.39 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.0006393/0.2561, allocations: 0.5721 MB / 411.6 MB, free: 14.76 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.2562, allocations: 8.031 kB / 411.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.459e-05/0.2563, allocations: 54.69 kB / 411.7 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001252/0.2564, allocations: 24.83 kB / 411.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.2566, allocations: 176.2 kB / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.2566, allocations: 4.375 kB / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.2566, allocations: 12.31 kB / 411.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003435/0.257, allocations: 282.9 kB / 412.2 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.257, allocations: 3.938 kB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.257, allocations: 0 / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.257, allocations: 4 kB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000176/0.2572, allocations: 144.3 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004024/0.2576, allocations: 385.5 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004671/0.2581, allocations: 0.5092 MB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003939/0.2585, allocations: 478.1 kB / 413.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.889e-06/0.2585, allocations: 7.984 kB / 413.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004961/0.259, allocations: 490.8 kB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.132e-06/0.259, allocations: 0 / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.0008817/0.2599, allocations: 0.7385 MB / 414.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/0.26, allocations: 156.5 kB / 415.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.911e-05/0.2601, allocations: 105.8 kB / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.2602, allocations: 25.7 kB / 415.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.044e-05/0.2602, allocations: 85.08 kB / 415.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.202e-05/0.2603, allocations: 103.2 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.695e-05/0.2604, allocations: 45.72 kB / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.2605, allocations: 326.8 kB / 415.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.4e-05/0.2606, allocations: 84.41 kB / 415.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001189/0.2608, allocations: 116.3 kB / 415.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003926/0.2612, allocations: 431.8 kB / 416.4 MB, free: 9.727 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.2612, allocations: 3.938 kB / 416.4 MB, free: 9.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004095/0.2616, allocations: 372.2 kB / 416.7 MB, free: 9.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001072/0.2617, allocations: 121.5 kB / 416.8 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.2617, allocations: 0 / 416.8 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.2617, allocations: 0 / 416.8 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.135e-05/0.2618, allocations: 11.94 kB / 416.9 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.2618, allocations: 0 / 416.9 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.274e-05/0.2619, allocations: 27.78 kB / 416.9 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.071e-05/0.2619, allocations: 11.98 kB / 416.9 MB, free: 9.16 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.0002901/0.2622, allocations: 295.7 kB / 417.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.125e-05/0.2623, allocations: 31.84 kB / 417.2 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.804e-05/0.2623, allocations: 9.562 kB / 417.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.2623, allocations: 0 / 417.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2623, allocations: 0 / 417.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.2623, allocations: 11.98 kB / 417.2 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001444/0.2638, allocations: 1.425 MB / 418.7 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2638, allocations: 0 / 418.7 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.21e-05/0.2638, allocations: 8 kB / 418.7 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.2638, allocations: 0 / 418.7 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.786e-05/0.2639, allocations: 23.92 kB / 418.7 MB, free: 7.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.2639, allocations: 0 / 418.7 MB, free: 7.277 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.2639, allocations: 0 / 418.7 MB, free: 7.277 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001319/0.2652, allocations: 1.323 MB / 420 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.217e-05/0.2653, allocations: 92.95 kB / 420.1 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.2654, allocations: 72.06 kB / 420.2 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.275e-05/0.2655, allocations: 8 kB / 420.2 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.103e-05/0.2655, allocations: 19.97 kB / 420.2 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.621e-05/0.2656, allocations: 19.98 kB / 420.2 MB, free: 5.699 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.082e-05/0.2656, allocations: 83.69 kB / 420.3 MB, free: 5.617 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2656, allocations: 3.938 kB / 420.3 MB, free: 5.613 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003651/0.266, allocations: 99.86 kB / 420.4 MB, free: 5.516 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.00244/0.2684, allocations: 2.301 MB / 422.7 MB, free: 3.199 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001865/0.2703, allocations: 2.144 MB / 424.8 MB, free: 1.031 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2703, allocations: 4.062 kB / 424.8 MB, free: 1.027 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001716/0.2721, allocations: 2.186 MB / 427 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002594/0.2723, allocations: 20 kB / 427.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003484/0.2758, allocations: 3.336 MB / 430.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.2762, allocations: 0.7317 MB / 431.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.378e-05/0.2762, allocations: 0 / 431.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.715e-05/0.2763, allocations: 35.42 kB / 431.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of SimCode: time 6.52e-07/0.2763, allocations: 0 / 431.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02564/0.3019, allocations: 4.764 MB / 435.9 MB, free: 5.883 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.969/8.271, allocations: 5.875 kB / 435.9 MB, free: 5.883 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.1.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