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.01187/0.01187, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001928/0.001928, allocations: 195.7 kB / 16.67 MB, free: 5.52 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.568/1.568, allocations: 222.9 MB / 240.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02484/0.02484, allocations: 3.903 MB / 294.4 MB, free: 11.05 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 56.12 kB / 406.9 MB, free: 28.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09903/0.1003, allocations: 50.19 MB / 457.1 MB, free: 9.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.00395/0.1042, allocations: 2.029 MB / 459.1 MB, free: 7.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002989/0.1073, allocations: 1.655 MB / 460.8 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000214/0.1075, allocations: 4 kB / 460.8 MB, free: 6.207 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002208/0.1078, allocations: 51.47 kB / 460.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008311/0.1086, allocations: 251 kB / 461.1 MB, free: 5.91 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.001047/0.1097, allocations: 383 kB / 461.4 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007229/0.1104, allocations: 0.6005 MB / 462 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002556/0.1107, allocations: 107.4 kB / 462.2 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003799/0.111, allocations: 231.3 kB / 462.4 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000514/0.1116, allocations: 279 kB / 462.6 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001691/0.1118, allocations: 64 kB / 462.7 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008493/0.1126, allocations: 415.5 kB / 463.1 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001797/0.1128, allocations: 135.6 kB / 463.3 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002486/0.1131, allocations: 218.9 kB / 463.5 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009837/0.114, allocations: 0.752 MB / 464.2 MB, free: 2.754 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.1141, allocations: 3.984 kB / 464.2 MB, free: 2.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1141, allocations: 4 kB / 464.2 MB, free: 2.746 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.1141, allocations: 0 / 464.2 MB, free: 2.746 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.001361/0.1155, allocations: 0.7094 MB / 464.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.1155, allocations: 12.03 kB / 464.9 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00131/0.1168, allocations: 160.3 kB / 465.1 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000757/0.1176, allocations: 371.1 kB / 465.5 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.963e-05/0.1177, allocations: 33.03 kB / 465.5 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.1178, allocations: 40.36 kB / 465.5 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.119, allocations: 478.3 kB / 466 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.119, allocations: 192 / 466 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.579e-05/0.1191, allocations: 15.94 kB / 466 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.1191, allocations: 8 kB / 466 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001382/0.1205, allocations: 0.5256 MB / 466.6 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002536/0.123, allocations: 1.194 MB / 467.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001583/0.1246, allocations: 0.5076 MB / 468.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007432/0.1254, allocations: 281.4 kB / 468.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.929e-05/0.1254, allocations: 16.28 kB / 468.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001505/0.1256, allocations: 42.94 kB / 468.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.775e-06/0.1256, allocations: 0 / 468.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002664/0.1283, allocations: 0.8257 MB / 469.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.771e-05/0.1284, allocations: 55.41 kB / 469.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000307/0.1287, allocations: 236.9 kB / 469.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.88e-05/0.1288, allocations: 37.7 kB / 469.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.1289, allocations: 160.9 kB / 469.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001526/0.129, allocations: 157.7 kB / 470 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002118/0.1293, allocations: 110.2 kB / 470.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.1294, allocations: 350.7 kB / 470.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00072/0.1301, allocations: 261 kB / 470.8 MB, free: 12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007761/0.1309, allocations: 276.9 kB / 471 MB, free: 11.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001397/0.1323, allocations: 0.4979 MB / 471.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.1323, allocations: 4 kB / 471.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001892/0.1342, allocations: 0.6664 MB / 472.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.29e-05/0.1343, allocations: 4 kB / 472.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/0.1343, allocations: 4 kB / 472.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.595e-05/0.1344, allocations: 4 kB / 472.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008289/0.1352, allocations: 143.8 kB / 472.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.348e-05/0.1352, allocations: 0 / 472.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003956/0.1356, allocations: 59.5 kB / 472.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/0.1358, allocations: 77.8 kB / 472.5 MB, free: 10.26 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.0002498/0.136, allocations: 166.2 kB / 472.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/0.1362, allocations: 31.62 kB / 472.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001903/0.1381, allocations: 0.6751 MB / 473.3 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.1381, allocations: 7.984 kB / 473.4 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.1381, allocations: 0 / 473.4 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.1381, allocations: 3.984 kB / 473.4 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000714/0.1388, allocations: 0.5714 MB / 473.9 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.1389, allocations: 4 kB / 473.9 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007535/0.1397, allocations: 115.8 kB / 474 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.668e-06/0.1397, allocations: 4 kB / 474 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.817e-05/0.1398, allocations: 23.97 kB / 474.1 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.109e-06/0.1398, allocations: 8 kB / 474.1 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1398, allocations: 0 / 474.1 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00251/0.1423, allocations: 1.041 MB / 475.1 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.8e-05/0.1424, allocations: 108.6 kB / 475.2 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.031e-05/0.1425, allocations: 12 kB / 475.2 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003794/0.1429, allocations: 27.97 kB / 475.3 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002197/0.1431, allocations: 60.34 kB / 475.3 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/0.1432, allocations: 59.91 kB / 475.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001625/0.1434, allocations: 168.4 kB / 475.5 MB, free: 7.094 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1434, allocations: 192 / 475.5 MB, free: 7.094 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005916/0.144, allocations: 159.8 kB / 475.7 MB, free: 6.938 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.0007524/0.1448, allocations: 352.7 kB / 476 MB, free: 6.641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001689/0.1465, allocations: 0.6069 MB / 476.7 MB, free: 6.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1465, allocations: 0 / 476.7 MB, free: 6.031 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008057/0.1473, allocations: 330.2 kB / 477 MB, free: 5.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003499/0.1476, allocations: 24.44 kB / 477 MB, free: 5.684 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001851/0.1495, allocations: 0.8924 MB / 477.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005108/0.15, allocations: 0.8036 MB / 478.7 MB, free: 3.926 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004524/0.1505, allocations: 98.84 kB / 478.8 MB, free: 3.824 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/0.1507, allocations: 55.39 kB / 478.8 MB, free: 3.77 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1507, allocations: 0 / 478.8 MB, free: 3.77 MB / 350.1 MB Notification: Performance of Templates: time 0.01386/0.1646, allocations: 7.216 MB / 486.1 MB, free: 12.59 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)