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/AdvancedNoise 1.1.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/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/AdvancedNoise 1.1.0-master/package.mo): time 0.02186/0.02186, allocations: 3.908 MB / 19.16 MB, free: 2.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008458/0.000846, allocations: 180.5 kB / 20.8 MB, free: 1.008 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 222.9 MB / 245.2 MB, free: 5.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008161/0.0008166, allocations: 87.78 kB / 296.7 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003096/0.0003096, allocations: 8 kB / 358.2 MB, free: 9.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2305/0.2308, allocations: 50.76 MB / 408.9 MB, free: 28.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.002569/0.2335, allocations: 1.579 MB / 410.5 MB, free: 26.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.2351, allocations: 1.137 MB / 411.7 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.358e-05/0.2351, allocations: 8 kB / 411.7 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001256/0.2353, allocations: 15.86 kB / 411.7 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.632e-05/0.2354, allocations: 7.938 kB / 411.7 MB, free: 25.68 MB / 298.7 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.0005637/0.2359, allocations: 203.5 kB / 411.9 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001099/0.2361, allocations: 143.7 kB / 412 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.952e-05/0.2361, allocations: 5.406 kB / 412 MB, free: 25.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.499e-05/0.2362, allocations: 63.75 kB / 412.1 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.634e-05/0.2363, allocations: 55.75 kB / 412.2 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.278e-05/0.2363, allocations: 8 kB / 412.2 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002481/0.2366, allocations: 203.7 kB / 412.4 MB, free: 25.01 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.792e-05/0.2366, allocations: 19.86 kB / 412.4 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.272e-05/0.2367, allocations: 63.66 kB / 412.4 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003113/0.237, allocations: 267.3 kB / 412.7 MB, free: 24.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2371, allocations: 4 kB / 412.7 MB, free: 24.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2371, allocations: 4 kB / 412.7 MB, free: 24.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.2371, allocations: 0 / 412.7 MB, free: 24.66 MB / 298.7 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.001186/0.2383, allocations: 1.323 MB / 414 MB, free: 23.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.2383, allocations: 8.031 kB / 414 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003209/0.2386, allocations: 52.69 kB / 414.1 MB, free: 23.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001771/0.2388, allocations: 208.1 kB / 414.3 MB, free: 22.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.2388, allocations: 4.375 kB / 414.3 MB, free: 22.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.868e-05/0.2389, allocations: 12.38 kB / 414.3 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002979/0.2392, allocations: 161.9 kB / 414.5 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.2392, allocations: 0 / 414.5 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.2392, allocations: 8 kB / 414.5 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-06/0.2392, allocations: 3.984 kB / 414.5 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000268/0.2395, allocations: 143.8 kB / 414.6 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004642/0.24, allocations: 352.7 kB / 415 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003065/0.2403, allocations: 218.4 kB / 415.2 MB, free: 22.03 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002137/0.2405, allocations: 180.8 kB / 415.4 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.2406, allocations: 0 / 415.4 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003149/0.2409, allocations: 308.2 kB / 415.7 MB, free: 21.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.453e-06/0.2409, allocations: 0 / 415.7 MB, free: 21.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007662/0.2417, allocations: 472.2 kB / 416.1 MB, free: 21.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.2417, allocations: 97.09 kB / 416.2 MB, free: 20.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.2418, allocations: 159.9 kB / 416.4 MB, free: 20.77 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/0.2418, allocations: 33.7 kB / 416.4 MB, free: 20.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.861e-05/0.2419, allocations: 96.45 kB / 416.5 MB, free: 20.63 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.504e-05/0.2419, allocations: 31.56 kB / 416.5 MB, free: 20.6 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.629e-05/0.242, allocations: 41.69 kB / 416.6 MB, free: 20.55 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.091e-05/0.2421, allocations: 330.8 kB / 416.9 MB, free: 20.22 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.2422, allocations: 95.84 kB / 417 MB, free: 20.12 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001597/0.2424, allocations: 95.95 kB / 417.1 MB, free: 20.03 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003391/0.2427, allocations: 270.9 kB / 417.3 MB, free: 19.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.2428, allocations: 0 / 417.3 MB, free: 19.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004145/0.2432, allocations: 295.1 kB / 417.6 MB, free: 19.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/0.2432, allocations: 45.69 kB / 417.7 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.2432, allocations: 0 / 417.7 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.2433, allocations: 4.109 kB / 417.7 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.2434, allocations: 31.86 kB / 417.7 MB, free: 19.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.2434, allocations: 0 / 417.7 MB, free: 19.37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.097e-05/0.2435, allocations: 23.89 kB / 417.7 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.834e-05/0.2435, allocations: 23.97 kB / 417.8 MB, free: 19.32 MB / 298.7 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.0001241/0.2437, allocations: 188.1 kB / 417.9 MB, free: 19.12 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.637e-05/0.2437, allocations: 11.91 kB / 418 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.433e-05/0.2438, allocations: 20.83 kB / 418 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.2438, allocations: 0 / 418 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2438, allocations: 0 / 418 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.2438, allocations: 0 / 418 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001237/0.2439, allocations: 221.4 kB / 418.2 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-06/0.2439, allocations: 0 / 418.2 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.61e-05/0.244, allocations: 15.98 kB / 418.2 MB, free: 18.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.244, allocations: 0 / 418.2 MB, free: 18.8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.987e-05/0.244, allocations: 11.98 kB / 418.2 MB, free: 18.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.2441, allocations: 0 / 418.2 MB, free: 18.79 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2441, allocations: 7.938 kB / 418.2 MB, free: 18.79 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008356/0.2449, allocations: 0.5817 MB / 418.8 MB, free: 18.18 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.657e-05/0.2449, allocations: 88.98 kB / 418.9 MB, free: 18.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.652e-05/0.245, allocations: 11.98 kB / 418.9 MB, free: 18.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.637e-05/0.2451, allocations: 16.06 kB / 418.9 MB, free: 18.05 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.671e-05/0.2451, allocations: 15.92 kB / 418.9 MB, free: 18.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.442e-05/0.2452, allocations: 23.97 kB / 419 MB, free: 18.01 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.533e-05/0.2452, allocations: 113.7 kB / 419.1 MB, free: 17.9 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2452, allocations: 0 / 419.1 MB, free: 17.9 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002997/0.2456, allocations: 91.98 kB / 419.2 MB, free: 17.81 MB / 298.7 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.0004386/0.246, allocations: 259.1 kB / 419.4 MB, free: 17.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005419/0.2465, allocations: 439.2 kB / 419.8 MB, free: 17.14 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2466, allocations: 0 / 419.8 MB, free: 17.14 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003199/0.2469, allocations: 363.3 kB / 420.2 MB, free: 16.78 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001991/0.2471, allocations: 21.55 kB / 420.2 MB, free: 16.76 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005668/0.2477, allocations: 389 kB / 420.6 MB, free: 16.36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001104/0.2478, allocations: 0.7122 MB / 421.3 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.449e-05/0.2478, allocations: 12.66 kB / 421.3 MB, free: 15.6 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.838e-05/0.2479, allocations: 15.42 kB / 421.3 MB, free: 15.59 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2479, allocations: 0 / 421.3 MB, free: 15.59 MB / 298.7 MB Notification: Performance of Templates: time 0.004978/0.2529, allocations: 3.003 MB / 424.3 MB, free: 12.61 MB / 298.7 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)