Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009068/0.0009068, allocations: 175.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.233/1.233, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007997/0.0007996, allocations: 89.3 kB / 271.2 MB, free: 8.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003117/0.0003118, allocations: 12 kB / 327.6 MB, free: 15.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1966/0.1969, allocations: 47.57 MB / 375.2 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.0009463/0.1979, allocations: 0.9542 MB / 376.1 MB, free: 44.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006247/0.1985, allocations: 423.6 kB / 376.6 MB, free: 44.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.194e-05/0.1986, allocations: 0 / 376.6 MB, free: 44.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.502e-05/0.1986, allocations: 7.938 kB / 376.6 MB, free: 44.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003104/0.1989, allocations: 54.22 kB / 376.6 MB, free: 44.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.657e-05/0.199, allocations: 52.94 kB / 376.7 MB, free: 44.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.78e-05/0.1991, allocations: 32.44 kB / 376.7 MB, free: 44.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.84e-05/0.1991, allocations: 2.219 kB / 376.7 MB, free: 44.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.708e-05/0.1992, allocations: 25.16 kB / 376.7 MB, free: 44.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.181e-05/0.1992, allocations: 18.39 kB / 376.7 MB, free: 44.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.12e-05/0.1992, allocations: 2.344 kB / 376.7 MB, free: 44.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001679/0.1994, allocations: 112.9 kB / 376.9 MB, free: 44.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.414e-05/0.1994, allocations: 29.86 kB / 376.9 MB, free: 44.17 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.149e-05/0.1995, allocations: 80.28 kB / 377 MB, free: 44.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001369/0.1997, allocations: 125.1 kB / 377.1 MB, free: 44.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1997, allocations: 0 / 377.1 MB, free: 44.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1997, allocations: 0 / 377.1 MB, free: 44.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.1997, allocations: 0.9688 kB / 377.1 MB, free: 44.03 MB / 298.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.0003507/0.2, allocations: 0.5452 MB / 377.6 MB, free: 43.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.2001, allocations: 9.938 kB / 377.6 MB, free: 43.52 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.181e-05/0.2001, allocations: 51.3 kB / 377.7 MB, free: 43.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.452e-05/0.2002, allocations: 24.58 kB / 377.7 MB, free: 43.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.693e-05/0.2003, allocations: 184.4 kB / 377.9 MB, free: 43.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.2003, allocations: 7.75 kB / 377.9 MB, free: 43.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.27e-05/0.2004, allocations: 5.344 kB / 377.9 MB, free: 43.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002576/0.2006, allocations: 280.7 kB / 378.2 MB, free: 43.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.2006, allocations: 3.938 kB / 378.2 MB, free: 43.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.2006, allocations: 6.312 kB / 378.2 MB, free: 43.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.2007, allocations: 1.344 kB / 378.2 MB, free: 43.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001304/0.2008, allocations: 148.6 kB / 378.3 MB, free: 43.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002147/0.201, allocations: 383.7 kB / 378.7 MB, free: 42.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.2013, allocations: 0.4943 MB / 379.2 MB, free: 42.26 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002652/0.2016, allocations: 489.7 kB / 379.7 MB, free: 41.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.362e-06/0.2016, allocations: 0 / 379.7 MB, free: 41.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003421/0.2019, allocations: 499.6 kB / 380.2 MB, free: 41.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 9.62e-07/0.202, allocations: 0 / 380.2 MB, free: 41.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.0007175/0.2027, allocations: 0.7319 MB / 380.9 MB, free: 41.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.2027, allocations: 158.8 kB / 381.1 MB, free: 41.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.865e-05/0.2028, allocations: 103.5 kB / 381.2 MB, free: 41.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.646e-06/0.2028, allocations: 27.11 kB / 381.2 MB, free: 40.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.672e-05/0.2028, allocations: 86.39 kB / 381.3 MB, free: 40.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.807e-05/0.2029, allocations: 95.78 kB / 381.4 MB, free: 40.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.979e-06/0.2029, allocations: 1.281 kB / 381.4 MB, free: 40.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.647e-05/0.203, allocations: 328.6 kB / 381.7 MB, free: 40.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.51e-05/0.203, allocations: 86.14 kB / 381.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.663e-05/0.2031, allocations: 117.5 kB / 381.9 MB, free: 40.4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000269/0.2034, allocations: 428.1 kB / 382.3 MB, free: 40.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2034, allocations: 7.938 kB / 382.3 MB, free: 40.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003015/0.2037, allocations: 366.2 kB / 382.7 MB, free: 39.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.935e-05/0.2038, allocations: 106.1 kB / 382.8 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.2038, allocations: 5.172 kB / 382.8 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.2038, allocations: 1.438 kB / 382.8 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.349e-05/0.2039, allocations: 4.219 kB / 382.8 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.2039, allocations: 1 kB / 382.8 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.142e-05/0.204, allocations: 25.94 kB / 382.8 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.204, allocations: 12.94 kB / 382.8 MB, free: 39.8 MB / 298.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 ($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],$whenCondition1,rImpure,iImpure) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001996/0.2042, allocations: 301.8 kB / 383.1 MB, free: 39.56 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.876e-05/0.2042, allocations: 26.12 kB / 383.1 MB, free: 39.55 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.76e-05/0.2042, allocations: 6.531 kB / 383.1 MB, free: 39.55 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.2043, allocations: 5.031 kB / 383.2 MB, free: 39.54 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.2043, allocations: 1.094 kB / 383.2 MB, free: 39.54 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.2043, allocations: 0 / 383.2 MB, free: 39.54 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.2054, allocations: 1.444 MB / 384.6 MB, free: 38.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2054, allocations: 1.188 kB / 384.6 MB, free: 38.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.128e-05/0.2055, allocations: 4.375 kB / 384.6 MB, free: 38.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.2055, allocations: 1.375 kB / 384.6 MB, free: 38.74 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.899e-05/0.2055, allocations: 18.64 kB / 384.6 MB, free: 38.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.2055, allocations: 5.406 kB / 384.6 MB, free: 38.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2055, allocations: 5.094 kB / 384.6 MB, free: 38.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008005/0.2063, allocations: 1.303 MB / 385.9 MB, free: 37.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.092e-05/0.2064, allocations: 108.7 kB / 386 MB, free: 37.3 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.989e-05/0.2064, allocations: 67.94 kB / 386.1 MB, free: 37.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.609e-05/0.2065, allocations: 8 kB / 386.1 MB, free: 37.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.707e-05/0.2066, allocations: 8.469 kB / 386.1 MB, free: 37.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.225e-05/0.2066, allocations: 23.98 kB / 386.1 MB, free: 37.2 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.293e-05/0.2066, allocations: 95.19 kB / 386.2 MB, free: 37.1 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2066, allocations: 0 / 386.2 MB, free: 37.1 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003279/0.207, allocations: 88 kB / 386.3 MB, free: 37.02 MB / 298.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,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001547/0.2085, allocations: 2.321 MB / 388.6 MB, free: 34.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00111/0.2097, allocations: 2.132 MB / 390.8 MB, free: 32.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2097, allocations: 0 / 390.8 MB, free: 32.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009905/0.2107, allocations: 2.19 MB / 393 MB, free: 30.31 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/0.2109, allocations: 29.59 kB / 393 MB, free: 30.28 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.2122, allocations: 1.399 MB / 394.4 MB, free: 28.82 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001319/0.2124, allocations: 0.7321 MB / 395.1 MB, free: 28.06 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.524e-05/0.2124, allocations: 39.38 kB / 395.2 MB, free: 28.02 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2124, allocations: 0 / 395.2 MB, free: 28.02 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.144/3.357, allocations: 3.225 MB / 398.4 MB, free: 24.79 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","../files/Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,r1024,r128,r64 Variables in the result:globalSeed,iImpure,id,localSeed,r1024,r128,r64,rImpure,samplePeriod,state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[1],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[2],state1024[30],state1024[31],state1024[32],state1024[33],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state128[1],state128[2],state128[3],state128[4],state64[1],state64[2],time