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.005737/0.005737, allocations: 94.7 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.00124/0.00124, allocations: 200.5 kB / 16.68 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.272/1.272, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1301/0.1301, allocations: 3.873 MB / 294.4 MB, free: 3.262 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 64.14 kB / 406.9 MB, free: 184 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.2261, allocations: 50.18 MB / 457.1 MB, free: 20.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.002011/0.2282, allocations: 1.514 MB / 458.6 MB, free: 19.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00145/0.2296, allocations: 1.104 MB / 459.7 MB, free: 18.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.9e-05/0.2297, allocations: 3.938 kB / 459.7 MB, free: 18.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001134/0.2298, allocations: 26.09 kB / 459.7 MB, free: 18.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.663e-05/0.2299, allocations: 7.875 kB / 459.7 MB, free: 18.93 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.0006582/0.2306, allocations: 246.8 kB / 460 MB, free: 18.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001698/0.2307, allocations: 161.8 kB / 460.1 MB, free: 18.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.759e-05/0.2308, allocations: 17.17 kB / 460.1 MB, free: 18.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.651e-05/0.2309, allocations: 73.67 kB / 460.2 MB, free: 18.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.988e-05/0.231, allocations: 44.86 kB / 460.3 MB, free: 18.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.63e-05/0.2311, allocations: 13.09 kB / 460.3 MB, free: 18.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003054/0.2314, allocations: 245 kB / 460.5 MB, free: 18.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.199e-05/0.2314, allocations: 22.38 kB / 460.5 MB, free: 18.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.401e-05/0.2315, allocations: 55.61 kB / 460.6 MB, free: 18.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003849/0.2319, allocations: 283 kB / 460.9 MB, free: 18.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2319, allocations: 0 / 460.9 MB, free: 18.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.2319, allocations: 0.5156 kB / 460.9 MB, free: 18.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.2319, allocations: 0 / 460.9 MB, free: 18.46 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.001295/0.2332, allocations: 1.354 MB / 462.2 MB, free: 17.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.2333, allocations: 9.625 kB / 462.2 MB, free: 17.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003239/0.2336, allocations: 46.92 kB / 462.3 MB, free: 17.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002019/0.2338, allocations: 217.6 kB / 462.5 MB, free: 17.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.2338, allocations: 6.531 kB / 462.5 MB, free: 17.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.768e-05/0.2339, allocations: 10.03 kB / 462.5 MB, free: 17.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003071/0.2342, allocations: 163.4 kB / 462.7 MB, free: 17.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.2342, allocations: 4 kB / 462.7 MB, free: 17.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.453e-05/0.2342, allocations: 7.125 kB / 462.7 MB, free: 17.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.2342, allocations: 3.984 kB / 462.7 MB, free: 17.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002731/0.2345, allocations: 144.5 kB / 462.8 MB, free: 17.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004387/0.2349, allocations: 355.7 kB / 463.2 MB, free: 17.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003119/0.2353, allocations: 212.3 kB / 463.4 MB, free: 16.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002175/0.2355, allocations: 177.1 kB / 463.5 MB, free: 16.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.536e-05/0.2355, allocations: 0 / 463.5 MB, free: 16.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000341/0.2359, allocations: 306.9 kB / 463.8 MB, free: 16.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.353e-06/0.2359, allocations: 0 / 463.8 MB, free: 16.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.000923/0.2368, allocations: 472.7 kB / 464.3 MB, free: 16.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/0.2369, allocations: 93.25 kB / 464.4 MB, free: 16.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.237, allocations: 155.6 kB / 464.6 MB, free: 16.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.237, allocations: 31.86 kB / 464.6 MB, free: 16.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.561e-05/0.2371, allocations: 106.6 kB / 464.7 MB, free: 16.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.313e-05/0.2371, allocations: 35.64 kB / 464.7 MB, free: 16.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.788e-05/0.2372, allocations: 41.2 kB / 464.8 MB, free: 16.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.42e-05/0.2373, allocations: 326.7 kB / 465.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002103/0.2375, allocations: 92.34 kB / 465.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001949/0.2377, allocations: 92.38 kB / 465.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004078/0.2381, allocations: 275.3 kB / 465.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2381, allocations: 0.7031 kB / 465.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000492/0.2386, allocations: 297.3 kB / 465.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.514e-05/0.2387, allocations: 49.89 kB / 465.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.2387, allocations: 1.625 kB / 465.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.2387, allocations: 7.938 kB / 465.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/0.2388, allocations: 22.38 kB / 465.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.2388, allocations: 3.938 kB / 465.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.369e-05/0.2389, allocations: 20.02 kB / 465.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.961e-05/0.239, allocations: 22.47 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.0001499/0.2391, allocations: 190.3 kB / 466.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.442e-05/0.2392, allocations: 18.61 kB / 466.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.388e-05/0.2392, allocations: 16.5 kB / 466.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.2393, allocations: 0 / 466.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.2393, allocations: 2.109 kB / 466.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.2393, allocations: 0 / 466.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001668/0.2394, allocations: 219.4 kB / 466.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2395, allocations: 1.062 kB / 466.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.427e-05/0.2396, allocations: 12.17 kB / 466.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.2396, allocations: 1.891 kB / 466.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.709e-05/0.2396, allocations: 11.47 kB / 466.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2396, allocations: 1.062 kB / 466.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2396, allocations: 4 kB / 466.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.2406, allocations: 0.5814 MB / 467 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.262e-05/0.2407, allocations: 93.55 kB / 467.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.259e-05/0.2407, allocations: 10.8 kB / 467.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.168e-05/0.2408, allocations: 19.64 kB / 467.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.415e-05/0.2409, allocations: 8.453 kB / 467.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.616e-05/0.2409, allocations: 26.72 kB / 467.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.298e-05/0.241, allocations: 119.7 kB / 467.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.241, allocations: 0 / 467.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003962/0.2414, allocations: 89.56 kB / 467.4 MB, free: 14.56 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.0004828/0.2419, allocations: 254.8 kB / 467.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006197/0.2425, allocations: 438.2 kB / 468 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2426, allocations: 0 / 468 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000377/0.2429, allocations: 363.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.0002118/0.2432, allocations: 25.84 kB / 468.4 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006794/0.2439, allocations: 374.3 kB / 468.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002058/0.2441, allocations: 0.7125 MB / 469.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.7e-05/0.2441, allocations: 11.55 kB / 469.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.514e-05/0.2442, allocations: 14.5 kB / 469.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2442, allocations: 0 / 469.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of Templates: time 0.006552/0.2507, allocations: 3.17 MB / 472.7 MB, free: 12.76 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)