Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.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.VaryingDistribution,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution") translateModel(AdvancedNoise.Examples.VaryingDistribution,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005768/0.005768, allocations: 102.2 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.001266/0.001266, allocations: 191.2 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 4.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1553/0.1553, allocations: 3.883 MB / 294.4 MB, free: 3.27 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 67.89 kB / 406.9 MB, free: 192 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3011, allocations: 50.18 MB / 457.1 MB, free: 20.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.002969/0.3041, allocations: 1.512 MB / 458.6 MB, free: 19.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001991/0.3061, allocations: 1.113 MB / 459.7 MB, free: 18.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.3062, allocations: 0 / 459.7 MB, free: 18.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001519/0.3064, allocations: 18.22 kB / 459.7 MB, free: 18.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.601e-05/0.3065, allocations: 15.81 kB / 459.7 MB, free: 18.89 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.001022/0.3076, allocations: 246.6 kB / 460 MB, free: 18.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002408/0.3078, allocations: 168 kB / 460.1 MB, free: 18.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.3079, allocations: 11.31 kB / 460.2 MB, free: 18.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.3081, allocations: 61.03 kB / 460.2 MB, free: 18.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.3082, allocations: 52 kB / 460.3 MB, free: 18.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.3082, allocations: 13 kB / 460.3 MB, free: 18.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004365/0.3087, allocations: 246.5 kB / 460.5 MB, free: 18.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.475e-05/0.3087, allocations: 25.3 kB / 460.5 MB, free: 18.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.619e-05/0.3088, allocations: 52.95 kB / 460.6 MB, free: 18.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005447/0.3094, allocations: 274.3 kB / 460.9 MB, free: 18.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3094, allocations: 0 / 460.9 MB, free: 18.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3094, allocations: 2.938 kB / 460.9 MB, free: 18.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.3094, allocations: 7.938 kB / 460.9 MB, free: 18.42 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.001597/0.311, allocations: 1.323 MB / 462.2 MB, free: 17.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.3111, allocations: 8.75 kB / 462.2 MB, free: 17.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004266/0.3115, allocations: 47.36 kB / 462.3 MB, free: 17.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002612/0.3118, allocations: 218.6 kB / 462.5 MB, free: 17.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.478e-05/0.3118, allocations: 7.344 kB / 462.5 MB, free: 17.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.519e-05/0.3119, allocations: 14.38 kB / 462.5 MB, free: 17.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003625/0.3122, allocations: 167.6 kB / 462.7 MB, free: 17.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.3122, allocations: 3.125 kB / 462.7 MB, free: 17.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/0.3123, allocations: 3.938 kB / 462.7 MB, free: 17.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.377e-06/0.3123, allocations: 3.062 kB / 462.7 MB, free: 17.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003077/0.3126, allocations: 138.2 kB / 462.8 MB, free: 17.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005998/0.3132, allocations: 362.7 kB / 463.2 MB, free: 17.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003653/0.3136, allocations: 204.4 kB / 463.4 MB, free: 16.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002749/0.3139, allocations: 180.7 kB / 463.5 MB, free: 16.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.3139, allocations: 4 kB / 463.5 MB, free: 16.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004459/0.3144, allocations: 299.8 kB / 463.8 MB, free: 16.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.996e-06/0.3144, allocations: 0 / 463.8 MB, free: 16.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001154/0.3155, allocations: 476 kB / 464.3 MB, free: 16.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.64e-05/0.3156, allocations: 88.3 kB / 464.4 MB, free: 16.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001969/0.3158, allocations: 161.3 kB / 464.5 MB, free: 16.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.3158, allocations: 26.73 kB / 464.6 MB, free: 16.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.28e-05/0.3159, allocations: 99.47 kB / 464.7 MB, free: 16.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.321e-05/0.316, allocations: 35.42 kB / 464.7 MB, free: 16.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.3161, allocations: 44.31 kB / 464.7 MB, free: 16.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.17e-05/0.3162, allocations: 330.8 kB / 465.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002427/0.3164, allocations: 100.5 kB / 465.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002291/0.3167, allocations: 88.83 kB / 465.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005074/0.3172, allocations: 271.7 kB / 465.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3172, allocations: 112 / 465.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000724/0.3179, allocations: 297.7 kB / 465.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.083e-05/0.318, allocations: 49.91 kB / 465.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.318, allocations: 0 / 465.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.318, allocations: 1.25 kB / 465.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.3182, allocations: 29.22 kB / 465.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.3182, allocations: 2.172 kB / 465.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/0.3183, allocations: 18.8 kB / 465.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.054e-05/0.3184, allocations: 19.61 kB / 465.9 MB, free: 15.43 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: 14 (globalSeed.seed,discreteNoise.actualGlobalSeed,discreteNoise.localSeed,globalSeed.id_impure,discreteNoise.r,discreteNoise.bufferStartTime,discreteNoise.buffer[2],discreteNoise.buffer[1],discreteNoise.state[4],discreteNoise.state[3],discreteNoise.state[2],discreteNoise.state[1],$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001938/0.3186, allocations: 193.3 kB / 466.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.469e-05/0.3187, allocations: 17.48 kB / 466.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.699e-05/0.3188, allocations: 12.84 kB / 466.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.3188, allocations: 1.875 kB / 466.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.3188, allocations: 0 / 466.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.3188, allocations: 0.9375 kB / 466.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002029/0.319, allocations: 224.2 kB / 466.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.319, allocations: 0 / 466.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.3191, allocations: 17.88 kB / 466.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.3191, allocations: 0 / 466.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.661e-05/0.3192, allocations: 8.625 kB / 466.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.3192, allocations: 3.938 kB / 466.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3192, allocations: 0 / 466.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.3203, allocations: 0.5853 MB / 467 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.603e-05/0.3203, allocations: 92.39 kB / 467.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.837e-05/0.3204, allocations: 13.53 kB / 467.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.792e-05/0.3205, allocations: 15.83 kB / 467.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.827e-05/0.3206, allocations: 21.98 kB / 467.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.067e-05/0.3206, allocations: 22.39 kB / 467.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.001e-05/0.3207, allocations: 115.3 kB / 467.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3207, allocations: 0 / 467.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004655/0.3212, allocations: 89.64 kB / 467.3 MB, free: 14.55 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (continuousMean.mu) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,discreteNoise.state[1],discreteNoise.state[2],discreteNoise.state[3],discreteNoise.state[4],discreteNoise.buffer[1],discreteNoise.buffer[2],discreteNoise.bufferStartTime,discreteNoise.r) * Number of discrete states: 10 (discreteNoise.buffer[2],discreteNoise.buffer[1],discreteNoise.r,discreteNoise.bufferStartTime,discreteNoise.state[4],discreteNoise.state[3],discreteNoise.state[2],discreteNoise.state[1],$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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.000614/0.3218, allocations: 249.5 kB / 467.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007561/0.3226, allocations: 438.5 kB / 468 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3226, allocations: 0 / 468 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004115/0.323, allocations: 359.1 kB / 468.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002397/0.3233, allocations: 24.38 kB / 468.4 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007466/0.324, allocations: 363.5 kB / 468.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001687/0.3242, allocations: 0.7073 MB / 469.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.767e-05/0.3243, allocations: 12.66 kB / 469.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.444e-05/0.3243, allocations: 17.97 kB / 469.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3243, allocations: 0 / 469.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of Templates: time 0.009575/0.3339, allocations: 3.224 MB / 472.7 MB, free: 12.75 MB / 350.1 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.makefile (rm -f AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.sim & ./AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution -abortSlowSimulation -alarm=480 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe 2>&1)