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.001421/0.001421, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.361/1.361, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1463/0.1463, allocations: 3.889 MB / 294.3 MB, free: 3.242 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 60.03 kB / 355.5 MB, free: 3.582 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0992/0.1012, allocations: 50.19 MB / 405.6 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.003313/0.1045, allocations: 1.497 MB / 407.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002295/0.1068, allocations: 1.114 MB / 408.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.107, allocations: 0 / 408.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001723/0.1072, allocations: 19.8 kB / 408.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001031/0.1073, allocations: 23.78 kB / 408.3 MB, free: 14.68 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.001021/0.1084, allocations: 239.3 kB / 408.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002916/0.1087, allocations: 167.6 kB / 408.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.1088, allocations: 9.406 kB / 408.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.1089, allocations: 63.81 kB / 408.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001106/0.109, allocations: 47.77 kB / 408.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.344e-05/0.1091, allocations: 15.94 kB / 408.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004269/0.1095, allocations: 215.7 kB / 409 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.141e-05/0.1096, allocations: 23.92 kB / 409.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.582e-05/0.1097, allocations: 51.72 kB / 409.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006045/0.1103, allocations: 279.3 kB / 409.4 MB, free: 13.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.1103, allocations: 4 kB / 409.4 MB, free: 13.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1103, allocations: 0 / 409.4 MB, free: 13.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.1103, allocations: 0 / 409.4 MB, free: 13.58 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.00218/0.1125, allocations: 1.325 MB / 410.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.1126, allocations: 8.031 kB / 410.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004275/0.113, allocations: 50.92 kB / 410.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.1133, allocations: 216 kB / 411 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.1134, allocations: 8.375 kB / 411 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.549e-05/0.1134, allocations: 12.31 kB / 411 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003791/0.1138, allocations: 169.8 kB / 411.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.1138, allocations: 0 / 411.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.1138, allocations: 4 kB / 411.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.1138, allocations: 7.922 kB / 411.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000346/0.1142, allocations: 139.9 kB / 411.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006745/0.1149, allocations: 364.7 kB / 411.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003903/0.1153, allocations: 214.4 kB / 411.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000271/0.1156, allocations: 180.9 kB / 412.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.1156, allocations: 4 kB / 412.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005203/0.1161, allocations: 296.3 kB / 412.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.954e-06/0.1161, allocations: 0 / 412.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001041/0.1172, allocations: 474.6 kB / 412.8 MB, free: 9.949 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.018e-05/0.1173, allocations: 97.09 kB / 412.9 MB, free: 9.836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.1175, allocations: 154.2 kB / 413.1 MB, free: 9.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.1175, allocations: 29.7 kB / 413.1 MB, free: 9.641 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.932e-05/0.1176, allocations: 96.45 kB / 413.2 MB, free: 9.543 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.55e-05/0.1176, allocations: 39.53 kB / 413.2 MB, free: 9.504 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.651e-05/0.1177, allocations: 41.7 kB / 413.3 MB, free: 9.457 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1179, allocations: 330.8 kB / 413.6 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002278/0.1181, allocations: 95.89 kB / 413.7 MB, free: 9.031 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002034/0.1183, allocations: 87.95 kB / 413.8 MB, free: 8.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004625/0.1188, allocations: 274.4 kB / 414 MB, free: 8.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.1188, allocations: 0 / 414 MB, free: 8.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000584/0.1194, allocations: 303.1 kB / 414.3 MB, free: 8.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.883e-05/0.1195, allocations: 49.69 kB / 414.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1195, allocations: 0 / 414.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.1195, allocations: 0 / 414.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.1197, allocations: 23.97 kB / 414.4 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.1197, allocations: 7.984 kB / 414.4 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.966e-05/0.1198, allocations: 11.91 kB / 414.4 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.977e-05/0.1199, allocations: 27.97 kB / 414.5 MB, free: 8.23 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.0001635/0.12, allocations: 187.9 kB / 414.6 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.77e-05/0.1201, allocations: 11.91 kB / 414.6 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.893e-05/0.1201, allocations: 12.84 kB / 414.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1201, allocations: 0 / 414.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1202, allocations: 3.938 kB / 414.7 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1202, allocations: 0 / 414.7 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00021/0.1204, allocations: 233.3 kB / 414.9 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-06/0.1204, allocations: 8 kB / 414.9 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.791e-05/0.1205, allocations: 11.98 kB / 414.9 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.287e-06/0.1205, allocations: 0 / 414.9 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.1205, allocations: 8 kB / 414.9 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.1205, allocations: 7.938 kB / 414.9 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1205, allocations: 0 / 414.9 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.1216, allocations: 0.5806 MB / 415.5 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.373e-05/0.1216, allocations: 92.95 kB / 415.6 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.066e-05/0.1217, allocations: 11.98 kB / 415.6 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.754e-05/0.1218, allocations: 11.98 kB / 415.6 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.522e-05/0.1219, allocations: 12.11 kB / 415.6 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.83e-05/0.1219, allocations: 31.91 kB / 415.7 MB, free: 6.906 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.913e-05/0.122, allocations: 120.2 kB / 415.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.122, allocations: 3.938 kB / 415.8 MB, free: 6.785 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004211/0.1225, allocations: 84 kB / 415.9 MB, free: 6.703 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.0006773/0.1231, allocations: 249.7 kB / 416.1 MB, free: 6.488 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00084/0.124, allocations: 431.2 kB / 416.5 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.124, allocations: 0 / 416.5 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004253/0.1244, allocations: 371.2 kB / 416.9 MB, free: 5.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002072/0.1247, allocations: 23.86 kB / 416.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007071/0.1254, allocations: 359.4 kB / 417.3 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.1257, allocations: 0.7156 MB / 418 MB, free: 4.535 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.209e-05/0.1258, allocations: 8.656 kB / 418 MB, free: 4.523 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.304e-05/0.1258, allocations: 15.44 kB / 418 MB, free: 4.508 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1258, allocations: 0 / 418 MB, free: 4.508 MB / 350.1 MB Notification: Performance of Templates: time 0.006749/0.1326, allocations: 3.166 MB / 421.2 MB, free: 1.367 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)