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.001197/0.001197, allocations: 102.5 kB / 16.35 MB, free: 5.879 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.001547/0.001547, allocations: 194.2 kB / 17.3 MB, free: 5.52 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.364/1.364, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02501/0.02501, allocations: 3.906 MB / 295.1 MB, free: 11.03 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 71.84 kB / 356.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2243, allocations: 50.18 MB / 407.1 MB, free: 31.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.002273/0.2266, allocations: 1.506 MB / 408.6 MB, free: 30.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001502/0.2282, allocations: 1.102 MB / 409.7 MB, free: 29.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.677e-05/0.2282, allocations: 7.938 kB / 409.7 MB, free: 29.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.2284, allocations: 21.55 kB / 409.7 MB, free: 29.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.717e-05/0.2284, allocations: 11.88 kB / 409.7 MB, free: 29.28 MB / 302.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.0007487/0.2292, allocations: 243.3 kB / 410 MB, free: 29.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001662/0.2294, allocations: 163.3 kB / 410.1 MB, free: 28.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.2295, allocations: 13.41 kB / 410.1 MB, free: 28.87 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.128e-05/0.2296, allocations: 63.75 kB / 410.2 MB, free: 28.81 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.963e-05/0.2297, allocations: 55.75 kB / 410.3 MB, free: 28.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.2297, allocations: 12 kB / 410.3 MB, free: 28.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000284/0.23, allocations: 243.6 kB / 410.5 MB, free: 28.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.828e-05/0.23, allocations: 19.91 kB / 410.5 MB, free: 28.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.501e-05/0.2301, allocations: 55.67 kB / 410.6 MB, free: 28.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003074/0.2304, allocations: 288.9 kB / 410.9 MB, free: 28.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.2304, allocations: 0 / 410.9 MB, free: 28.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2304, allocations: 3.938 kB / 410.9 MB, free: 28.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.2305, allocations: 0 / 410.9 MB, free: 28.14 MB / 302.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.001201/0.2317, allocations: 1.318 MB / 412.2 MB, free: 26.78 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.2317, allocations: 11.89 kB / 412.2 MB, free: 26.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003225/0.232, allocations: 48.7 kB / 412.3 MB, free: 26.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002183/0.2323, allocations: 224.7 kB / 412.5 MB, free: 26.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.113e-05/0.2323, allocations: 8.375 kB / 412.5 MB, free: 26.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.317e-05/0.2323, allocations: 8.375 kB / 412.5 MB, free: 26.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003244/0.2327, allocations: 169.9 kB / 412.7 MB, free: 26.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.2327, allocations: 0 / 412.7 MB, free: 26.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.2327, allocations: 0 / 412.7 MB, free: 26.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.2327, allocations: 0 / 412.7 MB, free: 26.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002744/0.233, allocations: 143.8 kB / 412.8 MB, free: 26.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004523/0.2335, allocations: 364.7 kB / 413.1 MB, free: 25.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003184/0.2338, allocations: 206.5 kB / 413.4 MB, free: 25.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002158/0.234, allocations: 180.8 kB / 413.5 MB, free: 25.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.704e-05/0.234, allocations: 3.984 kB / 413.5 MB, free: 25.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003094/0.2344, allocations: 312.2 kB / 413.8 MB, free: 25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.572e-06/0.2344, allocations: 0 / 413.8 MB, free: 25 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0007955/0.2352, allocations: 463.1 kB / 414.3 MB, free: 24.53 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.2352, allocations: 97.09 kB / 414.4 MB, free: 24.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001123/0.2353, allocations: 163 kB / 414.5 MB, free: 24.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.2354, allocations: 29.7 kB / 414.6 MB, free: 24.21 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.145e-05/0.2354, allocations: 100.5 kB / 414.7 MB, free: 24.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.709e-05/0.2354, allocations: 27.56 kB / 414.7 MB, free: 24.08 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.322e-05/0.2355, allocations: 41.69 kB / 414.7 MB, free: 24.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.789e-05/0.2356, allocations: 330.8 kB / 415.1 MB, free: 23.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001834/0.2358, allocations: 95.91 kB / 415.2 MB, free: 23.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.2359, allocations: 91.94 kB / 415.2 MB, free: 23.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003504/0.2363, allocations: 273.8 kB / 415.5 MB, free: 23.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2363, allocations: 0 / 415.5 MB, free: 23.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004613/0.2368, allocations: 303.1 kB / 415.8 MB, free: 22.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.716e-05/0.2368, allocations: 49.67 kB / 415.9 MB, free: 22.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2368, allocations: 0 / 415.9 MB, free: 22.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.2369, allocations: 4 kB / 415.9 MB, free: 22.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.237, allocations: 19.98 kB / 415.9 MB, free: 22.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.237, allocations: 0 / 415.9 MB, free: 22.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.98e-05/0.2371, allocations: 23.83 kB / 415.9 MB, free: 22.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.907e-05/0.2372, allocations: 23.91 kB / 415.9 MB, free: 22.8 MB / 302.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.0001152/0.2373, allocations: 191.9 kB / 416.1 MB, free: 22.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.19e-05/0.2373, allocations: 15.91 kB / 416.1 MB, free: 22.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.494e-05/0.2374, allocations: 12.83 kB / 416.1 MB, free: 22.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2374, allocations: 3.938 kB / 416.1 MB, free: 22.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.2374, allocations: 4 kB / 416.1 MB, free: 22.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.2374, allocations: 0 / 416.1 MB, free: 22.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001148/0.2375, allocations: 221.4 kB / 416.4 MB, free: 22.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.2375, allocations: 0 / 416.4 MB, free: 22.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.48e-05/0.2376, allocations: 11.98 kB / 416.4 MB, free: 22.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.2376, allocations: 4 kB / 416.4 MB, free: 22.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.236e-05/0.2377, allocations: 11.98 kB / 416.4 MB, free: 22.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.2377, allocations: 4.062 kB / 416.4 MB, free: 22.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.2377, allocations: 0 / 416.4 MB, free: 22.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008305/0.2385, allocations: 0.595 MB / 417 MB, free: 21.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.585e-05/0.2386, allocations: 84.95 kB / 417.1 MB, free: 21.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.904e-05/0.2386, allocations: 12.03 kB / 417.1 MB, free: 21.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.001e-05/0.2387, allocations: 15.98 kB / 417.1 MB, free: 21.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.6e-05/0.2388, allocations: 11.97 kB / 417.1 MB, free: 21.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.599e-05/0.2388, allocations: 23.97 kB / 417.1 MB, free: 21.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.742e-05/0.2389, allocations: 115.2 kB / 417.2 MB, free: 21.37 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2389, allocations: 4 kB / 417.3 MB, free: 21.37 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003071/0.2392, allocations: 87.92 kB / 417.3 MB, free: 21.28 MB / 302.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.000425/0.2396, allocations: 247.4 kB / 417.6 MB, free: 21.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005563/0.2402, allocations: 435.2 kB / 418 MB, free: 20.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2402, allocations: 0 / 418 MB, free: 20.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000331/0.2405, allocations: 367.3 kB / 418.4 MB, free: 20.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002044/0.2408, allocations: 23.94 kB / 418.4 MB, free: 20.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005481/0.2413, allocations: 367.4 kB / 418.7 MB, free: 19.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/0.2414, allocations: 0.7041 MB / 419.5 MB, free: 19.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.669e-05/0.2415, allocations: 12.59 kB / 419.5 MB, free: 19.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.994e-05/0.2415, allocations: 19.44 kB / 419.5 MB, free: 19.09 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2415, allocations: 3.938 kB / 419.5 MB, free: 19.08 MB / 302.1 MB Notification: Performance of Templates: time 0.005419/0.247, allocations: 3.15 MB / 422.6 MB, free: 15.96 MB / 302.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 -s cvode -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe 2>&1)