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/ModelicaServices 4.0.0+maint.om/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/AdvancedNoise 1.1.0-master/package.mo", uses=false) Using package AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 110.9 kB / 16.37 MB, free: 6.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001501/0.001502, allocations: 189.9 kB / 17.3 MB, free: 5.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.07979/0.07979, allocations: 3.898 MB / 295.1 MB, free: 11.05 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 67.88 kB / 356.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1814/0.1826, allocations: 50.17 MB / 407.1 MB, free: 31.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002053/0.1847, allocations: 1.515 MB / 408.6 MB, free: 30.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.1861, allocations: 1.15 MB / 409.8 MB, free: 29.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.655e-05/0.1862, allocations: 3.938 kB / 409.8 MB, free: 29.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001247/0.1863, allocations: 35.67 kB / 409.8 MB, free: 29.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.719e-05/0.1864, allocations: 20.3 kB / 409.8 MB, free: 29.22 MB / 302.1 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.0005969/0.187, allocations: 233.5 kB / 410 MB, free: 28.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002063/0.1872, allocations: 259.5 kB / 410.3 MB, free: 28.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.533e-05/0.1873, allocations: 9.562 kB / 410.3 MB, free: 28.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.1874, allocations: 111.6 kB / 410.4 MB, free: 28.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.987e-05/0.1875, allocations: 75.27 kB / 410.5 MB, free: 28.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.65e-05/0.1875, allocations: 12 kB / 410.5 MB, free: 28.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002163/0.1878, allocations: 175.7 kB / 410.7 MB, free: 28.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.023e-05/0.1878, allocations: 23.88 kB / 410.7 MB, free: 28.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.471e-05/0.1879, allocations: 91.5 kB / 410.8 MB, free: 28.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002723/0.1882, allocations: 287.2 kB / 411.1 MB, free: 27.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1882, allocations: 3.938 kB / 411.1 MB, free: 27.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1882, allocations: 0 / 411.1 MB, free: 27.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.151e-05/0.1882, allocations: 0 / 411.1 MB, free: 27.96 MB / 302.1 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.001662/0.1899, allocations: 2.234 MB / 413.3 MB, free: 25.67 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.013e-05/0.1899, allocations: 12.03 kB / 413.3 MB, free: 25.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005659/0.1905, allocations: 108.6 kB / 413.4 MB, free: 25.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.1907, allocations: 247.2 kB / 413.7 MB, free: 25.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.1908, allocations: 8.375 kB / 413.7 MB, free: 25.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.283e-05/0.1908, allocations: 8.375 kB / 413.7 MB, free: 25.26 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003139/0.1911, allocations: 263.5 kB / 413.9 MB, free: 24.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.1911, allocations: 0 / 413.9 MB, free: 24.99 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.1912, allocations: 7.469 kB / 413.9 MB, free: 24.99 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.1912, allocations: 0 / 413.9 MB, free: 24.99 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000299/0.1915, allocations: 219.9 kB / 414.2 MB, free: 24.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001754/0.1916, allocations: 270.1 kB / 414.4 MB, free: 24.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002772/0.1919, allocations: 325.1 kB / 414.7 MB, free: 24.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002468/0.1922, allocations: 301.6 kB / 415 MB, free: 23.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.257e-05/0.1922, allocations: 4.375 kB / 415 MB, free: 23.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003744/0.1926, allocations: 0.5185 MB / 415.6 MB, free: 23.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.172e-06/0.1926, allocations: 4 kB / 415.6 MB, free: 23.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0008768/0.1935, allocations: 0.7621 MB / 416.3 MB, free: 22.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/0.1936, allocations: 152.5 kB / 416.5 MB, free: 22.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.1937, allocations: 211.1 kB / 416.7 MB, free: 22.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/0.1937, allocations: 33.7 kB / 416.7 MB, free: 22.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.893e-05/0.1938, allocations: 108.7 kB / 416.8 MB, free: 21.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.327e-05/0.1938, allocations: 51.41 kB / 416.9 MB, free: 21.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.16e-05/0.1939, allocations: 57.69 kB / 416.9 MB, free: 21.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.726e-05/0.1939, allocations: 330.8 kB / 417.2 MB, free: 21.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001847/0.1941, allocations: 136.2 kB / 417.4 MB, free: 21.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.1943, allocations: 140.3 kB / 417.5 MB, free: 21.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003986/0.1947, allocations: 468.6 kB / 418 MB, free: 20.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1947, allocations: 4 kB / 418 MB, free: 20.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004841/0.1952, allocations: 459 kB / 418.4 MB, free: 20.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.348e-05/0.1953, allocations: 87.38 kB / 418.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1953, allocations: 7.984 kB / 418.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.1953, allocations: 192 / 418.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.1954, allocations: 23.92 kB / 418.5 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.1955, allocations: 3.938 kB / 418.5 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.947e-05/0.1956, allocations: 19.84 kB / 418.6 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.422e-05/0.1956, allocations: 44.53 kB / 418.6 MB, free: 20.05 MB / 302.1 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.0001565/0.1958, allocations: 264.2 kB / 418.9 MB, free: 19.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.105e-05/0.1958, allocations: 27.81 kB / 418.9 MB, free: 19.74 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.653e-05/0.1958, allocations: 17.39 kB / 418.9 MB, free: 19.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.1959, allocations: 0 / 418.9 MB, free: 19.72 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1959, allocations: 0 / 418.9 MB, free: 19.72 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1959, allocations: 0 / 418.9 MB, free: 19.72 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001429/0.196, allocations: 277.3 kB / 419.2 MB, free: 19.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.196, allocations: 4 kB / 419.2 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.515e-05/0.1961, allocations: 7.984 kB / 419.2 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1961, allocations: 4 kB / 419.2 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.587e-05/0.1961, allocations: 11.98 kB / 419.2 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1961, allocations: 0 / 419.2 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1961, allocations: 11.94 kB / 419.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007007/0.1968, allocations: 0.697 MB / 419.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.197, allocations: 128.9 kB / 420 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.514e-05/0.197, allocations: 27.92 kB / 420.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.95e-05/0.1971, allocations: 15.98 kB / 420.1 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.91e-05/0.1972, allocations: 15.98 kB / 420.1 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.794e-05/0.1973, allocations: 43.88 kB / 420.1 MB, free: 18.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.475e-05/0.1973, allocations: 143.2 kB / 420.3 MB, free: 18.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1973, allocations: 0 / 420.3 MB, free: 18.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002881/0.1976, allocations: 83.98 kB / 420.4 MB, free: 18.16 MB / 302.1 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.0003996/0.198, allocations: 272.2 kB / 420.6 MB, free: 17.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006768/0.1987, allocations: 0.7525 MB / 421.4 MB, free: 17.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1987, allocations: 0 / 421.4 MB, free: 17.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004393/0.1992, allocations: 0.6432 MB / 422 MB, free: 16.49 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.1994, allocations: 43.98 kB / 422.1 MB, free: 16.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005821/0.2, allocations: 0.5045 MB / 422.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001117/0.2001, allocations: 0.7312 MB / 423.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.031e-05/0.2002, allocations: 16.55 kB / 423.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.203e-05/0.2002, allocations: 23.42 kB / 423.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2002, allocations: 0 / 423.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of Templates: time 0.9903/1.191, allocations: 3.951 MB / 427.3 MB, free: 11.2 MB / 302.1 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 -s gbode -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe 2>&1)