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.001335/0.001335, allocations: 109.4 kB / 16.41 MB, free: 6.438 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.001373/0.001373, allocations: 189.6 kB / 17.34 MB, free: 5.742 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.334/1.334, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.05416/0.05416, allocations: 3.909 MB / 295.1 MB, free: 11.04 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 68.34 kB / 407.6 MB, free: 28.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07468/0.07585, allocations: 50.18 MB / 457.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002612/0.07851, allocations: 1.52 MB / 459.3 MB, free: 8.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001963/0.0805, allocations: 1.149 MB / 460.4 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.935e-05/0.08061, allocations: 3.938 kB / 460.4 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001439/0.08076, allocations: 39.59 kB / 460.5 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.106e-05/0.08088, allocations: 27.78 kB / 460.5 MB, free: 7.262 MB / 334.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.0007548/0.08164, allocations: 231.3 kB / 460.7 MB, free: 7.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002876/0.08194, allocations: 263.4 kB / 461 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.762e-05/0.082, allocations: 13.55 kB / 461 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001799/0.08218, allocations: 103.7 kB / 461.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.0823, allocations: 79.61 kB / 461.2 MB, free: 6.586 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.187e-05/0.08234, allocations: 12 kB / 461.2 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002877/0.08263, allocations: 167.8 kB / 461.4 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.817e-05/0.08269, allocations: 27.86 kB / 461.4 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.584e-05/0.08279, allocations: 99.52 kB / 461.5 MB, free: 6.285 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003821/0.08318, allocations: 279.2 kB / 461.8 MB, free: 6.012 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.08319, allocations: 0 / 461.8 MB, free: 6.012 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.0832, allocations: 0 / 461.8 MB, free: 6.012 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.08321, allocations: 0 / 461.8 MB, free: 6.012 MB / 334.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.002209/0.08543, allocations: 2.232 MB / 464 MB, free: 3.711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.08547, allocations: 8.031 kB / 464 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00065/0.08613, allocations: 113.7 kB / 464.1 MB, free: 3.594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003058/0.08644, allocations: 255.8 kB / 464.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.044e-05/0.08648, allocations: 4.375 kB / 464.4 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.948e-05/0.08651, allocations: 12.38 kB / 464.4 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004011/0.08692, allocations: 255.5 kB / 464.6 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.08694, allocations: 0 / 464.6 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.973e-05/0.08696, allocations: 4 kB / 464.6 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.08697, allocations: 8 kB / 464.6 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003599/0.08734, allocations: 219.9 kB / 464.8 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002514/0.0876, allocations: 254.3 kB / 465.1 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003761/0.08799, allocations: 325.2 kB / 465.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003175/0.08832, allocations: 301.7 kB / 465.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.646e-06/0.08833, allocations: 0 / 465.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005167/0.08886, allocations: 0.5207 MB / 466.2 MB, free: 1.289 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.262e-06/0.08887, allocations: 0 / 466.2 MB, free: 1.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001121/0.09, allocations: 0.766 MB / 467 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.049e-05/0.09009, allocations: 160.5 kB / 467.1 MB, free: 324 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001941/0.09029, allocations: 215 kB / 467.4 MB, free: 96 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.238e-05/0.09032, allocations: 33.64 kB / 467.4 MB, free: 56 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.313e-05/0.0904, allocations: 108.7 kB / 467.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.679e-05/0.09046, allocations: 51.3 kB / 467.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.552e-05/0.09055, allocations: 57.73 kB / 467.6 MB, free: 15.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.09067, allocations: 330.8 kB / 467.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002261/0.0909, allocations: 140.2 kB / 468.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002155/0.09112, allocations: 144.3 kB / 468.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005218/0.09166, allocations: 468.3 kB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.09167, allocations: 3.984 kB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006215/0.0923, allocations: 459.1 kB / 469.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.686e-05/0.09238, allocations: 91.38 kB / 469.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.0924, allocations: 0 / 469.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.09241, allocations: 4 kB / 469.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.09254, allocations: 19.98 kB / 469.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.09256, allocations: 3.984 kB / 469.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.484e-05/0.09266, allocations: 11.91 kB / 469.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-05/0.09273, allocations: 40.53 kB / 469.3 MB, free: 14.09 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.0002204/0.09295, allocations: 268.2 kB / 469.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.17e-05/0.09301, allocations: 27.72 kB / 469.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.159e-05/0.09305, allocations: 17.39 kB / 469.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.09306, allocations: 0 / 469.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.09307, allocations: 0 / 469.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.09307, allocations: 4 kB / 469.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002192/0.0933, allocations: 273.3 kB / 469.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.09331, allocations: 0 / 469.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.135e-05/0.09337, allocations: 11.98 kB / 469.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.09339, allocations: 4 kB / 469.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.004e-05/0.09342, allocations: 11.98 kB / 469.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.09343, allocations: 4 kB / 469.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.09344, allocations: 0 / 469.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008992/0.09434, allocations: 0.696 MB / 470.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001331/0.09449, allocations: 136.7 kB / 470.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.504e-05/0.09456, allocations: 35.86 kB / 470.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.09467, allocations: 12 kB / 470.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.736e-05/0.09475, allocations: 19.97 kB / 470.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.077e-05/0.09482, allocations: 43.92 kB / 470.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000119/0.09495, allocations: 143.2 kB / 471 MB, free: 12.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09495, allocations: 4 kB / 471 MB, free: 12.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003259/0.09529, allocations: 75.98 kB / 471 MB, free: 12.2 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.000498/0.09579, allocations: 267.4 kB / 471.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008751/0.09668, allocations: 0.7563 MB / 472.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.09669, allocations: 0 / 472.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006004/0.0973, allocations: 0.6393 MB / 472.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002536/0.09756, allocations: 28 kB / 472.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007712/0.09835, allocations: 0.5454 MB / 473.3 MB, free: 9.922 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002511/0.09861, allocations: 0.735 MB / 474 MB, free: 9.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.991e-05/0.09866, allocations: 15.42 kB / 474 MB, free: 9.145 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.09867, allocations: 4 kB / 474 MB, free: 9.141 MB / 350.1 MB Notification: Performance of Templates: time 0.005795/0.1045, allocations: 3.666 MB / 477.7 MB, free: 5.496 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)