Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008851/0.0008851, allocations: 87.62 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.005423/0.005423, allocations: 164.6 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8853/0.8853, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 298.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.912e-05/2.086e-05, allocations: 6.281 kB / 298.4 MB, free: 3.504 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001653/0.001674, allocations: 1.229 MB / 299.7 MB, free: 2.262 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006299/0.002304, allocations: 446.9 kB / 300.1 MB, free: 1.824 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.415e-05/0.002328, allocations: 0 / 300.1 MB, free: 1.824 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.771e-05/0.002356, allocations: 4 kB / 300.1 MB, free: 1.82 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003935/0.002749, allocations: 83.64 kB / 300.2 MB, free: 1.738 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001111/0.002861, allocations: 59.77 kB / 300.3 MB, free: 1.68 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.456e-05/0.002945, allocations: 43.83 kB / 300.3 MB, free: 1.637 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.064e-05/0.002986, allocations: 3.984 kB / 300.3 MB, free: 1.633 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.719e-05/0.003033, allocations: 23.98 kB / 300.3 MB, free: 1.609 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.232e-05/0.003065, allocations: 19.91 kB / 300.3 MB, free: 1.59 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.26e-05/0.003078, allocations: 4 kB / 300.4 MB, free: 1.586 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002082/0.003286, allocations: 151.6 kB / 300.5 MB, free: 1.438 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.371e-05/0.00333, allocations: 35.92 kB / 300.5 MB, free: 1.402 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.011e-05/0.00337, allocations: 35.86 kB / 300.6 MB, free: 1.367 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003835/0.003753, allocations: 191.4 kB / 300.8 MB, free: 1.18 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.003757, allocations: 0 / 300.8 MB, free: 1.18 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.003759, allocations: 0 / 300.8 MB, free: 1.18 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.758e-06/0.003763, allocations: 0 / 300.8 MB, free: 1.18 MB / 282.7 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.000444/0.004207, allocations: 484.7 kB / 301.2 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.004245, allocations: 11.98 kB / 301.2 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.746e-05/0.004313, allocations: 74.53 kB / 301.3 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.47e-05/0.004407, allocations: 16.84 kB / 301.3 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.951e-05/0.004507, allocations: 121.6 kB / 301.5 MB, free: 416 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.004522, allocations: 8.375 kB / 301.5 MB, free: 408 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.004534, allocations: 4.375 kB / 301.5 MB, free: 404 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1162/0.1208, allocations: 402.7 kB / 301.9 MB, free: 14.07 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.1208, allocations: 0.8125 kB / 301.9 MB, free: 14.07 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.952e-05/0.1208, allocations: 5.656 kB / 301.9 MB, free: 14.07 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.1208, allocations: 3.406 kB / 301.9 MB, free: 14.07 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000221/0.121, allocations: 262.2 kB / 302.1 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002472/0.1213, allocations: 353.1 kB / 302.5 MB, free: 13.69 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001941/0.1215, allocations: 307.1 kB / 302.8 MB, free: 13.58 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.1216, allocations: 283.3 kB / 303 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.006e-06/0.1216, allocations: 1.062 kB / 303 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003914/0.122, allocations: 0.5793 MB / 303.6 MB, free: 13.24 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 2.154e-06/0.122, allocations: 0 / 303.6 MB, free: 13.24 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.0007487/0.1228, allocations: 0.9927 MB / 304.6 MB, free: 13.02 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.678e-05/0.1228, allocations: 161.2 kB / 304.8 MB, free: 12.86 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.824e-05/0.1229, allocations: 105 kB / 304.9 MB, free: 12.76 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.592e-06/0.1229, allocations: 27.14 kB / 304.9 MB, free: 12.73 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.561e-05/0.1229, allocations: 86.69 kB / 305 MB, free: 12.65 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.566e-05/0.1229, allocations: 97.25 kB / 305.1 MB, free: 12.6 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.244e-05/0.123, allocations: 46.17 kB / 305.1 MB, free: 12.58 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.651e-05/0.123, allocations: 334.5 kB / 305.5 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.1231, allocations: 206 kB / 305.7 MB, free: 12.2 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.1233, allocations: 231.6 kB / 305.9 MB, free: 12.09 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002709/0.1235, allocations: 481.7 kB / 306.4 MB, free: 11.83 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.1235, allocations: 3.812 kB / 306.4 MB, free: 11.83 MB / 282.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003119/0.1238, allocations: 0.5097 MB / 306.9 MB, free: 11.55 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.711e-05/0.1239, allocations: 108.4 kB / 307 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1239, allocations: 0.6094 kB / 307 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.1239, allocations: 1.219 kB / 307 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.045e-05/0.124, allocations: 5.578 kB / 307 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.124, allocations: 1.984 kB / 307 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.312e-05/0.124, allocations: 30.27 kB / 307 MB, free: 11.47 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.247e-05/0.1241, allocations: 9.156 kB / 307 MB, free: 11.47 MB / 282.7 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],r1024,r128,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.0002056/0.1243, allocations: 284.5 kB / 307.3 MB, free: 11.27 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.707e-05/0.1243, allocations: 25.75 kB / 307.3 MB, free: 11.27 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.835e-05/0.1243, allocations: 11.95 kB / 307.3 MB, free: 11.26 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.1243, allocations: 3.578 kB / 307.3 MB, free: 11.26 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1243, allocations: 0 / 307.3 MB, free: 11.26 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.1243, allocations: 2.188 kB / 307.3 MB, free: 11.26 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006603/0.125, allocations: 1.029 MB / 308.4 MB, free: 10.72 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.125, allocations: 0 / 308.4 MB, free: 10.72 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.824e-05/0.125, allocations: 6.984 kB / 308.4 MB, free: 10.72 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.125, allocations: 2.047 kB / 308.4 MB, free: 10.72 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.1251, allocations: 17.73 kB / 308.4 MB, free: 10.71 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.1251, allocations: 4.078 kB / 308.4 MB, free: 10.71 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1251, allocations: 10.44 kB / 308.4 MB, free: 10.71 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006781/0.1257, allocations: 0.9679 MB / 309.4 MB, free: 10.23 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.531e-05/0.1258, allocations: 22.33 kB / 309.4 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.407e-05/0.1258, allocations: 66.64 kB / 309.5 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.061e-05/0.1259, allocations: 12.69 kB / 309.5 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.469e-05/0.1259, allocations: 13.16 kB / 309.5 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.1259, allocations: 18.41 kB / 309.5 MB, free: 10.2 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.773e-05/0.1259, allocations: 84.91 kB / 309.6 MB, free: 10.12 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1259, allocations: 0 / 309.6 MB, free: 10.12 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002694/0.1262, allocations: 94.39 kB / 309.7 MB, free: 10.12 MB / 282.7 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,r64,r128,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: 43 (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.0014/0.1276, allocations: 2.134 MB / 311.8 MB, free: 8.902 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005642/0.1282, allocations: 0.873 MB / 312.7 MB, free: 8.488 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1282, allocations: 5.5 kB / 312.7 MB, free: 8.484 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003313/0.1285, allocations: 0.5335 MB / 313.2 MB, free: 8.211 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001924/0.1287, allocations: 25.28 kB / 313.3 MB, free: 8.207 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002366/0.1311, allocations: 3.553 MB / 316.8 MB, free: 6.039 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.757e-05/0.1312, allocations: 113.1 kB / 316.9 MB, free: 5.961 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.927e-05/0.1312, allocations: 1.969 kB / 316.9 MB, free: 5.961 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.707e-05/0.1312, allocations: 38.52 kB / 317 MB, free: 5.93 MB / 282.7 MB Notification: Performance of SimCode: time 9.72e-07/0.1312, allocations: 0 / 317 MB, free: 5.93 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01953/0.1507, allocations: 5.583 MB / 322.5 MB, free: 3.93 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.598/6.748, allocations: 10.11 kB / 322.5 MB, free: 3.922 MB / 282.7 MB " [Timeout remaining time 653] (rm -f Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,r1024,r128,r64 Variables in the result:globalSeed,iImpure,id,localSeed,r1024,r128,r64,rImpure,samplePeriod,time [Calling sys.exit(0), Time elapsed: 8.36581142898649]