Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.SignalBasedCorrelations.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.SignalBasedCorrelations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.SignalBasedCorrelations") translateModel(AdvancedNoise.Examples.SignalBasedCorrelations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.SignalBasedCorrelations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 105.8 kB / 16.41 MB, free: 6.488 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.001053/0.001053, allocations: 185.6 kB / 17.34 MB, free: 5.766 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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02534/0.02534, allocations: 3.898 MB / 295.1 MB, free: 11.05 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001224, allocations: 66.58 kB / 407.6 MB, free: 28.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09106/0.0923, allocations: 50.19 MB / 457.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.002855/0.09518, allocations: 2.034 MB / 459.8 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002917/0.09812, allocations: 1.655 MB / 461.5 MB, free: 6.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.09828, allocations: 0 / 461.5 MB, free: 6.324 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.09849, allocations: 47.47 kB / 461.5 MB, free: 6.277 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007308/0.09926, allocations: 259 kB / 461.8 MB, free: 6.023 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/Generators/QuickXorshift64star/package.mo:6:13-93:19:writable] Warning: Pure function 'AdvancedNoise.Examples.SignalBasedCorrelations.noise1.generator.initialState' contains a call to impure function 'AdvancedNoise.Examples.SignalBasedCorrelations.noise1.generator.random'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/Sources/SignalBasedNoise.mo:250:3-261:19:writable] Warning: Pure function 'AdvancedNoise.Examples.SignalBasedCorrelations.noise1.initialState' contains a call to impure function 'AdvancedNoise.Examples.SignalBasedCorrelations.noise1.convertRealToIntegers'. [/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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/Generators/QuickXorshift64star/package.mo:6:13-93:19:writable] Warning: Pure function 'AdvancedNoise.Examples.SignalBasedCorrelations.noise2.generator.initialState' contains a call to impure function 'AdvancedNoise.Examples.SignalBasedCorrelations.noise2.generator.random'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/Sources/SignalBasedNoise.mo:250:3-261:19:writable] Warning: Pure function 'AdvancedNoise.Examples.SignalBasedCorrelations.noise2.initialState' contains a call to impure function 'AdvancedNoise.Examples.SignalBasedCorrelations.noise2.convertRealToIntegers'. Notification: Performance of NFTyping.typeClassSections: time 0.0009548/0.1002, allocations: 390.9 kB / 462.1 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005836/0.1008, allocations: 0.5966 MB / 462.7 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000217/0.101, allocations: 111.4 kB / 462.8 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002157/0.1013, allocations: 223.3 kB / 463.1 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003068/0.1016, allocations: 283 kB / 463.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.505e-05/0.1017, allocations: 60 kB / 463.4 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000661/0.1023, allocations: 419.5 kB / 463.8 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.1025, allocations: 139.6 kB / 463.9 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001957/0.1027, allocations: 214.9 kB / 464.2 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008095/0.1035, allocations: 0.7558 MB / 464.9 MB, free: 2.859 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1035, allocations: 4 kB / 464.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1035, allocations: 0 / 464.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.239e-05/0.1036, allocations: 0 / 464.9 MB, free: 2.855 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.001244/0.1048, allocations: 0.7081 MB / 465.6 MB, free: 2.094 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.1048, allocations: 8.031 kB / 465.6 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001214/0.1061, allocations: 164.3 kB / 465.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006537/0.1067, allocations: 371.1 kB / 466.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.52e-05/0.1068, allocations: 33.03 kB / 466.2 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.494e-05/0.1069, allocations: 36.38 kB / 466.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/0.108, allocations: 478.3 kB / 466.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.108, allocations: 4.188 kB / 466.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.156e-05/0.1081, allocations: 23.86 kB / 466.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.1081, allocations: 11.98 kB / 466.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001352/0.1095, allocations: 0.5061 MB / 467.2 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001985/0.1115, allocations: 1.202 MB / 468.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001375/0.1128, allocations: 0.5036 MB / 468.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006787/0.1135, allocations: 281.5 kB / 469.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.233e-05/0.1136, allocations: 12.36 kB / 469.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.1136, allocations: 38.88 kB / 469.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.114e-06/0.1136, allocations: 4 kB / 469.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002304/0.116, allocations: 0.8335 MB / 470.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/0.116, allocations: 59.41 kB / 470.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002392/0.1163, allocations: 236.8 kB / 470.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.862e-05/0.1163, allocations: 33.7 kB / 470.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.202e-05/0.1164, allocations: 164.9 kB / 470.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.1166, allocations: 153.7 kB / 470.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001992/0.1168, allocations: 110.2 kB / 470.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1169, allocations: 350.7 kB / 471.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006808/0.1176, allocations: 265 kB / 471.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006867/0.1183, allocations: 264.9 kB / 471.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001299/0.1196, allocations: 0.5018 MB / 472.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1196, allocations: 0 / 472.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001677/0.1213, allocations: 0.6703 MB / 472.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.1213, allocations: 4 kB / 472.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.1213, allocations: 0 / 472.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.1213, allocations: 4 kB / 472.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007981/0.1221, allocations: 147.8 kB / 473 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.126e-06/0.1222, allocations: 4 kB / 473 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003515/0.1225, allocations: 55.5 kB / 473.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001236/0.1227, allocations: 77.64 kB / 473.2 MB, free: 10.38 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: 6 (globalSeed.seed,noise2.actualGlobalSeed,globalSeed.id_impure,noise1.actualGlobalSeed,noise2.localSeed,noise1.localSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * 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.0002236/0.1229, allocations: 170.2 kB / 473.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.328e-05/0.123, allocations: 31.62 kB / 473.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00184/0.1248, allocations: 0.679 MB / 474 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.1249, allocations: 4 kB / 474 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1249, allocations: 0 / 474 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.1249, allocations: 7.984 kB / 474 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006382/0.1255, allocations: 0.5753 MB / 474.6 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.1255, allocations: 0 / 474.6 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007722/0.1263, allocations: 119.8 kB / 474.7 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.1263, allocations: 0 / 474.7 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.69e-05/0.1264, allocations: 19.97 kB / 474.8 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.1264, allocations: 0 / 474.8 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.1264, allocations: 4 kB / 474.8 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002425/0.1288, allocations: 1.041 MB / 475.8 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.961e-05/0.1289, allocations: 112.6 kB / 475.9 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.272e-05/0.129, allocations: 11.98 kB / 475.9 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003683/0.1294, allocations: 27.97 kB / 476 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.1295, allocations: 52.36 kB / 476 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.1296, allocations: 71.89 kB / 476.1 MB, free: 7.363 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00015/0.1298, allocations: 160.4 kB / 476.2 MB, free: 7.207 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1298, allocations: 0 / 476.2 MB, free: 7.207 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006033/0.1304, allocations: 163.9 kB / 476.4 MB, free: 7.047 MB / 350.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: 2 (noise1.localSeed,noise2.localSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006739/0.1311, allocations: 354.2 kB / 476.7 MB, free: 6.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.1327, allocations: 0.603 MB / 477.3 MB, free: 6.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1327, allocations: 3.938 kB / 477.3 MB, free: 6.141 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007688/0.1335, allocations: 322.3 kB / 477.7 MB, free: 5.824 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003391/0.1338, allocations: 28.42 kB / 477.7 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.1355, allocations: 0.9214 MB / 478.6 MB, free: 4.844 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003304/0.1359, allocations: 0.7997 MB / 479.4 MB, free: 4.008 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002808/0.1362, allocations: 59.38 kB / 479.5 MB, free: 3.949 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1362, allocations: 0 / 479.5 MB, free: 3.949 MB / 350.1 MB Notification: Performance of Templates: time 0.0126/0.1488, allocations: 8.132 MB / 487.6 MB, free: 11.84 MB / 366.1 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.SignalBasedCorrelations.makefile (rm -f AdvancedNoise_AdvancedNoise.Examples.SignalBasedCorrelations.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.SignalBasedCorrelations.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.SignalBasedCorrelations.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.SignalBasedCorrelations.sim & ./AdvancedNoise_AdvancedNoise.Examples.SignalBasedCorrelations -abortSlowSimulation -alarm=480 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.SignalBasedCorrelations.pipe 2>&1)