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.001057/0.001057, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001126/0.001126, allocations: 186.6 kB / 16.25 MB, free: 6.578 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.34/1.34, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.148/0.148, allocations: 3.886 MB / 294 MB, free: 3.285 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 55.91 kB / 355 MB, free: 3.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1123, allocations: 50.19 MB / 405.2 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.002849/0.1152, allocations: 1.585 MB / 406.7 MB, free: 152 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.117, allocations: 1.102 MB / 407.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.316e-05/0.1171, allocations: 4 kB / 407.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001235/0.1173, allocations: 19.8 kB / 407.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.134e-05/0.1173, allocations: 11.88 kB / 407.9 MB, free: 15 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.000738/0.1181, allocations: 219.6 kB / 408.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001775/0.1183, allocations: 155.7 kB / 408.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.005e-05/0.1184, allocations: 21.36 kB / 408.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.1185, allocations: 63.77 kB / 408.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.492e-05/0.1186, allocations: 55.75 kB / 408.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.362e-05/0.1186, allocations: 12 kB / 408.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003378/0.119, allocations: 223.6 kB / 408.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.349e-05/0.119, allocations: 23.92 kB / 408.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.269e-05/0.1191, allocations: 55.72 kB / 408.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003463/0.1194, allocations: 283.3 kB / 409 MB, free: 13.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1195, allocations: 0 / 409 MB, free: 13.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1195, allocations: 0 / 409 MB, free: 13.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.71e-06/0.1195, allocations: 0 / 409 MB, free: 13.91 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.001489/0.121, allocations: 1.321 MB / 410.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.121, allocations: 8.031 kB / 410.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003788/0.1214, allocations: 48.69 kB / 410.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002452/0.1217, allocations: 220 kB / 410.6 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.1217, allocations: 8.375 kB / 410.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.65e-05/0.1217, allocations: 4.375 kB / 410.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000345/0.1221, allocations: 169.8 kB / 410.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.1221, allocations: 3.984 kB / 410.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.495e-05/0.1221, allocations: 7.938 kB / 410.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.1221, allocations: 0 / 410.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003045/0.1224, allocations: 135.9 kB / 410.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005491/0.123, allocations: 356.7 kB / 411.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003496/0.1234, allocations: 214.4 kB / 411.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002452/0.1236, allocations: 180.9 kB / 411.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.1236, allocations: 0 / 411.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003889/0.124, allocations: 307.2 kB / 411.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/0.124, allocations: 0 / 411.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008888/0.1249, allocations: 474.3 kB / 412.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.859e-05/0.125, allocations: 93.05 kB / 412.5 MB, free: 10.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.1252, allocations: 158.1 kB / 412.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.1252, allocations: 37.7 kB / 412.7 MB, free: 9.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.071e-05/0.1252, allocations: 96.45 kB / 412.7 MB, free: 9.883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.556e-05/0.1253, allocations: 31.55 kB / 412.8 MB, free: 9.852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.263e-05/0.1254, allocations: 41.7 kB / 412.8 MB, free: 9.805 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.1255, allocations: 326.8 kB / 413.1 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.1257, allocations: 104 kB / 413.2 MB, free: 9.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/0.1259, allocations: 86.19 kB / 413.3 MB, free: 9.293 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000391/0.1263, allocations: 276.1 kB / 413.6 MB, free: 9.008 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1263, allocations: 0 / 413.6 MB, free: 9.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005243/0.1268, allocations: 309.6 kB / 413.9 MB, free: 8.695 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.725e-05/0.1269, allocations: 45.69 kB / 413.9 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.1269, allocations: 0 / 413.9 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.1269, allocations: 8 kB / 414 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.127, allocations: 23.97 kB / 414 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.1271, allocations: 0 / 414 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.737e-05/0.1271, allocations: 15.89 kB / 414 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.322e-05/0.1272, allocations: 15.98 kB / 414 MB, free: 8.582 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.0001615/0.1274, allocations: 195.4 kB / 414.2 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.517e-05/0.1274, allocations: 15.91 kB / 414.2 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.892e-05/0.1275, allocations: 12.84 kB / 414.2 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1275, allocations: 0 / 414.2 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.1275, allocations: 4 kB / 414.2 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.1275, allocations: 0 / 414.2 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001687/0.1277, allocations: 229.3 kB / 414.5 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1277, allocations: 0 / 414.5 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.164e-05/0.1278, allocations: 15.92 kB / 414.5 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.1278, allocations: 0 / 414.5 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.544e-05/0.1278, allocations: 12 kB / 414.5 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.1278, allocations: 0 / 414.5 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1278, allocations: 0 / 414.5 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009474/0.1288, allocations: 0.5806 MB / 415.1 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.519e-05/0.1288, allocations: 84.92 kB / 415.1 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.341e-05/0.1289, allocations: 16.02 kB / 415.2 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.511e-05/0.129, allocations: 20.05 kB / 415.2 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.426e-05/0.1291, allocations: 15.97 kB / 415.2 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.049e-05/0.1291, allocations: 19.97 kB / 415.2 MB, free: 7.262 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.87e-05/0.1292, allocations: 120.1 kB / 415.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1292, allocations: 7.938 kB / 415.3 MB, free: 7.137 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003596/0.1296, allocations: 83.98 kB / 415.4 MB, free: 7.055 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.000488/0.1301, allocations: 245.5 kB / 415.7 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006661/0.1307, allocations: 439.2 kB / 416.1 MB, free: 6.398 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1307, allocations: 0 / 416.1 MB, free: 6.398 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004073/0.1312, allocations: 367.2 kB / 416.4 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002235/0.1314, allocations: 27.86 kB / 416.5 MB, free: 6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007332/0.1321, allocations: 383.4 kB / 416.8 MB, free: 5.598 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003739/0.1325, allocations: 0.7117 MB / 417.6 MB, free: 4.859 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.83e-05/0.1326, allocations: 16.66 kB / 417.6 MB, free: 4.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.673e-05/0.1326, allocations: 15.44 kB / 417.6 MB, free: 4.824 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1326, allocations: 0 / 417.6 MB, free: 4.824 MB / 350.1 MB Notification: Performance of Templates: time 0.006156/0.1388, allocations: 3.114 MB / 420.7 MB, free: 1.734 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)