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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001781/0.001781, allocations: 107.2 kB / 20.44 MB, free: 1.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001419/0.001419, allocations: 215.5 kB / 23.73 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 230.5 MB / 257.4 MB, free: 7.762 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 59.91 kB / 377.7 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2468, allocations: 53.4 MB / 431.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002625/0.2494, allocations: 1.235 MB / 432.4 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.2505, allocations: 461.5 kB / 432.8 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.237e-05/0.2505, allocations: 0 / 432.8 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.563e-05/0.2506, allocations: 4 kB / 432.8 MB, free: 4.77 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.0005221/0.2511, allocations: 79.66 kB / 432.9 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001588/0.2512, allocations: 67.75 kB / 433 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000121/0.2514, allocations: 43.91 kB / 433 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.338e-05/0.2514, allocations: 3.984 kB / 433 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.083e-05/0.2515, allocations: 23.92 kB / 433 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.974e-05/0.2515, allocations: 19.91 kB / 433.1 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.471e-05/0.2515, allocations: 0 / 433.1 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003629/0.2519, allocations: 155.7 kB / 433.2 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.912e-05/0.252, allocations: 31.86 kB / 433.2 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.073e-05/0.252, allocations: 43.73 kB / 433.3 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003438/0.2524, allocations: 175.7 kB / 433.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.2524, allocations: 0 / 433.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.2524, allocations: 0 / 433.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.2524, allocations: 0 / 433.5 MB, free: 4.141 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.0008105/0.2532, allocations: 488.7 kB / 433.9 MB, free: 3.617 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.416e-05/0.2533, allocations: 11.98 kB / 433.9 MB, free: 3.605 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/0.2534, allocations: 62.61 kB / 434 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001727/0.2536, allocations: 24.83 kB / 434 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001438/0.2537, allocations: 118.4 kB / 434.1 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.2537, allocations: 8.375 kB / 434.2 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.119e-05/0.2537, allocations: 12.38 kB / 434.2 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000507/0.2543, allocations: 394.3 kB / 434.6 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.2543, allocations: 3.938 kB / 434.6 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/0.2543, allocations: 4 kB / 434.6 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.2543, allocations: 0 / 434.6 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003068/0.2546, allocations: 271.6 kB / 434.8 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004317/0.255, allocations: 348.7 kB / 435.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003723/0.2554, allocations: 316.8 kB / 435.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000307/0.2557, allocations: 281.4 kB / 435.8 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.372e-05/0.2557, allocations: 0 / 435.8 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007379/0.2565, allocations: 0.588 MB / 436.3 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.062e-06/0.2565, allocations: 0 / 436.3 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.001336/0.2578, allocations: 1.001 MB / 437.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.2579, allocations: 156.5 kB / 437.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.323e-05/0.258, allocations: 109.8 kB / 437.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.851e-05/0.258, allocations: 29.7 kB / 437.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.411e-05/0.2581, allocations: 81.14 kB / 437.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.526e-05/0.2581, allocations: 95.23 kB / 437.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.054e-05/0.2582, allocations: 45.69 kB / 437.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.2584, allocations: 330.8 kB / 438.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.2586, allocations: 203.8 kB / 438.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.2588, allocations: 243.6 kB / 438.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004583/0.2592, allocations: 484.8 kB / 439.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.2593, allocations: 3.938 kB / 439.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005341/0.2598, allocations: 0.496 MB / 439.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.2599, allocations: 111.3 kB / 439.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2599, allocations: 0 / 439.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.2599, allocations: 0 / 439.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.809e-05/0.26, allocations: 7.938 kB / 439.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.26, allocations: 4 kB / 439.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.331e-05/0.2601, allocations: 23.78 kB / 439.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.313e-05/0.2601, allocations: 20.03 kB / 439.7 MB, free: 13.38 MB / 350.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: 49 (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,r1024,$outputAlias_r128,r128,$outputAlias_r64,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.0003279/0.2604, allocations: 276.3 kB / 440 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.706e-05/0.2605, allocations: 31.86 kB / 440 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.037e-05/0.2605, allocations: 13.66 kB / 440.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.2605, allocations: 0 / 440.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.2605, allocations: 0 / 440.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.2605, allocations: 0 / 440.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/0.2619, allocations: 1.062 MB / 441.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.2619, allocations: 0 / 441.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.225e-05/0.2619, allocations: 8.047 kB / 441.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/0.2619, allocations: 4 kB / 441.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.194e-05/0.2619, allocations: 16 kB / 441.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.2619, allocations: 0 / 441.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.2619, allocations: 4 kB / 441.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.2631, allocations: 0.9947 MB / 442.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.978e-05/0.2631, allocations: 31.78 kB / 442.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.2632, allocations: 63.94 kB / 442.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.171e-05/0.2633, allocations: 12 kB / 442.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.486e-05/0.2633, allocations: 11.98 kB / 442.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-05/0.2634, allocations: 19.98 kB / 442.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.905e-05/0.2634, allocations: 83.69 kB / 442.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2634, allocations: 0 / 442.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003777/0.2638, allocations: 95.86 kB / 442.5 MB, free: 10.53 MB / 350.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: 49 ($whenCondition1,rImpure,iImpure,$whenCondition2,r64,$outputAlias_r64,r128,$outputAlias_r128,r1024,$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.00286/0.2666, allocations: 2.146 MB / 444.6 MB, free: 8.348 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000969/0.2676, allocations: 0.8813 MB / 445.5 MB, free: 7.418 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2676, allocations: 0 / 445.5 MB, free: 7.418 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005717/0.2682, allocations: 0.537 MB / 446 MB, free: 6.844 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002518/0.2684, allocations: 24 kB / 446 MB, free: 6.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00387/0.2723, allocations: 3.554 MB / 449.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001272/0.2724, allocations: 114.8 kB / 449.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.466e-05/0.2725, allocations: 0 / 449.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.983e-05/0.2725, allocations: 31.42 kB / 449.7 MB, free: 2.934 MB / 350.1 MB Notification: Performance of SimCode: time 5.52e-07/0.2725, allocations: 0 / 449.7 MB, free: 2.934 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03318/0.3057, allocations: 5.429 MB / 455.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.13, allocations: 4.062 kB / 455.2 MB, free: 13.6 MB / 366.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.530333426315337]