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.001246/0.001246, allocations: 118.7 kB / 18.5 MB, free: 4.602 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.001319/0.001319, allocations: 210.5 kB / 21.46 MB, free: 1.648 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.388/1.388, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.001767/0.001767, allocations: 63.89 kB / 373.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09723/0.09899, allocations: 53.3 MB / 426.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002311/0.1013, allocations: 1.245 MB / 427.9 MB, free: 3.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009779/0.1023, allocations: 462.4 kB / 428.4 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.037e-05/0.1023, allocations: 7.938 kB / 428.4 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.171e-05/0.1024, allocations: 0 / 428.4 MB, free: 3.281 MB / 350.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.000446/0.1028, allocations: 75.72 kB / 428.4 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001373/0.1029, allocations: 63.75 kB / 428.5 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.54e-05/0.103, allocations: 47.89 kB / 428.5 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.95e-05/0.1031, allocations: 8 kB / 428.5 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.018e-05/0.1031, allocations: 19.92 kB / 428.6 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.468e-05/0.1031, allocations: 23.91 kB / 428.6 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.349e-05/0.1032, allocations: 4 kB / 428.6 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002385/0.1034, allocations: 123.8 kB / 428.7 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.183e-05/0.1035, allocations: 39.84 kB / 428.8 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.392e-05/0.1035, allocations: 43.69 kB / 428.8 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002581/0.1038, allocations: 179.2 kB / 429 MB, free: 2.664 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1038, allocations: 0 / 429 MB, free: 2.664 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1038, allocations: 0 / 429 MB, free: 2.664 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.129e-06/0.1038, allocations: 4 kB / 429 MB, free: 2.66 MB / 350.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.0006032/0.1044, allocations: 0.5643 MB / 429.5 MB, free: 2.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.1044, allocations: 8.031 kB / 429.5 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.786e-05/0.1045, allocations: 62.61 kB / 429.6 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.1046, allocations: 20.84 kB / 429.6 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.1048, allocations: 184.1 kB / 429.8 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.1048, allocations: 4.375 kB / 429.8 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.638e-05/0.1048, allocations: 8.375 kB / 429.8 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003323/0.1051, allocations: 286.9 kB / 430.1 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.1051, allocations: 3.938 kB / 430.1 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.1051, allocations: 4 kB / 430.1 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.1051, allocations: 3.938 kB / 430.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001585/0.1053, allocations: 148.2 kB / 430.3 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003638/0.1057, allocations: 377.7 kB / 430.6 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002161/0.1059, allocations: 197.4 kB / 430.8 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.1061, allocations: 166.1 kB / 431 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.121e-06/0.1061, allocations: 0 / 431 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005014/0.1066, allocations: 494.7 kB / 431.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 4.409e-06/0.1066, allocations: 3.984 kB / 431.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.0009105/0.1075, allocations: 0.7542 MB / 432.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.1076, allocations: 164.4 kB / 432.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.633e-05/0.1077, allocations: 101.8 kB / 432.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.1077, allocations: 29.7 kB / 432.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.516e-05/0.1077, allocations: 81.14 kB / 432.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.94e-05/0.1078, allocations: 107.1 kB / 432.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.759e-05/0.1079, allocations: 41.7 kB / 432.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.108, allocations: 334.8 kB / 433.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.94e-05/0.1081, allocations: 84.41 kB / 433.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.1082, allocations: 112.3 kB / 433.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003821/0.1086, allocations: 435.8 kB / 433.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1086, allocations: 3.938 kB / 433.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000397/0.109, allocations: 368.2 kB / 434 MB, free: 13.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.984e-05/0.1091, allocations: 115.3 kB / 434.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.1091, allocations: 0 / 434.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.1091, allocations: 0 / 434.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.923e-05/0.1092, allocations: 8.031 kB / 434.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.1092, allocations: 0 / 434.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.659e-05/0.1093, allocations: 27.78 kB / 434.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.1093, allocations: 11.98 kB / 434.2 MB, free: 13.03 MB / 366.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.0002771/0.1096, allocations: 307.6 kB / 434.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.891e-05/0.1096, allocations: 23.91 kB / 434.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.091e-05/0.1096, allocations: 9.562 kB / 434.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.1096, allocations: 4 kB / 434.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1096, allocations: 0 / 434.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.1096, allocations: 0 / 434.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001453/0.1111, allocations: 1.46 MB / 436 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.1111, allocations: 7.938 kB / 436 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.845e-05/0.1111, allocations: 4 kB / 436 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.1111, allocations: 3.984 kB / 436 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.611e-05/0.1112, allocations: 20.06 kB / 436 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.1112, allocations: 4 kB / 436 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1112, allocations: 0 / 436 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001347/0.1125, allocations: 1.339 MB / 437.4 MB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.356e-05/0.1126, allocations: 96.95 kB / 437.5 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.1127, allocations: 67.94 kB / 437.5 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.893e-05/0.1127, allocations: 8 kB / 437.5 MB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.417e-05/0.1128, allocations: 19.92 kB / 437.6 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-05/0.1128, allocations: 19.98 kB / 437.6 MB, free: 9.516 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.492e-05/0.1129, allocations: 83.69 kB / 437.7 MB, free: 9.434 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1129, allocations: 0 / 437.7 MB, free: 9.434 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003622/0.1132, allocations: 91.88 kB / 437.8 MB, free: 9.344 MB / 366.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.002528/0.1158, allocations: 2.344 MB / 440.1 MB, free: 6.984 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.1169, allocations: 1.078 MB / 441.2 MB, free: 5.883 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1169, allocations: 0 / 441.2 MB, free: 5.883 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008311/0.1177, allocations: 0.8968 MB / 442.1 MB, free: 4.961 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002566/0.1179, allocations: 34.53 kB / 442.1 MB, free: 4.934 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003578/0.1215, allocations: 3.324 MB / 445.4 MB, free: 1.496 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003691/0.1219, allocations: 0.7278 MB / 446.2 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.31e-05/0.1219, allocations: 4 kB / 446.2 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.533e-05/0.122, allocations: 39.42 kB / 446.2 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.122, allocations: 0 / 446.2 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1921/0.314, allocations: 4.758 MB / 451 MB, free: 25.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.808/8.122, allocations: 6.828 kB / 451 MB, free: 25.19 MB / 366.1 MB " [Timeout remaining time 652] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 10.36755123641342]