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.008303/0.008303, allocations: 104.8 kB / 15.73 MB, free: 6.039 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.001618/0.001618, allocations: 193 kB / 16.67 MB, free: 5.969 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.489/1.489, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1673/0.1673, allocations: 3.881 MB / 294.4 MB, free: 3.199 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 63.89 kB / 406.9 MB, free: 192 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3259, allocations: 50.18 MB / 457.1 MB, free: 20.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002587/0.3285, allocations: 1.519 MB / 458.6 MB, free: 19.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001686/0.3303, allocations: 1.145 MB / 459.7 MB, free: 18.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.615e-05/0.3303, allocations: 6.906 kB / 459.8 MB, free: 18.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.3305, allocations: 41.22 kB / 459.8 MB, free: 18.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.355e-05/0.3306, allocations: 23.12 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.0007186/0.3313, allocations: 230.7 kB / 460 MB, free: 18.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000266/0.3316, allocations: 263.2 kB / 460.3 MB, free: 18.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.992e-05/0.3317, allocations: 17.92 kB / 460.3 MB, free: 18.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001583/0.3318, allocations: 96.2 kB / 460.4 MB, free: 18.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001039/0.332, allocations: 88.2 kB / 460.5 MB, free: 18.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.224e-05/0.332, allocations: 12.31 kB / 460.5 MB, free: 18.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002744/0.3323, allocations: 177.3 kB / 460.7 MB, free: 18.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.754e-05/0.3323, allocations: 28.86 kB / 460.7 MB, free: 18.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.197e-05/0.3324, allocations: 78.06 kB / 460.8 MB, free: 18.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003514/0.3328, allocations: 288.3 kB / 461.1 MB, free: 18.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3328, allocations: 0 / 461.1 MB, free: 18.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3328, allocations: 0 / 461.1 MB, free: 18.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.3328, allocations: 0 / 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.002081/0.3349, allocations: 2.228 MB / 463.3 MB, free: 17.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.335, allocations: 8.938 kB / 463.3 MB, free: 17.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006863/0.3357, allocations: 109.8 kB / 463.4 MB, free: 17.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003216/0.336, allocations: 252.1 kB / 463.7 MB, free: 16.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/0.336, allocations: 5.188 kB / 463.7 MB, free: 16.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.364e-05/0.3361, allocations: 10.17 kB / 463.7 MB, free: 16.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000436/0.3365, allocations: 271.3 kB / 463.9 MB, free: 16.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.3365, allocations: 0 / 463.9 MB, free: 16.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.156e-05/0.3366, allocations: 4.531 kB / 463.9 MB, free: 16.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.3366, allocations: 1.281 kB / 463.9 MB, free: 16.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004064/0.337, allocations: 225.5 kB / 464.2 MB, free: 16.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002773/0.3373, allocations: 258.3 kB / 464.4 MB, free: 16.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004202/0.3377, allocations: 328 kB / 464.7 MB, free: 16.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003404/0.338, allocations: 297.8 kB / 465 MB, free: 16.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/0.3381, allocations: 1.281 kB / 465 MB, free: 16.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005219/0.3386, allocations: 0.5173 MB / 465.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.663e-06/0.3386, allocations: 3.938 kB / 465.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.00121/0.3398, allocations: 0.7646 MB / 466.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.068e-05/0.3399, allocations: 158.3 kB / 466.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000201/0.3401, allocations: 219 kB / 466.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.3401, allocations: 32.7 kB / 466.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.018e-05/0.3402, allocations: 110.4 kB / 466.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.631e-05/0.3402, allocations: 50.41 kB / 466.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.036e-05/0.3403, allocations: 53.81 kB / 466.9 MB, free: 15.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.042e-05/0.3404, allocations: 335 kB / 467.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002353/0.3407, allocations: 135.6 kB / 467.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000212/0.3409, allocations: 139.8 kB / 467.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005319/0.3414, allocations: 464.2 kB / 468 MB, free: 14.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3414, allocations: 4 kB / 468 MB, free: 14.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006534/0.3421, allocations: 457.8 kB / 468.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.767e-05/0.3422, allocations: 93.2 kB / 468.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.964e-06/0.3422, allocations: 0.75 kB / 468.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.3422, allocations: 0 / 468.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.3424, allocations: 19.89 kB / 468.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.3424, allocations: 0 / 468.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.3425, allocations: 25.52 kB / 468.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.857e-05/0.3426, allocations: 36.52 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.0002209/0.3428, allocations: 260.3 kB / 468.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.231e-05/0.3429, allocations: 28.22 kB / 468.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.737e-05/0.3429, allocations: 16.25 kB / 468.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.3429, allocations: 5.312 kB / 468.9 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.3429, allocations: 1.562 kB / 468.9 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.3429, allocations: 0.6094 kB / 468.9 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002524/0.3432, allocations: 277.8 kB / 469.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3432, allocations: 5.375 kB / 469.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.12e-05/0.3433, allocations: 10.25 kB / 469.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.3433, allocations: 0 / 469.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.54e-05/0.3433, allocations: 20.33 kB / 469.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3433, allocations: 1.375 kB / 469.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3433, allocations: 1.375 kB / 469.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009756/0.3443, allocations: 0.6967 MB / 469.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001542/0.3445, allocations: 128.9 kB / 470 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.207e-05/0.3446, allocations: 31.39 kB / 470.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.3447, allocations: 13.05 kB / 470.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.3448, allocations: 26.47 kB / 470.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.513e-05/0.3449, allocations: 41.86 kB / 470.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001295/0.345, allocations: 143.8 kB / 470.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.345, allocations: 0 / 470.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003892/0.3454, allocations: 82.34 kB / 470.4 MB, free: 13.21 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.0006419/0.3461, allocations: 255.7 kB / 470.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009987/0.3471, allocations: 0.757 MB / 471.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3471, allocations: 0 / 471.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006707/0.3478, allocations: 0.6497 MB / 472 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002788/0.3481, allocations: 30.53 kB / 472 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009782/0.349, allocations: 0.5139 MB / 472.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001966/0.3493, allocations: 0.7361 MB / 473.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.309e-05/0.3493, allocations: 18.66 kB / 473.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.322e-05/0.3494, allocations: 14.45 kB / 473.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3494, allocations: 0 / 473.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of Templates: time 0.01379/0.3632, allocations: 3.958 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)