Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.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.TimeBasedNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise") translateModel(AdvancedNoise.Examples.TimeBasedNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.04198/0.04198, 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.001005/0.001005, allocations: 188.5 kB / 21.34 MB, free: 392 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.213/1.213, allocations: 222.9 MB / 245.8 MB, free: 6.316 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.0009419/0.0009419, allocations: 97.14 kB / 296.7 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000977/0.000977, allocations: 55.92 kB / 357.7 MB, free: 9.941 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.175/0.176, allocations: 50.18 MB / 407.8 MB, free: 28.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002334/0.1784, allocations: 1.604 MB / 409.4 MB, free: 26.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.1799, allocations: 1.199 MB / 410.6 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.677e-05/0.18, allocations: 0 / 410.6 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.1802, allocations: 23.8 kB / 410.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.311e-05/0.1802, allocations: 15.86 kB / 410.7 MB, free: 25.64 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.0005317/0.1808, allocations: 211.5 kB / 410.9 MB, free: 25.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001469/0.1809, allocations: 227.5 kB / 411.1 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.183e-05/0.181, allocations: 9.562 kB / 411.1 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000142/0.1811, allocations: 91.66 kB / 411.2 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.379e-05/0.1812, allocations: 75.56 kB / 411.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.605e-05/0.1812, allocations: 11.98 kB / 411.3 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002124/0.1815, allocations: 159.8 kB / 411.4 MB, free: 24.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.359e-05/0.1815, allocations: 23.86 kB / 411.5 MB, free: 24.85 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.767e-05/0.1816, allocations: 83.56 kB / 411.5 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002515/0.1818, allocations: 279.2 kB / 411.8 MB, free: 24.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.1818, allocations: 0 / 411.8 MB, free: 24.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.1819, allocations: 0 / 411.8 MB, free: 24.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.1819, allocations: 0 / 411.8 MB, free: 24.49 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001558/0.1834, allocations: 2.242 MB / 414.1 MB, free: 22.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.727e-05/0.1835, allocations: 8.031 kB / 414.1 MB, free: 22.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005415/0.184, allocations: 104.6 kB / 414.2 MB, free: 22.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.1842, allocations: 255.7 kB / 414.4 MB, free: 21.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.872e-05/0.1842, allocations: 8.375 kB / 414.4 MB, free: 21.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.04e-05/0.1843, allocations: 16.31 kB / 414.4 MB, free: 21.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002972/0.1846, allocations: 255.6 kB / 414.7 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.585e-06/0.1846, allocations: 0 / 414.7 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.1846, allocations: 4 kB / 414.7 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.1846, allocations: 4 kB / 414.7 MB, free: 21.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000287/0.1849, allocations: 223.8 kB / 414.9 MB, free: 21.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001751/0.1851, allocations: 254.2 kB / 415.2 MB, free: 20.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002688/0.1854, allocations: 329.3 kB / 415.5 MB, free: 20.63 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002339/0.1856, allocations: 301.7 kB / 415.8 MB, free: 20.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.775e-06/0.1856, allocations: 0 / 415.8 MB, free: 20.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003581/0.186, allocations: 0.5186 MB / 416.3 MB, free: 19.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.223e-06/0.186, allocations: 0 / 416.3 MB, free: 19.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008345/0.1868, allocations: 0.7622 MB / 417.1 MB, free: 18.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.1869, allocations: 164.4 kB / 417.2 MB, free: 18.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.187, allocations: 207.1 kB / 417.4 MB, free: 18.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.433e-05/0.1871, allocations: 33.7 kB / 417.5 MB, free: 18.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.376e-05/0.1871, allocations: 108.7 kB / 417.6 MB, free: 18.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.199e-05/0.1871, allocations: 51.34 kB / 417.6 MB, free: 18.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.635e-05/0.1872, allocations: 57.62 kB / 417.7 MB, free: 18.31 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.009e-05/0.1873, allocations: 330.9 kB / 418 MB, free: 17.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001751/0.1874, allocations: 140.2 kB / 418.1 MB, free: 17.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.1876, allocations: 136.4 kB / 418.3 MB, free: 17.71 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003747/0.188, allocations: 467 kB / 418.7 MB, free: 17.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.188, allocations: 0 / 418.7 MB, free: 17.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004552/0.1885, allocations: 460.6 kB / 419.2 MB, free: 16.76 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.907e-05/0.1885, allocations: 99.36 kB / 419.3 MB, free: 16.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.1885, allocations: 0 / 419.3 MB, free: 16.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.1885, allocations: 0 / 419.3 MB, free: 16.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.1887, allocations: 19.98 kB / 419.3 MB, free: 16.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.878e-06/0.1887, allocations: 4 kB / 419.3 MB, free: 16.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.385e-05/0.1888, allocations: 19.83 kB / 419.3 MB, free: 16.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.039e-05/0.1888, allocations: 31.95 kB / 419.3 MB, free: 16.58 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: 26 (globalSeed.seed,timeBasedNoise1.actualGlobalSeed,timeBasedNoise1.localSeed,timeBasedNoise.actualGlobalSeed,timeBasedNoise.localSeed,globalSeed.id_impure,timeBasedNoise.r,timeBasedNoise.bufferStartTime,timeBasedNoise.buffer[2],timeBasedNoise.buffer[1],timeBasedNoise.state[4],timeBasedNoise.state[3],timeBasedNoise.state[2],timeBasedNoise.state[1],$whenCondition4,$whenCondition3,timeBasedNoise1.r,timeBasedNoise1.bufferStartTime,timeBasedNoise1.buffer[2],timeBasedNoise1.buffer[1],timeBasedNoise1.state[4],timeBasedNoise1.state[3],timeBasedNoise1.state[2],timeBasedNoise1.state[1],$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 8 * 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.0001418/0.1889, allocations: 271.6 kB / 419.6 MB, free: 16.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.037e-05/0.189, allocations: 31.81 kB / 419.6 MB, free: 16.26 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.069e-05/0.189, allocations: 17.39 kB / 419.7 MB, free: 16.24 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.189, allocations: 192 / 419.7 MB, free: 16.24 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.1891, allocations: 0 / 419.7 MB, free: 16.24 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.1891, allocations: 7.922 kB / 419.7 MB, free: 16.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001399/0.1892, allocations: 277.3 kB / 419.9 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1892, allocations: 0 / 419.9 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.228e-05/0.1893, allocations: 8 kB / 419.9 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.1893, allocations: 3.984 kB / 420 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.364e-05/0.1893, allocations: 12 kB / 420 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.1893, allocations: 4 kB / 420 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1893, allocations: 3.938 kB / 420 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.1904, allocations: 1.534 MB / 421.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.748e-05/0.1905, allocations: 136.8 kB / 421.6 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.018e-05/0.1906, allocations: 20 kB / 421.7 MB, free: 14.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.241e-05/0.1907, allocations: 15.98 kB / 421.7 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.235e-05/0.1907, allocations: 23.97 kB / 421.7 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.262e-05/0.1908, allocations: 36.59 kB / 421.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.912e-05/0.1909, allocations: 143.2 kB / 421.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1909, allocations: 0 / 421.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003633/0.1912, allocations: 76 kB / 421.9 MB, free: 13.81 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: 20 ($whenCondition3,$whenCondition4,timeBasedNoise.state[1],timeBasedNoise.state[2],timeBasedNoise.state[3],timeBasedNoise.state[4],timeBasedNoise.buffer[1],timeBasedNoise.buffer[2],timeBasedNoise.bufferStartTime,timeBasedNoise.r,$whenCondition1,$whenCondition2,timeBasedNoise1.state[1],timeBasedNoise1.state[2],timeBasedNoise1.state[3],timeBasedNoise1.state[4],timeBasedNoise1.buffer[1],timeBasedNoise1.buffer[2],timeBasedNoise1.bufferStartTime,timeBasedNoise1.r) * Number of discrete states: 20 (timeBasedNoise1.buffer[2],timeBasedNoise1.buffer[1],timeBasedNoise1.r,timeBasedNoise1.bufferStartTime,timeBasedNoise1.state[4],timeBasedNoise1.state[3],timeBasedNoise1.state[2],timeBasedNoise1.state[1],$whenCondition2,$whenCondition1,timeBasedNoise.buffer[2],timeBasedNoise.buffer[1],timeBasedNoise.r,timeBasedNoise.bufferStartTime,timeBasedNoise.state[4],timeBasedNoise.state[3],timeBasedNoise.state[2],timeBasedNoise.state[1],$whenCondition4,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * 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.0003744/0.1916, allocations: 278.8 kB / 422.2 MB, free: 13.58 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006313/0.1923, allocations: 0.7408 MB / 423 MB, free: 12.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1923, allocations: 0 / 423 MB, free: 12.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004175/0.1927, allocations: 0.6587 MB / 423.6 MB, free: 12.13 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002177/0.1929, allocations: 28.25 kB / 423.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006899/0.1936, allocations: 0.7353 MB / 424.4 MB, free: 11.33 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001175/0.1938, allocations: 0.7355 MB / 425.1 MB, free: 10.57 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.18e-05/0.1938, allocations: 16.55 kB / 425.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.946e-05/0.1938, allocations: 15.42 kB / 425.1 MB, free: 10.54 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1938, allocations: 0 / 425.1 MB, free: 10.54 MB / 298.7 MB Notification: Performance of Templates: time 0.005782/0.1996, allocations: 3.869 MB / 429 MB, free: 6.695 MB / 298.7 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.makefile (rm -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.sim & ./AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise -abortSlowSimulation -alarm=480 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe 2>&1)