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: "" <> buildModelFMU(AdvancedNoise.Examples.SignalBasedCorrelations,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_SignalBasedCorrelations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.SignalBasedCorrelations,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_SignalBasedCorrelations",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00726/0.00726, allocations: 96.73 kB / 15.73 MB, free: 6.043 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.001862/0.001862, allocations: 196.7 kB / 16.67 MB, free: 5.969 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1297/0.1297, allocations: 3.881 MB / 294.4 MB, free: 3.176 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 59.89 kB / 406.4 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2409, allocations: 50.18 MB / 456.6 MB, free: 20.44 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.003106/0.244, allocations: 2.03 MB / 458.6 MB, free: 19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002588/0.2466, allocations: 1.66 MB / 460.3 MB, free: 17.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.2467, allocations: 7 kB / 460.3 MB, free: 17.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001947/0.2469, allocations: 45.34 kB / 460.3 MB, free: 17.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006695/0.2476, allocations: 256.5 kB / 460.6 MB, free: 17.71 MB / 350.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.0009203/0.2485, allocations: 399.3 kB / 461 MB, free: 17.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005497/0.2491, allocations: 0.5951 MB / 461.6 MB, free: 17.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001922/0.2493, allocations: 68.69 kB / 461.6 MB, free: 17.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002183/0.2495, allocations: 227.2 kB / 461.9 MB, free: 17.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002918/0.2498, allocations: 278.6 kB / 462.1 MB, free: 16.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.046e-05/0.2498, allocations: 63.47 kB / 462.2 MB, free: 16.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007219/0.2506, allocations: 421.5 kB / 462.6 MB, free: 16.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.2507, allocations: 141.1 kB / 462.8 MB, free: 16.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001824/0.2509, allocations: 212.1 kB / 463 MB, free: 16.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001062/0.252, allocations: 0.7612 MB / 463.7 MB, free: 16.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.252, allocations: 0 / 463.7 MB, free: 16.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.252, allocations: 0 / 463.7 MB, free: 16.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.252, allocations: 3.094 kB / 463.7 MB, free: 16.23 MB / 350.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.00124/0.2532, allocations: 0.7197 MB / 464.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.2533, allocations: 12.44 kB / 464.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.932e-05/0.2534, allocations: 68.23 kB / 464.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001233/0.2546, allocations: 157.7 kB / 464.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000616/0.2552, allocations: 377.7 kB / 465 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.14e-05/0.2553, allocations: 35.72 kB / 465.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.645e-05/0.2553, allocations: 42.53 kB / 465.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001067/0.2564, allocations: 473.3 kB / 465.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.2564, allocations: 3.938 kB / 465.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.677e-05/0.2565, allocations: 10.72 kB / 465.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.2565, allocations: 12.03 kB / 465.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.2579, allocations: 0.5118 MB / 466.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00205/0.2599, allocations: 1.202 MB / 467.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001412/0.2613, allocations: 495.5 kB / 467.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006626/0.262, allocations: 263.7 kB / 468.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.63e-05/0.2621, allocations: 10.41 kB / 468.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/0.2621, allocations: 38.17 kB / 468.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.524e-06/0.2621, allocations: 0 / 468.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002343/0.2644, allocations: 0.8355 MB / 468.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.855e-05/0.2645, allocations: 59.62 kB / 469 MB, free: 13.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002314/0.2647, allocations: 226.2 kB / 469.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.39e-05/0.2648, allocations: 35.95 kB / 469.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.055e-05/0.2649, allocations: 165.3 kB / 469.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.265, allocations: 167.7 kB / 469.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.2652, allocations: 110 kB / 469.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.729e-05/0.2653, allocations: 345 kB / 470 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006631/0.2659, allocations: 266.2 kB / 470.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006808/0.2666, allocations: 271.1 kB / 470.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/0.2679, allocations: 0.505 MB / 471.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.2679, allocations: 0 / 471.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001626/0.2695, allocations: 0.6755 MB / 471.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.2695, allocations: 5.188 kB / 471.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2695, allocations: 0 / 471.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.2696, allocations: 2.906 kB / 471.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007896/0.2704, allocations: 149.8 kB / 471.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.2704, allocations: 7.469 kB / 471.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003476/0.2707, allocations: 58.22 kB / 472 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/0.2708, allocations: 68.64 kB / 472 MB, free: 11.87 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.0001856/0.271, allocations: 172.5 kB / 472.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.784e-05/0.2711, allocations: 30 kB / 472.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001779/0.2729, allocations: 0.6743 MB / 472.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.533e-06/0.2729, allocations: 4.062 kB / 472.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.2729, allocations: 5.25 kB / 472.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.2729, allocations: 6.891 kB / 472.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006438/0.2736, allocations: 0.5771 MB / 473.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.2736, allocations: 0 / 473.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007801/0.2743, allocations: 118.6 kB / 473.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.411e-06/0.2743, allocations: 2.5 kB / 473.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.854e-05/0.2744, allocations: 20.88 kB / 473.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.2744, allocations: 2.594 kB / 473.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2744, allocations: 0 / 473.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002278/0.2767, allocations: 1.04 MB / 474.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.612e-05/0.2767, allocations: 120.1 kB / 474.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.115e-05/0.2768, allocations: 11.47 kB / 474.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003603/0.2772, allocations: 26.39 kB / 474.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.2773, allocations: 54.86 kB / 474.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001126/0.2774, allocations: 73.72 kB / 475 MB, free: 10.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000132/0.2776, allocations: 162.4 kB / 475.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2776, allocations: 2.031 kB / 475.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006408/0.2782, allocations: 166.2 kB / 475.3 MB, free: 10.25 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.003145/0.2813, allocations: 1.821 MB / 477.1 MB, free: 9.148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.283, allocations: 0.5819 MB / 477.7 MB, free: 8.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.283, allocations: 4 kB / 477.7 MB, free: 8.957 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007659/0.2837, allocations: 308.5 kB / 478 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003446/0.2841, allocations: 33.36 kB / 478 MB, free: 8.836 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006724/0.2908, allocations: 4.108 MB / 482.1 MB, free: 6.492 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/0.2911, allocations: 0.8029 MB / 482.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003938/0.2915, allocations: 89.64 kB / 483 MB, free: 5.746 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002889/0.2917, allocations: 142 kB / 483.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2917, allocations: 0.9062 kB / 483.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03506/0.3268, allocations: 10.81 MB / 494 MB, free: 14.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.846/9.173, allocations: 0 / 494 MB, free: 14.71 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_SignalBasedCorrelations_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_SignalBasedCorrelations.fmu > AdvancedNoise_AdvancedNoise.Examples.SignalBasedCorrelations.pipe 2>&1)