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.001017/0.001017, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001167/0.001166, allocations: 192.1 kB / 16.13 MB, free: 6.66 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.256/1.256, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1286/0.1286, allocations: 3.892 MB / 293.8 MB, free: 3.234 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 59.91 kB / 354.8 MB, free: 4.117 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1034, allocations: 50.19 MB / 405 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.002885/0.1063, allocations: 1.577 MB / 406.6 MB, free: 300 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001958/0.1083, allocations: 1.145 MB / 407.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.669e-05/0.1084, allocations: 3.938 kB / 407.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001195/0.1085, allocations: 15.92 kB / 407.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.299e-05/0.1086, allocations: 15.8 kB / 407.7 MB, free: 15.11 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.0006015/0.1092, allocations: 199.6 kB / 407.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000144/0.1093, allocations: 143.7 kB / 408.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.395e-05/0.1094, allocations: 17.39 kB / 408.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.365e-05/0.1095, allocations: 59.77 kB / 408.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.023e-05/0.1096, allocations: 47.81 kB / 408.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.402e-05/0.1097, allocations: 7.938 kB / 408.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002881/0.1099, allocations: 207.6 kB / 408.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.679e-05/0.11, allocations: 23.91 kB / 408.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.791e-05/0.1101, allocations: 55.72 kB / 408.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000361/0.1105, allocations: 279.3 kB / 408.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1105, allocations: 0 / 408.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1105, allocations: 0 / 408.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.1105, allocations: 8 kB / 408.8 MB, free: 14.07 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.001536/0.112, allocations: 1.317 MB / 410.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.1121, allocations: 8.031 kB / 410.1 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003624/0.1125, allocations: 48.69 kB / 410.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002222/0.1127, allocations: 216 kB / 410.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/0.1127, allocations: 8.375 kB / 410.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.66e-05/0.1128, allocations: 8.375 kB / 410.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003594/0.1131, allocations: 169.8 kB / 410.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.178e-06/0.1131, allocations: 3.938 kB / 410.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.1132, allocations: 4 kB / 410.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.1132, allocations: 0 / 410.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003099/0.1135, allocations: 143.8 kB / 410.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005199/0.114, allocations: 360.7 kB / 411 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003596/0.1144, allocations: 206.4 kB / 411.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002566/0.1147, allocations: 180.8 kB / 411.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.595e-05/0.1147, allocations: 11.98 kB / 411.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003913/0.1151, allocations: 296.3 kB / 411.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.293e-06/0.1151, allocations: 0 / 411.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008805/0.116, allocations: 471.2 kB / 412.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.1161, allocations: 101 kB / 412.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.1162, allocations: 154.2 kB / 412.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.1162, allocations: 29.7 kB / 412.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.156e-05/0.1163, allocations: 96.45 kB / 412.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.048e-05/0.1163, allocations: 35.55 kB / 412.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.289e-05/0.1164, allocations: 45.69 kB / 412.6 MB, free: 9.965 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.1165, allocations: 326.8 kB / 412.9 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002045/0.1167, allocations: 95.91 kB / 413 MB, free: 9.543 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.1169, allocations: 94.34 kB / 413.1 MB, free: 9.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004052/0.1174, allocations: 268.2 kB / 413.4 MB, free: 9.176 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1174, allocations: 0 / 413.4 MB, free: 9.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005006/0.1179, allocations: 305.3 kB / 413.7 MB, free: 8.867 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.781e-05/0.1179, allocations: 53.67 kB / 413.7 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1179, allocations: 0 / 413.7 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.118, allocations: 0 / 413.7 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.1181, allocations: 20.05 kB / 413.8 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.1181, allocations: 8 kB / 413.8 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.701e-05/0.1182, allocations: 15.89 kB / 413.8 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.345e-05/0.1183, allocations: 19.97 kB / 413.8 MB, free: 8.746 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.0001523/0.1184, allocations: 191.4 kB / 414 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.463e-05/0.1185, allocations: 11.91 kB / 414 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.626e-05/0.1185, allocations: 16.83 kB / 414 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.1185, allocations: 0 / 414 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1185, allocations: 0 / 414 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.1185, allocations: 0 / 414 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001795/0.1187, allocations: 229.4 kB / 414.2 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1187, allocations: 3.938 kB / 414.2 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.271e-05/0.1188, allocations: 15.98 kB / 414.3 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1188, allocations: 0 / 414.3 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.607e-05/0.1189, allocations: 15.98 kB / 414.3 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1189, allocations: 0 / 414.3 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1189, allocations: 3.938 kB / 414.3 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009765/0.1199, allocations: 0.5801 MB / 414.9 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.995e-05/0.1199, allocations: 92.94 kB / 414.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.158e-05/0.12, allocations: 12 kB / 415 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.779e-05/0.1201, allocations: 11.98 kB / 415 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.33e-05/0.1201, allocations: 15.98 kB / 415 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.83e-05/0.1202, allocations: 19.97 kB / 415 MB, free: 7.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.68e-05/0.1203, allocations: 120.1 kB / 415.1 MB, free: 7.312 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.473e-06/0.1203, allocations: 0 / 415.1 MB, free: 7.312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003312/0.1206, allocations: 91.98 kB / 415.2 MB, free: 7.223 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.0004638/0.1211, allocations: 251.5 kB / 415.5 MB, free: 7.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006196/0.1217, allocations: 435.2 kB / 415.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1217, allocations: 0 / 415.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003817/0.1221, allocations: 363.2 kB / 416.2 MB, free: 6.199 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001984/0.1223, allocations: 27.88 kB / 416.3 MB, free: 6.172 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000654/0.123, allocations: 385 kB / 416.6 MB, free: 5.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002375/0.1232, allocations: 0.7083 MB / 417.3 MB, free: 5.035 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.922e-05/0.1233, allocations: 12.66 kB / 417.4 MB, free: 5.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.036e-05/0.1233, allocations: 11.44 kB / 417.4 MB, free: 5.008 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1233, allocations: 0 / 417.4 MB, free: 5.008 MB / 350.1 MB Notification: Performance of Templates: time 0.005665/0.129, allocations: 3.022 MB / 420.4 MB, free: 2.008 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)