Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers") translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001474/0.001474, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 226.5 MB / 244.7 MB, free: 6.434 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009454/0.0009454, allocations: 100.2 kB / 296.8 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002007/0.0002007, allocations: 4 kB / 356.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1965/0.1968, allocations: 51.29 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.0009658/0.1978, allocations: 0.9624 MB / 409 MB, free: 26.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000631/0.1984, allocations: 421.8 kB / 409.4 MB, free: 26.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.294e-05/0.1985, allocations: 0 / 409.4 MB, free: 26.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.546e-05/0.1985, allocations: 3.938 kB / 409.4 MB, free: 26.3 MB / 298.7 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.0003458/0.1988, allocations: 59.86 kB / 409.5 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.684e-05/0.199, allocations: 54.67 kB / 409.5 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.939e-05/0.199, allocations: 39.83 kB / 409.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.761e-05/0.1991, allocations: 4 kB / 409.6 MB, free: 26.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.458e-05/0.1991, allocations: 19.92 kB / 409.6 MB, free: 26.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.235e-05/0.1991, allocations: 19.91 kB / 409.6 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.125e-05/0.1991, allocations: 0 / 409.6 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000162/0.1993, allocations: 111.8 kB / 409.7 MB, free: 26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.065e-05/0.1993, allocations: 27.92 kB / 409.7 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.704e-05/0.1994, allocations: 78.17 kB / 409.8 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001294/0.1995, allocations: 111.8 kB / 409.9 MB, free: 25.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1996, allocations: 1.219 kB / 409.9 MB, free: 25.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1996, allocations: 0 / 409.9 MB, free: 25.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.1996, allocations: 0 / 409.9 MB, free: 25.79 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.0003695/0.2, allocations: 0.55 MB / 410.5 MB, free: 25.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/0.2, allocations: 8.781 kB / 410.5 MB, free: 25.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.2001, allocations: 36.66 kB / 410.5 MB, free: 25.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.944e-05/0.2002, allocations: 174.8 kB / 410.7 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.2002, allocations: 4.375 kB / 410.7 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.228e-05/0.2002, allocations: 4.375 kB / 410.7 MB, free: 24.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002061/0.2005, allocations: 273 kB / 411 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.172e-06/0.2005, allocations: 4.188 kB / 411 MB, free: 24.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.2005, allocations: 7.938 kB / 411 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.576e-06/0.2005, allocations: 1.594 kB / 411 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001217/0.2006, allocations: 143.9 kB / 411.1 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001186/0.2007, allocations: 203.8 kB / 411.3 MB, free: 24.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002288/0.201, allocations: 497.1 kB / 411.8 MB, free: 23.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001985/0.2012, allocations: 473.6 kB / 412.3 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.156e-06/0.2012, allocations: 0 / 412.3 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002864/0.2015, allocations: 480.8 kB / 412.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 1.002e-06/0.2015, allocations: 4 kB / 412.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=46): time 0.0005793/0.2021, allocations: 0.7114 MB / 413.5 MB, free: 22.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.2021, allocations: 160.5 kB / 413.6 MB, free: 21.83 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.409e-05/0.2022, allocations: 101.8 kB / 413.7 MB, free: 21.72 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.017e-05/0.2022, allocations: 29.7 kB / 413.7 MB, free: 21.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.784e-05/0.2022, allocations: 81.14 kB / 413.8 MB, free: 21.6 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.086e-05/0.2023, allocations: 90.75 kB / 413.9 MB, free: 21.51 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-06/0.2023, allocations: 0 / 413.9 MB, free: 21.51 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.935e-05/0.2024, allocations: 326.9 kB / 414.2 MB, free: 21.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.909e-05/0.2024, allocations: 84.34 kB / 414.3 MB, free: 21.1 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.483e-05/0.2025, allocations: 110.2 kB / 414.4 MB, free: 20.99 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002064/0.2027, allocations: 421.3 kB / 414.8 MB, free: 20.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2027, allocations: 0 / 414.8 MB, free: 20.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002319/0.203, allocations: 336.8 kB / 415.2 MB, free: 20.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.833e-05/0.203, allocations: 115.3 kB / 415.3 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.203, allocations: 0 / 415.3 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.203, allocations: 4.078 kB / 415.3 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.513e-06/0.2031, allocations: 8 kB / 415.3 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.2031, allocations: 11.92 kB / 415.3 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.515e-05/0.2031, allocations: 19.75 kB / 415.3 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.2031, allocations: 8 kB / 415.3 MB, free: 20.02 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,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],$whenCondition1,rImpure,iImpure) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * 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.0001697/0.2033, allocations: 295.7 kB / 415.6 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.069e-05/0.2033, allocations: 27.75 kB / 415.6 MB, free: 19.69 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.012e-05/0.2034, allocations: 9.547 kB / 415.6 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-06/0.2034, allocations: 0 / 415.6 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.2034, allocations: 4 kB / 415.6 MB, free: 19.67 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.2034, allocations: 0 / 415.6 MB, free: 19.67 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001058/0.2035, allocations: 229.3 kB / 415.9 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2035, allocations: 7.938 kB / 415.9 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.2035, allocations: 4 kB / 415.9 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.2035, allocations: 3.938 kB / 415.9 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.2035, allocations: 27.91 kB / 415.9 MB, free: 19.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.2035, allocations: 0 / 415.9 MB, free: 19.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2036, allocations: 0 / 415.9 MB, free: 19.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000767/0.2043, allocations: 1.22 MB / 417.1 MB, free: 18.1 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.528e-05/0.2044, allocations: 100.8 kB / 417.2 MB, free: 17.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.719e-05/0.2044, allocations: 75.91 kB / 417.3 MB, free: 17.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.912e-05/0.2045, allocations: 8 kB / 417.3 MB, free: 17.9 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.695e-05/0.2045, allocations: 8.328 kB / 417.3 MB, free: 17.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-05/0.2046, allocations: 19.98 kB / 417.3 MB, free: 17.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.509e-05/0.2046, allocations: 87.25 kB / 417.4 MB, free: 17.79 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.2046, allocations: 0 / 417.4 MB, free: 17.79 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002779/0.2049, allocations: 88 kB / 417.5 MB, free: 17.7 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 ($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],$whenCondition1,rImpure,iImpure) * Number of discrete states: 46 (iImpure,rImpure,$whenCondition1,r1024,r128,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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * 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.0004079/0.2053, allocations: 293.3 kB / 417.8 MB, free: 17.44 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.2064, allocations: 2.127 MB / 419.9 MB, free: 15.29 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2064, allocations: 3.938 kB / 419.9 MB, free: 15.29 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009236/0.2073, allocations: 2.178 MB / 422.1 MB, free: 13.08 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001802/0.2075, allocations: 22.41 kB / 422.1 MB, free: 13.06 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000441/0.2079, allocations: 437.2 kB / 422.6 MB, free: 12.6 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001189/0.2081, allocations: 0.7286 MB / 423.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.828e-06/0.2081, allocations: 7.438 kB / 423.3 MB, free: 11.83 MB / 298.7 MB Notification: Performance of SimCode: time 3.7e-07/0.2081, allocations: 0 / 423.3 MB, free: 11.83 MB / 298.7 MB Notification: Performance of Templates: time 0.003629/0.2117, allocations: 2.841 MB / 426.1 MB, free: 8.992 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (rm -f Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","../files/Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches