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.004224/0.004224, allocations: 101.5 kB / 15.73 MB, free: 6.035 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.0009564/0.0009564, allocations: 194.2 kB / 16.67 MB, free: 5.973 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.325/1.325, allocations: 222.9 MB / 240.3 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1289/0.1289, allocations: 3.882 MB / 294.4 MB, free: 3.191 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 63.91 kB / 406.9 MB, free: 212 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2616, allocations: 50.18 MB / 457.1 MB, free: 20.99 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.002155/0.2638, allocations: 1.514 MB / 458.6 MB, free: 19.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.2653, allocations: 1.106 MB / 459.7 MB, free: 19.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.484e-05/0.2653, allocations: 3.062 kB / 459.7 MB, free: 19.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.2654, allocations: 19.23 kB / 459.7 MB, free: 19.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.927e-05/0.2655, allocations: 15.34 kB / 459.7 MB, free: 19.17 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.0006203/0.2661, allocations: 248.8 kB / 460 MB, free: 19.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001591/0.2663, allocations: 163.6 kB / 460.1 MB, free: 18.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.204e-05/0.2664, allocations: 15.48 kB / 460.2 MB, free: 18.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.01e-05/0.2665, allocations: 73.16 kB / 460.2 MB, free: 18.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.486e-05/0.2666, allocations: 48.83 kB / 460.3 MB, free: 18.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.343e-05/0.2666, allocations: 9.188 kB / 460.3 MB, free: 18.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002654/0.2669, allocations: 243.6 kB / 460.5 MB, free: 18.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.683e-05/0.2669, allocations: 25.62 kB / 460.5 MB, free: 18.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.735e-05/0.267, allocations: 56.12 kB / 460.6 MB, free: 18.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003327/0.2673, allocations: 283.9 kB / 460.9 MB, free: 18.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.2673, allocations: 0 / 460.9 MB, free: 18.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2673, allocations: 0 / 460.9 MB, free: 18.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.2673, allocations: 0 / 460.9 MB, free: 18.7 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.001263/0.2686, allocations: 1.317 MB / 462.2 MB, free: 17.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/0.2687, allocations: 12 kB / 462.2 MB, free: 17.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002998/0.269, allocations: 46.61 kB / 462.2 MB, free: 17.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000199/0.2692, allocations: 221.6 kB / 462.5 MB, free: 17.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.2692, allocations: 7.5 kB / 462.5 MB, free: 17.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.926e-05/0.2692, allocations: 11.31 kB / 462.5 MB, free: 17.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003097/0.2695, allocations: 170.2 kB / 462.7 MB, free: 17.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.2696, allocations: 0 / 462.7 MB, free: 17.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.2696, allocations: 3.938 kB / 462.7 MB, free: 17.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.2696, allocations: 3.828 kB / 462.7 MB, free: 17.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002813/0.2699, allocations: 138.2 kB / 462.8 MB, free: 17.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004745/0.2704, allocations: 355.1 kB / 463.1 MB, free: 17.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003099/0.2707, allocations: 208.3 kB / 463.3 MB, free: 17.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002292/0.2709, allocations: 184.3 kB / 463.5 MB, free: 17.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.2709, allocations: 1.219 kB / 463.5 MB, free: 17.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003485/0.2713, allocations: 295 kB / 463.8 MB, free: 16.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.292e-06/0.2713, allocations: 0 / 463.8 MB, free: 16.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008567/0.2722, allocations: 479.5 kB / 464.3 MB, free: 16.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.089e-05/0.2722, allocations: 92.95 kB / 464.4 MB, free: 16.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.2723, allocations: 160.6 kB / 464.5 MB, free: 16.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.2724, allocations: 28.36 kB / 464.6 MB, free: 16.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.732e-05/0.2724, allocations: 98.56 kB / 464.7 MB, free: 16.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.964e-05/0.2724, allocations: 31.8 kB / 464.7 MB, free: 16.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.49e-05/0.2725, allocations: 44.12 kB / 464.7 MB, free: 16.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.326e-05/0.2726, allocations: 330.6 kB / 465 MB, free: 16.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001924/0.2728, allocations: 92.12 kB / 465.1 MB, free: 16.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001794/0.273, allocations: 93.06 kB / 465.2 MB, free: 16.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000385/0.2734, allocations: 274.9 kB / 465.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2734, allocations: 5.094 kB / 465.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004735/0.2738, allocations: 302 kB / 465.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.407e-05/0.2739, allocations: 49.31 kB / 465.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.2739, allocations: 0.5625 kB / 465.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.2739, allocations: 1.312 kB / 465.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.2741, allocations: 25.69 kB / 465.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.2741, allocations: 0 / 465.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.374e-05/0.2742, allocations: 27.75 kB / 465.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.222e-05/0.2742, allocations: 23.25 kB / 465.9 MB, free: 15.69 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.0001265/0.2744, allocations: 193.6 kB / 466.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.269e-05/0.2744, allocations: 14.61 kB / 466.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.155e-05/0.2745, allocations: 11.47 kB / 466.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.2745, allocations: 1.609 kB / 466.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2745, allocations: 1.031 kB / 466.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.2745, allocations: 8.781 kB / 466.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001392/0.2746, allocations: 223.8 kB / 466.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.2746, allocations: 0 / 466.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.974e-05/0.2747, allocations: 13.73 kB / 466.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.2747, allocations: 1.344 kB / 466.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.156e-05/0.2748, allocations: 7.703 kB / 466.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.2748, allocations: 0 / 466.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2748, allocations: 1 kB / 466.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009361/0.2757, allocations: 0.5786 MB / 467 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.862e-05/0.2758, allocations: 94.25 kB / 467.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.235e-05/0.2758, allocations: 18.41 kB / 467.1 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.938e-05/0.2759, allocations: 11.22 kB / 467.1 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.945e-05/0.2759, allocations: 13.02 kB / 467.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.241e-05/0.276, allocations: 29.61 kB / 467.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.567e-05/0.2761, allocations: 120.7 kB / 467.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2761, allocations: 0 / 467.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003311/0.2764, allocations: 86.36 kB / 467.3 MB, free: 14.82 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.0004378/0.2769, allocations: 240.8 kB / 467.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005916/0.2775, allocations: 434.9 kB / 468 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2775, allocations: 7.938 kB / 468 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000363/0.2778, allocations: 366.7 kB / 468.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002106/0.2781, allocations: 21.08 kB / 468.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006086/0.2787, allocations: 358.3 kB / 468.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001284/0.2788, allocations: 0.7119 MB / 469.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.049e-05/0.2789, allocations: 12.39 kB / 469.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.142e-05/0.2789, allocations: 13.16 kB / 469.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.2789, allocations: 0 / 469.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of Templates: time 0.006804/0.2857, allocations: 3.165 MB / 472.6 MB, free: 13.05 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)