Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.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.TimeBasedCorrelations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations") translateModel(AdvancedNoise.Examples.TimeBasedCorrelations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001119, allocations: 103 kB / 16.36 MB, free: 6.336 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.001063/0.001063, allocations: 198.3 kB / 17.3 MB, free: 5.883 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.358/1.358, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02458/0.02458, allocations: 3.903 MB / 295.1 MB, free: 11.05 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 63.89 kB / 356.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2358, allocations: 50.18 MB / 407.1 MB, free: 31.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.0026/0.2385, allocations: 1.991 MB / 409.1 MB, free: 29.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002136/0.2406, allocations: 1.509 MB / 410.6 MB, free: 28.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001277/0.2408, allocations: 11.88 kB / 410.6 MB, free: 28.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.241, allocations: 51.41 kB / 410.6 MB, free: 28.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000643/0.2416, allocations: 256.4 kB / 410.9 MB, free: 28.13 MB / 302.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.0006228/0.2422, allocations: 343 kB / 411.2 MB, free: 27.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004464/0.2427, allocations: 0.6314 MB / 411.9 MB, free: 27.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.2429, allocations: 90.02 kB / 412 MB, free: 27.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00022/0.2431, allocations: 264.2 kB / 412.2 MB, free: 26.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.2433, allocations: 275.1 kB / 412.5 MB, free: 26.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.067e-05/0.2434, allocations: 64 kB / 412.5 MB, free: 26.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004084/0.2438, allocations: 351.5 kB / 412.9 MB, free: 26.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.2439, allocations: 127.6 kB / 413 MB, free: 26.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001649/0.2441, allocations: 238.9 kB / 413.2 MB, free: 25.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005331/0.2447, allocations: 0.7206 MB / 414 MB, free: 25.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.2447, allocations: 0 / 414 MB, free: 25.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2447, allocations: 0 / 414 MB, free: 25.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.2447, allocations: 0 / 414 MB, free: 25.06 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.002303/0.247, allocations: 2.456 MB / 416.4 MB, free: 22.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.2471, allocations: 8.031 kB / 416.4 MB, free: 22.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001237/0.2483, allocations: 156.3 kB / 416.6 MB, free: 22.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005932/0.2489, allocations: 375.9 kB / 416.9 MB, free: 21.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.191e-05/0.249, allocations: 32.94 kB / 417 MB, free: 21.94 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.812e-05/0.2491, allocations: 40.28 kB / 417 MB, free: 21.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.2501, allocations: 0.568 MB / 417.6 MB, free: 21.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.2501, allocations: 192 / 417.6 MB, free: 21.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.77e-05/0.2502, allocations: 19.94 kB / 417.6 MB, free: 21.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.2502, allocations: 8 kB / 417.6 MB, free: 21.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001253/0.2514, allocations: 0.6307 MB / 418.2 MB, free: 20.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001663/0.2531, allocations: 1.127 MB / 419.4 MB, free: 19.49 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.2542, allocations: 0.6476 MB / 420 MB, free: 18.83 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007348/0.255, allocations: 0.5057 MB / 420.5 MB, free: 18.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.26e-05/0.2551, allocations: 8.312 kB / 420.5 MB, free: 18.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009075/0.256, allocations: 0.752 MB / 421.3 MB, free: 17.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 2.204e-06/0.256, allocations: 0 / 421.3 MB, free: 17.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.002392/0.2584, allocations: 1.369 MB / 422.7 MB, free: 16.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.596e-05/0.2584, allocations: 142.7 kB / 422.8 MB, free: 15.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001781/0.2586, allocations: 250.5 kB / 423 MB, free: 15.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.378e-05/0.2587, allocations: 41.7 kB / 423.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.94e-05/0.2588, allocations: 149.1 kB / 423.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.256e-05/0.2589, allocations: 177.4 kB / 423.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.259, allocations: 126.2 kB / 423.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.99e-05/0.2591, allocations: 346.8 kB / 423.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006681/0.2598, allocations: 341 kB / 424.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006526/0.2604, allocations: 357.3 kB / 424.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.2617, allocations: 0.8274 MB / 425.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.2617, allocations: 8 kB / 425.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001569/0.2633, allocations: 0.9212 MB / 426.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.45e-05/0.2634, allocations: 93.56 kB / 426.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.2634, allocations: 0 / 426.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.2634, allocations: 8 kB / 426.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006892/0.2641, allocations: 131.8 kB / 426.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.545e-06/0.2641, allocations: 0 / 426.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003486/0.2645, allocations: 75.42 kB / 426.6 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.735e-05/0.2646, allocations: 51.92 kB / 426.7 MB, free: 12.01 MB / 302.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: 26 (globalSeed.seed,noise2.actualGlobalSeed,noise2.localSeed,globalSeed.id_impure,noise1.actualGlobalSeed,noise1.localSeed,noise2.r,noise2.bufferStartTime,noise2.buffer[2],noise2.buffer[1],noise2.state[4],noise2.state[3],noise2.state[2],noise2.state[1],noise1.r,noise1.bufferStartTime,noise1.buffer[2],noise1.buffer[1],noise1.state[4],noise1.state[3],noise1.state[2],noise1.state[1],$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 2 * 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.0002667/0.2649, allocations: 295.8 kB / 426.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.206e-05/0.265, allocations: 43.53 kB / 427 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001956/0.2669, allocations: 1.127 MB / 428.1 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.2669, allocations: 4 kB / 428.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.267, allocations: 4 kB / 428.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.267, allocations: 0 / 428.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004571/0.2674, allocations: 0.6028 MB / 428.7 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.2674, allocations: 0 / 428.7 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000658/0.2681, allocations: 107.8 kB / 428.8 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.2681, allocations: 0 / 428.8 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.244e-05/0.2682, allocations: 31.97 kB / 428.9 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.2682, allocations: 0 / 428.9 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2682, allocations: 0 / 428.9 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002549/0.2707, allocations: 1.665 MB / 430.5 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.723e-05/0.2708, allocations: 116.5 kB / 430.6 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.814e-05/0.2709, allocations: 31.98 kB / 430.7 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003437/0.2713, allocations: 40.14 kB / 430.7 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.2714, allocations: 59.92 kB / 430.8 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.042e-05/0.2715, allocations: 63.78 kB / 430.8 MB, free: 7.688 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001203/0.2717, allocations: 178 kB / 431 MB, free: 7.512 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2717, allocations: 0 / 431 MB, free: 7.512 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005159/0.2722, allocations: 163.9 kB / 431.2 MB, free: 7.352 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (crossCorrelationTest.correlation.int_X,crossCorrelationTest.correlation.int_Y,crossCorrelationTest.correlation.int_X2,crossCorrelationTest.correlation.int_Y2,crossCorrelationTest.correlation.int_XY,autoCorrelationTest.correlationTest.correlation.int_X,autoCorrelationTest.correlationTest.correlation.int_Y,autoCorrelationTest.correlationTest.correlation.int_X2,autoCorrelationTest.correlationTest.correlation.int_Y2,autoCorrelationTest.correlationTest.correlation.int_XY) * Number of discrete variables: 20 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,noise1.state[1],noise1.state[2],noise1.state[3],noise1.state[4],noise1.buffer[1],noise1.buffer[2],noise1.bufferStartTime,noise1.r,noise2.state[1],noise2.state[2],noise2.state[3],noise2.state[4],noise2.buffer[1],noise2.buffer[2],noise2.bufferStartTime,noise2.r) * Number of discrete states: 20 (noise2.buffer[2],noise2.buffer[1],noise2.r,noise2.bufferStartTime,noise2.state[4],noise2.state[3],noise2.state[2],noise2.state[1],$whenCondition2,$whenCondition1,noise1.buffer[2],noise1.buffer[1],noise1.r,noise1.bufferStartTime,noise1.state[4],noise1.state[3],noise1.state[2],noise1.state[1],$whenCondition4,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 2 * 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.0006078/0.2728, allocations: 325.2 kB / 431.5 MB, free: 7.074 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001726/0.2745, allocations: 1.232 MB / 432.7 MB, free: 5.816 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.2746, allocations: 0 / 432.7 MB, free: 5.816 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009404/0.2755, allocations: 0.8974 MB / 433.6 MB, free: 4.895 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002995/0.2758, allocations: 44.36 kB / 433.7 MB, free: 4.852 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/0.2774, allocations: 1.087 MB / 434.7 MB, free: 3.738 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002149/0.2776, allocations: 0.8082 MB / 435.5 MB, free: 2.906 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003219/0.278, allocations: 70.94 kB / 435.6 MB, free: 2.836 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.2781, allocations: 51.34 kB / 435.7 MB, free: 2.785 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2781, allocations: 0 / 435.7 MB, free: 2.785 MB / 302.1 MB Notification: Performance of Templates: time 0.0123/0.2904, allocations: 7.829 MB / 443.5 MB, free: 11.01 MB / 318.1 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.makefile (rm -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.sim & ./AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe 2>&1)