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.00609/0.00609, allocations: 104.2 kB / 15.73 MB, free: 6.047 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.001143/0.001143, allocations: 190.5 kB / 16.67 MB, free: 5.973 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.252/1.252, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1326/0.1326, allocations: 3.883 MB / 294.4 MB, free: 3.195 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 59.91 kB / 406.9 MB, free: 220 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.232, allocations: 50.18 MB / 457.1 MB, free: 20.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.001892/0.2339, allocations: 1.525 MB / 458.6 MB, free: 19.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.2353, allocations: 1.144 MB / 459.7 MB, free: 18.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.009e-05/0.2354, allocations: 0 / 459.7 MB, free: 18.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.2355, allocations: 37.19 kB / 459.8 MB, free: 18.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.119e-05/0.2356, allocations: 30.08 kB / 459.8 MB, free: 18.87 MB / 350.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.0005604/0.2361, allocations: 232.7 kB / 460 MB, free: 18.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002058/0.2364, allocations: 263.2 kB / 460.3 MB, free: 18.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.956e-05/0.2364, allocations: 7.594 kB / 460.3 MB, free: 18.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.2365, allocations: 102.5 kB / 460.4 MB, free: 18.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.776e-05/0.2366, allocations: 80.95 kB / 460.5 MB, free: 18.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.849e-05/0.2367, allocations: 12.44 kB / 460.5 MB, free: 18.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002199/0.2369, allocations: 174.5 kB / 460.7 MB, free: 18.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.793e-05/0.2369, allocations: 36.33 kB / 460.7 MB, free: 18.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.618e-05/0.237, allocations: 82.62 kB / 460.8 MB, free: 18.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003336/0.2373, allocations: 284.7 kB / 461.1 MB, free: 18.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2374, allocations: 3.938 kB / 461.1 MB, free: 18.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2374, allocations: 0 / 461.1 MB, free: 18.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.844e-06/0.2374, allocations: 0.7031 kB / 461.1 MB, free: 18.31 MB / 350.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.002305/0.2397, allocations: 2.229 MB / 463.3 MB, free: 17.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.2397, allocations: 9.375 kB / 463.3 MB, free: 17.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007271/0.2405, allocations: 105.6 kB / 463.4 MB, free: 17.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00026/0.2407, allocations: 256.1 kB / 463.7 MB, free: 16.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.961e-05/0.2408, allocations: 5.938 kB / 463.7 MB, free: 16.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.334e-05/0.2408, allocations: 9.781 kB / 463.7 MB, free: 16.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004144/0.2412, allocations: 259.3 kB / 463.9 MB, free: 16.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.2413, allocations: 7.938 kB / 463.9 MB, free: 16.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.002e-05/0.2413, allocations: 4.719 kB / 463.9 MB, free: 16.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.2413, allocations: 0.7031 kB / 463.9 MB, free: 16.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003591/0.2416, allocations: 220.7 kB / 464.2 MB, free: 16.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002298/0.2419, allocations: 254 kB / 464.4 MB, free: 16.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003647/0.2423, allocations: 324.4 kB / 464.7 MB, free: 16.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003062/0.2426, allocations: 302.2 kB / 465 MB, free: 16.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.576e-06/0.2426, allocations: 2.062 kB / 465 MB, free: 16.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004981/0.2431, allocations: 0.5172 MB / 465.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.223e-06/0.2431, allocations: 4 kB / 465.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001071/0.2442, allocations: 0.7657 MB / 466.3 MB, free: 15.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.853e-05/0.2443, allocations: 160.2 kB / 466.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001692/0.2444, allocations: 218.3 kB / 466.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.2445, allocations: 29.33 kB / 466.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.399e-05/0.2445, allocations: 114.3 kB / 466.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.658e-05/0.2445, allocations: 45.92 kB / 466.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.796e-05/0.2446, allocations: 55.67 kB / 466.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.363e-05/0.2447, allocations: 333.1 kB / 467.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/0.2449, allocations: 135.7 kB / 467.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002007/0.2451, allocations: 143.3 kB / 467.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000463/0.2456, allocations: 461.1 kB / 468 MB, free: 14.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2456, allocations: 4 kB / 468 MB, free: 14.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005569/0.2462, allocations: 460.3 kB / 468.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.983e-05/0.2462, allocations: 94.36 kB / 468.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2463, allocations: 1.312 kB / 468.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.2463, allocations: 1.156 kB / 468.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.2464, allocations: 21.89 kB / 468.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.2464, allocations: 4 kB / 468.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.565e-05/0.2465, allocations: 21.95 kB / 468.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.562e-05/0.2466, allocations: 39.62 kB / 468.6 MB, free: 14.23 MB / 350.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.0001946/0.2468, allocations: 264.7 kB / 468.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.83e-05/0.2468, allocations: 28.25 kB / 468.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.225e-05/0.2469, allocations: 16.66 kB / 468.9 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.2469, allocations: 1.562 kB / 468.9 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.2469, allocations: 0 / 468.9 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.2469, allocations: 3.047 kB / 468.9 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001964/0.2471, allocations: 268.8 kB / 469.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2471, allocations: 13.69 kB / 469.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.732e-05/0.2472, allocations: 9.562 kB / 469.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.2472, allocations: 5.219 kB / 469.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.937e-05/0.2472, allocations: 20.33 kB / 469.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/0.2472, allocations: 1.344 kB / 469.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2472, allocations: 0 / 469.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008452/0.2481, allocations: 0.689 MB / 469.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.2482, allocations: 132.7 kB / 470 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.137e-05/0.2483, allocations: 27.8 kB / 470.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.2484, allocations: 13.77 kB / 470.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.143e-05/0.2484, allocations: 22 kB / 470.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.081e-05/0.2485, allocations: 38.08 kB / 470.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.942e-05/0.2486, allocations: 146.5 kB / 470.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2486, allocations: 0 / 470.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003272/0.249, allocations: 82.58 kB / 470.4 MB, free: 13.22 MB / 350.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.0004296/0.2494, allocations: 269.5 kB / 470.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008138/0.2502, allocations: 0.753 MB / 471.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2502, allocations: 1.062 kB / 471.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005387/0.2508, allocations: 0.6539 MB / 472 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002396/0.251, allocations: 29.73 kB / 472.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006701/0.2517, allocations: 0.508 MB / 472.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001517/0.2519, allocations: 0.732 MB / 473.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.251e-05/0.2519, allocations: 18.02 kB / 473.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.408e-05/0.252, allocations: 16.66 kB / 473.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.252, allocations: 0 / 473.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of Templates: time 0.007501/0.2595, allocations: 3.957 MB / 477.3 MB, free: 10.89 MB / 350.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 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe 2>&1)