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.00635/0.00635, allocations: 98.3 kB / 15.73 MB, free: 6.012 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.001447/0.001447, allocations: 193.2 kB / 16.67 MB, free: 5.949 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.452/1.452, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1493/0.1493, allocations: 3.884 MB / 294.4 MB, free: 3.227 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001998/0.001998, allocations: 71.89 kB / 406.4 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2685, allocations: 50.17 MB / 456.6 MB, free: 20.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.003137/0.2717, allocations: 2.035 MB / 458.6 MB, free: 18.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002596/0.2743, allocations: 1.666 MB / 460.3 MB, free: 17.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001561/0.2746, allocations: 0 / 460.3 MB, free: 17.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001887/0.2748, allocations: 45.14 kB / 460.3 MB, free: 17.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006678/0.2754, allocations: 243.4 kB / 460.6 MB, free: 17.66 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.0008588/0.2763, allocations: 387.6 kB / 461 MB, free: 17.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004936/0.2768, allocations: 0.5997 MB / 461.6 MB, free: 17.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001838/0.277, allocations: 113.6 kB / 461.7 MB, free: 17.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.2772, allocations: 222.6 kB / 461.9 MB, free: 16.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003222/0.2775, allocations: 278.7 kB / 462.2 MB, free: 16.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.269e-05/0.2776, allocations: 63.03 kB / 462.2 MB, free: 16.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008225/0.2785, allocations: 421.3 kB / 462.6 MB, free: 16.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001382/0.2786, allocations: 131.5 kB / 462.8 MB, free: 16.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.2788, allocations: 221 kB / 463 MB, free: 16.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001253/0.2801, allocations: 0.76 MB / 463.7 MB, free: 16.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.2801, allocations: 0 / 463.7 MB, free: 16.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2801, allocations: 3.938 kB / 463.7 MB, free: 16.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.191e-05/0.2802, allocations: 0 / 463.7 MB, free: 16.16 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.001569/0.2817, allocations: 0.7215 MB / 464.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.2818, allocations: 8.812 kB / 464.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.465e-05/0.2819, allocations: 70.52 kB / 464.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001347/0.2833, allocations: 163.5 kB / 464.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007015/0.284, allocations: 369.1 kB / 465.1 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.942e-05/0.284, allocations: 34.03 kB / 465.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.2842, allocations: 46.33 kB / 465.1 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.2854, allocations: 479.7 kB / 465.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.2854, allocations: 3.938 kB / 465.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.222e-05/0.2855, allocations: 11.56 kB / 465.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.2855, allocations: 6.562 kB / 465.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001476/0.287, allocations: 0.5197 MB / 466.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002271/0.2892, allocations: 1.198 MB / 467.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001435/0.2907, allocations: 0.5033 MB / 467.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007192/0.2914, allocations: 287.4 kB / 468.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.262e-05/0.2915, allocations: 9.25 kB / 468.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.2915, allocations: 40.12 kB / 468.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.735e-06/0.2915, allocations: 1.25 kB / 468.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002545/0.2941, allocations: 0.826 MB / 469 MB, free: 13.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.054e-05/0.2941, allocations: 56.75 kB / 469.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002359/0.2944, allocations: 231.5 kB / 469.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.68e-05/0.2944, allocations: 34.95 kB / 469.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.21e-05/0.2945, allocations: 165.1 kB / 469.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.2947, allocations: 170.3 kB / 469.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002218/0.2949, allocations: 110.5 kB / 469.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.82e-05/0.295, allocations: 345.1 kB / 470.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007081/0.2957, allocations: 274.8 kB / 470.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007234/0.2964, allocations: 267.2 kB / 470.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.2979, allocations: 0.5046 MB / 471.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.2979, allocations: 0 / 471.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.002133/0.3001, allocations: 0.6708 MB / 471.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.492e-05/0.3001, allocations: 8.875 kB / 471.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.3001, allocations: 3.984 kB / 471.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.475e-05/0.3002, allocations: 2.656 kB / 471.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009272/0.3011, allocations: 150.4 kB / 472 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.617e-05/0.3011, allocations: 2.406 kB / 472 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000421/0.3016, allocations: 66.72 kB / 472 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000197/0.3018, allocations: 64.41 kB / 472.1 MB, free: 11.78 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.0003382/0.3021, allocations: 172.1 kB / 472.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.3022, allocations: 30.42 kB / 472.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002109/0.3044, allocations: 0.6772 MB / 473 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.646e-05/0.3044, allocations: 5.438 kB / 473 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.3044, allocations: 0.6562 kB / 473 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.3044, allocations: 6.844 kB / 473 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009075/0.3053, allocations: 0.5655 MB / 473.5 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.3054, allocations: 0.7031 kB / 473.5 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008065/0.3062, allocations: 126.3 kB / 473.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.3062, allocations: 1.906 kB / 473.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.77e-05/0.3063, allocations: 17.14 kB / 473.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.3063, allocations: 2.828 kB / 473.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3063, allocations: 0 / 473.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002604/0.3089, allocations: 1.036 MB / 474.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.452e-05/0.309, allocations: 124.8 kB / 474.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.838e-05/0.3091, allocations: 16.09 kB / 474.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003693/0.3095, allocations: 28.16 kB / 474.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001939/0.3097, allocations: 55.45 kB / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001649/0.3098, allocations: 73.2 kB / 475 MB, free: 10.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001882/0.31, allocations: 162 kB / 475.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.31, allocations: 0 / 475.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007797/0.3108, allocations: 169.1 kB / 475.3 MB, free: 10.16 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.003659/0.3145, allocations: 1.823 MB / 477.2 MB, free: 9.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001839/0.3164, allocations: 0.6053 MB / 477.8 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3164, allocations: 5 kB / 477.8 MB, free: 8.855 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008756/0.3173, allocations: 322.1 kB / 478.1 MB, free: 8.754 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004071/0.3177, allocations: 33.67 kB / 478.1 MB, free: 8.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007678/0.3254, allocations: 4.101 MB / 482.2 MB, free: 6.391 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/0.3257, allocations: 0.805 MB / 483 MB, free: 5.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004707/0.3262, allocations: 88.8 kB / 483.1 MB, free: 5.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000308/0.3265, allocations: 142.3 kB / 483.3 MB, free: 5.559 MB / 350.1 MB Notification: Performance of SimCode: time 1.442e-06/0.3265, allocations: 1.438 kB / 483.3 MB, free: 5.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03973/0.3663, allocations: 10.78 MB / 494 MB, free: 14.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.089/9.455, allocations: 19.72 kB / 494.1 MB, free: 14.62 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)