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.00116/0.00116, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001149/0.001149, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 57.53 kB / 307 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1351, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002412/0.1376, allocations: 1.245 MB / 358.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009289/0.1385, allocations: 460.1 kB / 359.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.418e-05/0.1386, allocations: 3.938 kB / 359.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.621e-05/0.1386, allocations: 0 / 359.3 MB, free: 12.27 MB / 302.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.0004491/0.1391, allocations: 75.72 kB / 359.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001351/0.1392, allocations: 75.75 kB / 359.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.817e-05/0.1393, allocations: 47.83 kB / 359.5 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.718e-05/0.1394, allocations: 4 kB / 359.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.765e-05/0.1394, allocations: 11.98 kB / 359.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.764e-05/0.1395, allocations: 27.84 kB / 359.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.357e-05/0.1395, allocations: 4 kB / 359.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002261/0.1397, allocations: 119.8 kB / 359.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.312e-05/0.1398, allocations: 23.92 kB / 359.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.815e-05/0.1398, allocations: 55.66 kB / 359.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002303/0.1401, allocations: 175.4 kB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1401, allocations: 0 / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1401, allocations: 4 kB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.379e-06/0.1401, allocations: 0 / 359.9 MB, free: 11.66 MB / 302.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.000622/0.1407, allocations: 0.5532 MB / 360.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.1408, allocations: 15.97 kB / 360.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.366e-05/0.1408, allocations: 62.56 kB / 360.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.141, allocations: 20.75 kB / 360.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001516/0.1411, allocations: 180.2 kB / 360.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.57e-05/0.1412, allocations: 4.375 kB / 360.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.537e-05/0.1412, allocations: 8.359 kB / 360.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003136/0.1415, allocations: 282.9 kB / 361 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.1415, allocations: 3.938 kB / 361 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.1415, allocations: 4 kB / 361 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.1415, allocations: 0 / 361 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001529/0.1417, allocations: 152.2 kB / 361.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003331/0.142, allocations: 377.6 kB / 361.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003871/0.1424, allocations: 0.5014 MB / 362 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003435/0.1428, allocations: 482.1 kB / 362.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.095e-05/0.1428, allocations: 0 / 362.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00046/0.1433, allocations: 494.8 kB / 363 MB, free: 8.316 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.092e-06/0.1433, allocations: 0 / 363 MB, free: 8.316 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.0008796/0.1442, allocations: 0.7308 MB / 363.7 MB, free: 7.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002104/0.1444, allocations: 160.5 kB / 363.9 MB, free: 7.383 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.284e-05/0.1445, allocations: 101.8 kB / 364 MB, free: 7.273 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.1445, allocations: 29.7 kB / 364 MB, free: 7.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002098/0.1447, allocations: 85.14 kB / 364.1 MB, free: 7.152 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.703e-05/0.1448, allocations: 106.5 kB / 364.2 MB, free: 7.047 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.564e-05/0.1449, allocations: 49.73 kB / 364.2 MB, free: 6.992 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002533/0.1451, allocations: 322.8 kB / 364.5 MB, free: 6.668 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.665e-05/0.1452, allocations: 88.41 kB / 364.6 MB, free: 6.582 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001555/0.1454, allocations: 116.3 kB / 364.7 MB, free: 6.461 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004575/0.1458, allocations: 435.8 kB / 365.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001443/0.146, allocations: 7.938 kB / 365.2 MB, free: 5.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004512/0.1464, allocations: 372.1 kB / 365.5 MB, free: 5.613 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.777e-05/0.1466, allocations: 111.4 kB / 365.6 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.1466, allocations: 0 / 365.6 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.1466, allocations: 3.984 kB / 365.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.568e-05/0.1467, allocations: 7.938 kB / 365.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.1467, allocations: 0 / 365.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.383e-05/0.1467, allocations: 23.75 kB / 365.7 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.1468, allocations: 8 kB / 365.7 MB, free: 5.449 MB / 302.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.0002781/0.147, allocations: 312.7 kB / 366 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.081e-05/0.1471, allocations: 23.81 kB / 366 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.979e-05/0.1471, allocations: 5.562 kB / 366 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.1471, allocations: 4 kB / 366 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1471, allocations: 0 / 366 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1471, allocations: 4 kB / 366 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001296/0.1485, allocations: 1.44 MB / 367.5 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/0.1485, allocations: 3.984 kB / 367.5 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.018e-05/0.1485, allocations: 4 kB / 367.5 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1485, allocations: 0 / 367.5 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.739e-05/0.1485, allocations: 16 kB / 367.5 MB, free: 3.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-06/0.1485, allocations: 3.984 kB / 367.5 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1485, allocations: 4 kB / 367.5 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001524/0.1501, allocations: 1.315 MB / 368.8 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.354e-05/0.1501, allocations: 96.84 kB / 368.9 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/0.1502, allocations: 63.95 kB / 369 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.295e-05/0.1503, allocations: 8 kB / 369 MB, free: 2.023 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.347e-05/0.1504, allocations: 11.98 kB / 369 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.809e-05/0.1504, allocations: 23.97 kB / 369 MB, free: 1.988 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.629e-05/0.1505, allocations: 91.16 kB / 369.1 MB, free: 1.898 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1505, allocations: 4 kB / 369.1 MB, free: 1.895 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003787/0.1509, allocations: 95.98 kB / 369.2 MB, free: 1.801 MB / 302.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.168/0.3189, allocations: 2.308 MB / 371.5 MB, free: 20.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001734/0.3206, allocations: 2.147 MB / 373.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.3207, allocations: 0.75 kB / 373.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001387/0.322, allocations: 2.189 MB / 375.8 MB, free: 18.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.3223, allocations: 19.86 kB / 375.9 MB, free: 18.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002993/0.3253, allocations: 3.311 MB / 379.2 MB, free: 16.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001565/0.3255, allocations: 0.728 MB / 379.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.636e-05/0.3255, allocations: 4.516 kB / 379.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.048e-05/0.3256, allocations: 41.22 kB / 379.9 MB, free: 16.02 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3256, allocations: 0 / 379.9 MB, free: 16.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05839/0.384, allocations: 4.715 MB / 384.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.393/7.777, allocations: 13.47 kB / 384.7 MB, free: 15.35 MB / 302.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 & /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 --timeout=50 --tolerance=1e-06 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.mat","/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