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.00173/0.00173, allocations: 110.9 kB / 16.41 MB, free: 5.914 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.001896/0.001896, allocations: 190.2 kB / 17.34 MB, free: 5.559 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.444/1.444, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02698/0.02698, allocations: 3.915 MB / 295.1 MB, free: 11.02 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 64.11 kB / 407.6 MB, free: 28.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1059, allocations: 50.18 MB / 457.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.003629/0.1096, allocations: 2.025 MB / 459.8 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003472/0.1131, allocations: 1.666 MB / 461.5 MB, free: 6.305 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.1133, allocations: 3.938 kB / 461.5 MB, free: 6.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002149/0.1135, allocations: 47.47 kB / 461.5 MB, free: 6.254 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007588/0.1143, allocations: 255 kB / 461.8 MB, free: 6.004 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.001089/0.1154, allocations: 390.9 kB / 462.1 MB, free: 5.621 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007656/0.1162, allocations: 0.5966 MB / 462.7 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002812/0.1165, allocations: 103.4 kB / 462.8 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002886/0.1168, allocations: 223.3 kB / 463.1 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003509/0.1171, allocations: 283 kB / 463.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.298e-05/0.1172, allocations: 60 kB / 463.4 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007561/0.118, allocations: 419.4 kB / 463.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.1181, allocations: 143.6 kB / 463.9 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002345/0.1184, allocations: 214.9 kB / 464.2 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001069/0.1195, allocations: 0.7593 MB / 464.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1195, allocations: 0 / 464.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1195, allocations: 4 kB / 464.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.1195, allocations: 0 / 464.9 MB, free: 2.836 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.001493/0.121, allocations: 0.7239 MB / 465.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.1211, allocations: 8.031 kB / 465.7 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00127/0.1223, allocations: 168.4 kB / 465.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007352/0.1231, allocations: 363.3 kB / 466.2 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.247e-05/0.1232, allocations: 41.02 kB / 466.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.693e-05/0.1233, allocations: 40.33 kB / 466.3 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.1245, allocations: 474.3 kB / 466.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.1245, allocations: 192 / 466.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.815e-05/0.1246, allocations: 23.92 kB / 466.7 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.1246, allocations: 4 kB / 466.7 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001466/0.126, allocations: 0.5178 MB / 467.3 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002482/0.1285, allocations: 1.21 MB / 468.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001577/0.1301, allocations: 0.4997 MB / 469 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008062/0.131, allocations: 277.5 kB / 469.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.65e-05/0.131, allocations: 28.28 kB / 469.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.1311, allocations: 38.88 kB / 469.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.545e-06/0.1311, allocations: 0 / 469.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002583/0.1337, allocations: 0.8298 MB / 470.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.979e-05/0.1338, allocations: 63.34 kB / 470.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003073/0.1341, allocations: 229 kB / 470.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.591e-05/0.1341, allocations: 33.7 kB / 470.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/0.1343, allocations: 165.1 kB / 470.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/0.1345, allocations: 166.5 kB / 470.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000225/0.1347, allocations: 110.2 kB / 470.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002189/0.1349, allocations: 350.7 kB / 471.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007403/0.1357, allocations: 261 kB / 471.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000778/0.1365, allocations: 276.9 kB / 471.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001442/0.1379, allocations: 0.4979 MB / 472.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.1379, allocations: 0 / 472.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001929/0.1399, allocations: 0.6744 MB / 472.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.1399, allocations: 4 kB / 472.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.1399, allocations: 3.938 kB / 472.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.1399, allocations: 4 kB / 472.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008161/0.1408, allocations: 139.8 kB / 473.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.1408, allocations: 4 kB / 473.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003689/0.1412, allocations: 55.64 kB / 473.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001466/0.1413, allocations: 79.77 kB / 473.2 MB, free: 10.31 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.0002617/0.1416, allocations: 166.2 kB / 473.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.978e-05/0.1417, allocations: 31.81 kB / 473.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001954/0.1437, allocations: 0.679 MB / 474.1 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.1437, allocations: 4 kB / 474.1 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.218e-06/0.1437, allocations: 3.984 kB / 474.1 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.1437, allocations: 0 / 474.1 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008341/0.1445, allocations: 0.5715 MB / 474.7 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.1446, allocations: 0 / 474.7 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007788/0.1453, allocations: 119.8 kB / 474.8 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.073e-05/0.1454, allocations: 7.984 kB / 474.8 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001382/0.1455, allocations: 19.98 kB / 474.8 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.1455, allocations: 0 / 474.8 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.1455, allocations: 0 / 474.8 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002573/0.1481, allocations: 1.042 MB / 475.8 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.481e-05/0.1482, allocations: 108.8 kB / 476 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.628e-05/0.1483, allocations: 12 kB / 476 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003759/0.1487, allocations: 35.95 kB / 476 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.1489, allocations: 52.36 kB / 476.1 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001266/0.149, allocations: 67.89 kB / 476.1 MB, free: 7.309 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001789/0.1492, allocations: 164.4 kB / 476.3 MB, free: 7.148 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1492, allocations: 0 / 476.3 MB, free: 7.148 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006461/0.1498, allocations: 167.6 kB / 476.4 MB, free: 6.984 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.0008711/0.1507, allocations: 350.1 kB / 476.8 MB, free: 6.691 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001752/0.1525, allocations: 0.6147 MB / 477.4 MB, free: 6.074 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/0.1525, allocations: 0 / 477.4 MB, free: 6.074 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008496/0.1534, allocations: 326.2 kB / 477.7 MB, free: 5.754 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003654/0.1537, allocations: 28.38 kB / 477.7 MB, free: 5.727 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001903/0.1557, allocations: 0.8953 MB / 478.6 MB, free: 4.805 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004852/0.1562, allocations: 0.8114 MB / 479.5 MB, free: 3.957 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004426/0.1566, allocations: 94.84 kB / 479.5 MB, free: 3.859 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002678/0.1569, allocations: 55.38 kB / 479.6 MB, free: 3.805 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1569, allocations: 3.938 kB / 479.6 MB, free: 3.801 MB / 350.1 MB Notification: Performance of Templates: time 0.01391/0.1708, allocations: 7.213 MB / 486.8 MB, free: 12.61 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 -s gbode -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.SignalBasedCorrelations.pipe 2>&1)