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.006403/0.006403, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001254/0.001254, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.344/1.344, allocations: 222.9 MB / 240.3 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02488/0.02488, allocations: 3.909 MB / 294.4 MB, free: 11.02 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 59.91 kB / 406.9 MB, free: 28.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09392/0.0951, allocations: 50.18 MB / 457.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.003825/0.099, allocations: 2.029 MB / 459.1 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002978/0.102, allocations: 1.655 MB / 460.8 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.1022, allocations: 8 kB / 460.8 MB, free: 6.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001992/0.1024, allocations: 43.42 kB / 460.8 MB, free: 6.258 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007172/0.1032, allocations: 251.1 kB / 461.1 MB, free: 6.012 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.000959/0.1041, allocations: 390.9 kB / 461.4 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000573/0.1047, allocations: 0.6005 MB / 462 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.1049, allocations: 107.4 kB / 462.2 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002254/0.1052, allocations: 223.3 kB / 462.4 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003042/0.1055, allocations: 283 kB / 462.6 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001023/0.1056, allocations: 60 kB / 462.7 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007065/0.1063, allocations: 419.4 kB / 463.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001353/0.1065, allocations: 135.7 kB / 463.2 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002036/0.1067, allocations: 215 kB / 463.5 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008987/0.1076, allocations: 0.7598 MB / 464.2 MB, free: 2.848 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1076, allocations: 4 kB / 464.2 MB, free: 2.844 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1076, allocations: 0 / 464.2 MB, free: 2.844 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.1076, allocations: 0 / 464.2 MB, free: 2.844 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.001365/0.109, allocations: 0.7056 MB / 464.9 MB, free: 2.086 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.109, allocations: 8.031 kB / 464.9 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001237/0.1103, allocations: 168.2 kB / 465.1 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007128/0.111, allocations: 363.2 kB / 465.5 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.782e-05/0.1111, allocations: 37.03 kB / 465.5 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.1112, allocations: 44.3 kB / 465.5 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/0.1123, allocations: 474.3 kB / 466 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.1123, allocations: 192 / 466 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.779e-05/0.1124, allocations: 19.94 kB / 466 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.1124, allocations: 11.98 kB / 466 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001375/0.1138, allocations: 0.5139 MB / 466.5 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002181/0.116, allocations: 1.202 MB / 467.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.1175, allocations: 0.5036 MB / 468.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000734/0.1183, allocations: 277.4 kB / 468.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.881e-05/0.1184, allocations: 28.28 kB / 468.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.418e-05/0.1184, allocations: 42.94 kB / 468.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.865e-06/0.1184, allocations: 3.938 kB / 468.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002447/0.1209, allocations: 0.8219 MB / 469.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/0.121, allocations: 55.41 kB / 469.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.1212, allocations: 232.9 kB / 469.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.715e-05/0.1213, allocations: 33.7 kB / 469.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.1214, allocations: 164.9 kB / 469.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.1215, allocations: 157.7 kB / 470 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002006/0.1217, allocations: 110.2 kB / 470.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1219, allocations: 350.7 kB / 470.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007095/0.1226, allocations: 265 kB / 470.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007388/0.1234, allocations: 272.9 kB / 471 MB, free: 11.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001377/0.1247, allocations: 0.5017 MB / 471.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1248, allocations: 0 / 471.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001683/0.1265, allocations: 0.6665 MB / 472.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.1265, allocations: 8 kB / 472.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.1265, allocations: 0 / 472.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.1265, allocations: 4 kB / 472.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008059/0.1273, allocations: 147.7 kB / 472.3 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.1274, allocations: 0 / 472.3 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003602/0.1277, allocations: 55.5 kB / 472.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.1278, allocations: 75.83 kB / 472.5 MB, free: 10.36 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.0002362/0.1281, allocations: 170.1 kB / 472.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.887e-05/0.1282, allocations: 31.62 kB / 472.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001822/0.13, allocations: 0.6752 MB / 473.3 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.13, allocations: 4 kB / 473.3 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.13, allocations: 0 / 473.3 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.1301, allocations: 3.984 kB / 473.4 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006918/0.1308, allocations: 0.5714 MB / 473.9 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1308, allocations: 0 / 473.9 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007779/0.1316, allocations: 119.8 kB / 474 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.1316, allocations: 0 / 474 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.02e-05/0.1316, allocations: 31.91 kB / 474.1 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.1317, allocations: 0 / 474.1 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1317, allocations: 4 kB / 474.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002449/0.1341, allocations: 1.037 MB / 475.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.469e-05/0.1342, allocations: 108.6 kB / 475.2 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.578e-05/0.1343, allocations: 12 kB / 475.2 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003769/0.1347, allocations: 31.97 kB / 475.3 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/0.1348, allocations: 60.34 kB / 475.3 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001304/0.135, allocations: 65.8 kB / 475.4 MB, free: 7.352 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001508/0.1351, allocations: 164.4 kB / 475.5 MB, free: 7.191 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1352, allocations: 0 / 475.5 MB, free: 7.191 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000665/0.1358, allocations: 163.8 kB / 475.7 MB, free: 7.031 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.0007847/0.1366, allocations: 352.9 kB / 476.1 MB, free: 6.734 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001704/0.1383, allocations: 0.6108 MB / 476.7 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1383, allocations: 0 / 476.7 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007948/0.1391, allocations: 322.3 kB / 477 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003617/0.1395, allocations: 25.84 kB / 477 MB, free: 5.781 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.1413, allocations: 0.8924 MB / 477.9 MB, free: 4.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004136/0.1417, allocations: 0.8075 MB / 478.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00042/0.1422, allocations: 102.8 kB / 478.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002285/0.1424, allocations: 55.38 kB / 478.9 MB, free: 3.859 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1424, allocations: 4 kB / 478.9 MB, free: 3.855 MB / 350.1 MB Notification: Performance of Templates: time 0.01403/0.1564, allocations: 7.297 MB / 486.2 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)