Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo) Running command: translateModel(AdvancedNoise.Examples.VaryingDistribution,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution") translateModel(AdvancedNoise.Examples.VaryingDistribution,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02142/0.02142, allocations: 3.908 MB / 19.71 MB, free: 2.012 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 184.5 kB / 21.34 MB, free: 396 kB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.21/1.21, allocations: 222.9 MB / 245.8 MB, free: 6.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009903/0.0009899, allocations: 111.9 kB / 296.7 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009244/0.0009245, allocations: 55.91 kB / 357.7 MB, free: 9.938 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.1813, allocations: 50.18 MB / 407.8 MB, free: 28.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.002059/0.1834, allocations: 1.589 MB / 409.4 MB, free: 26.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.1847, allocations: 1.137 MB / 410.6 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.007e-05/0.1848, allocations: 0 / 410.6 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001036/0.1849, allocations: 11.88 kB / 410.6 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.521e-05/0.185, allocations: 15.91 kB / 410.6 MB, free: 25.73 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.typeClassSections: time 0.0004952/0.1855, allocations: 195.3 kB / 410.8 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001045/0.1856, allocations: 151.6 kB / 410.9 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.684e-05/0.1857, allocations: 9.406 kB / 410.9 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.242e-05/0.1857, allocations: 63.7 kB / 411 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.383e-05/0.1858, allocations: 51.81 kB / 411 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.065e-05/0.1858, allocations: 7.938 kB / 411.1 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002256/0.1861, allocations: 207.7 kB / 411.3 MB, free: 25.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.119e-05/0.1861, allocations: 23.88 kB / 411.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.242e-05/0.1862, allocations: 59.7 kB / 411.3 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002584/0.1864, allocations: 275.3 kB / 411.6 MB, free: 24.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1864, allocations: 0 / 411.6 MB, free: 24.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.92e-07/0.1864, allocations: 0 / 411.6 MB, free: 24.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.1864, allocations: 0 / 411.6 MB, free: 24.71 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.001074/0.1875, allocations: 1.319 MB / 412.9 MB, free: 23.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.02e-05/0.1876, allocations: 12.03 kB / 412.9 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002897/0.1879, allocations: 55.25 kB / 413 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000179/0.1881, allocations: 220 kB / 413.2 MB, free: 23.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.1881, allocations: 4.375 kB / 413.2 MB, free: 23.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.242e-05/0.1881, allocations: 8.375 kB / 413.2 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002782/0.1884, allocations: 161.9 kB / 413.4 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.1884, allocations: 0 / 413.4 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.1884, allocations: 4 kB / 413.4 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.1884, allocations: 0 / 413.4 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002572/0.1887, allocations: 147.8 kB / 413.5 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004094/0.1891, allocations: 360.6 kB / 413.9 MB, free: 22.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002961/0.1894, allocations: 206.5 kB / 414.1 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002025/0.1896, allocations: 180.9 kB / 414.3 MB, free: 21.9 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.032e-05/0.1897, allocations: 0 / 414.3 MB, free: 21.9 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002884/0.1899, allocations: 308.2 kB / 414.6 MB, free: 21.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.313e-06/0.19, allocations: 0 / 414.6 MB, free: 21.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007321/0.1907, allocations: 472.1 kB / 415 MB, free: 21.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.1907, allocations: 93.09 kB / 415.1 MB, free: 20.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.276e-05/0.1908, allocations: 159.9 kB / 415.3 MB, free: 20.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.288e-05/0.1909, allocations: 29.7 kB / 415.3 MB, free: 20.79 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.299e-05/0.1909, allocations: 100.5 kB / 415.4 MB, free: 20.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.484e-05/0.1909, allocations: 39.53 kB / 415.4 MB, free: 20.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.647e-05/0.191, allocations: 45.7 kB / 415.5 MB, free: 20.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.035e-05/0.191, allocations: 326.8 kB / 415.8 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.1912, allocations: 91.94 kB / 415.9 MB, free: 20.18 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/0.1914, allocations: 87.95 kB / 416 MB, free: 20.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003482/0.1917, allocations: 280.1 kB / 416.2 MB, free: 19.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1917, allocations: 0 / 416.2 MB, free: 19.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004123/0.1922, allocations: 294 kB / 416.5 MB, free: 19.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.64e-05/0.1922, allocations: 49.69 kB / 416.6 MB, free: 19.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1922, allocations: 112 / 416.6 MB, free: 19.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.1922, allocations: 3.938 kB / 416.6 MB, free: 19.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.1924, allocations: 23.97 kB / 416.6 MB, free: 19.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.1924, allocations: 7.938 kB / 416.6 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.669e-05/0.1924, allocations: 19.84 kB / 416.6 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-05/0.1925, allocations: 27.91 kB / 416.7 MB, free: 19.37 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (globalSeed.seed,discreteNoise.actualGlobalSeed,discreteNoise.localSeed,globalSeed.id_impure,discreteNoise.r,discreteNoise.bufferStartTime,discreteNoise.buffer[2],discreteNoise.buffer[1],discreteNoise.state[4],discreteNoise.state[3],discreteNoise.state[2],discreteNoise.state[1],$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.000104/0.1926, allocations: 188 kB / 416.8 MB, free: 19.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.537e-05/0.1927, allocations: 11.97 kB / 416.9 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.078e-05/0.1927, allocations: 16.84 kB / 416.9 MB, free: 19.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1927, allocations: 0 / 416.9 MB, free: 19.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.1927, allocations: 0 / 416.9 MB, free: 19.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.1927, allocations: 4 kB / 416.9 MB, free: 19.13 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001026/0.1928, allocations: 225.4 kB / 417.1 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1928, allocations: 0 / 417.1 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.768e-05/0.1929, allocations: 19.97 kB / 417.1 MB, free: 18.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.1929, allocations: 0 / 417.1 MB, free: 18.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.193, allocations: 11.98 kB / 417.1 MB, free: 18.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.193, allocations: 4 kB / 417.1 MB, free: 18.83 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.193, allocations: 0 / 417.1 MB, free: 18.83 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004821/0.1978, allocations: 4.318 MB / 421.5 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.431e-05/0.1978, allocations: 96.88 kB / 421.5 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.23e-05/0.1979, allocations: 12 kB / 421.6 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.262e-05/0.198, allocations: 16.05 kB / 421.6 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.721e-05/0.198, allocations: 11.98 kB / 421.6 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.492e-05/0.1981, allocations: 27.91 kB / 421.6 MB, free: 14.01 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.403e-05/0.1981, allocations: 113.7 kB / 421.7 MB, free: 13.9 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1981, allocations: 0 / 421.7 MB, free: 13.9 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000424/0.1986, allocations: 172.1 kB / 421.9 MB, free: 13.73 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (continuousMean.mu) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,discreteNoise.state[1],discreteNoise.state[2],discreteNoise.state[3],discreteNoise.state[4],discreteNoise.buffer[1],discreteNoise.buffer[2],discreteNoise.bufferStartTime,discreteNoise.r) * Number of discrete states: 10 (discreteNoise.buffer[2],discreteNoise.buffer[1],discreteNoise.r,discreteNoise.bufferStartTime,discreteNoise.state[4],discreteNoise.state[3],discreteNoise.state[2],discreteNoise.state[1],$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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.0005186/0.1991, allocations: 297.5 kB / 422.2 MB, free: 13.47 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005096/0.1996, allocations: 439.2 kB / 422.6 MB, free: 13.03 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1996, allocations: 0 / 422.6 MB, free: 13.03 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000303/0.1999, allocations: 359.3 kB / 423 MB, free: 12.67 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001875/0.2001, allocations: 16 kB / 423 MB, free: 12.65 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006712/0.2008, allocations: 0.6673 MB / 423.6 MB, free: 11.94 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.733e-05/0.2009, allocations: 0.7199 MB / 424.4 MB, free: 11.19 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.866e-05/0.201, allocations: 16.59 kB / 424.4 MB, free: 11.17 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.153e-05/0.201, allocations: 15.38 kB / 424.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.201, allocations: 0 / 424.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of Templates: time 0.005841/0.2069, allocations: 4.566 MB / 429 MB, free: 6.613 MB / 298.7 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.makefile (rm -f AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.sim & ./AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution -abortSlowSimulation -alarm=480 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe 2>&1)