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.005512/0.005512, allocations: 100.8 kB / 15.73 MB, free: 6.039 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.002278/0.002279, allocations: 202.2 kB / 16.68 MB, free: 5.965 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.541/1.541, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1523/0.1523, allocations: 3.881 MB / 294.4 MB, free: 3.23 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 63.89 kB / 406.4 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2924, allocations: 50.18 MB / 456.6 MB, free: 20.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.002824/0.2953, allocations: 2.026 MB / 458.6 MB, free: 19.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003108/0.2984, allocations: 1.656 MB / 460.3 MB, free: 17.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000216/0.2987, allocations: 7.062 kB / 460.3 MB, free: 17.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003451/0.299, allocations: 45.19 kB / 460.3 MB, free: 17.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009294/0.3, allocations: 248.1 kB / 460.6 MB, free: 17.74 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.001091/0.3011, allocations: 396.8 kB / 461 MB, free: 17.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005379/0.3017, allocations: 0.598 MB / 461.6 MB, free: 17.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001958/0.3019, allocations: 108 kB / 461.7 MB, free: 17.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002643/0.3021, allocations: 224.2 kB / 461.9 MB, free: 17.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003987/0.3025, allocations: 280.8 kB / 462.2 MB, free: 16.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.007e-05/0.3026, allocations: 61.38 kB / 462.2 MB, free: 16.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008506/0.3035, allocations: 418.8 kB / 462.6 MB, free: 16.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001683/0.3037, allocations: 141 kB / 462.8 MB, free: 16.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002251/0.3039, allocations: 211.2 kB / 463 MB, free: 16.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001578/0.3055, allocations: 0.758 MB / 463.7 MB, free: 16.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.05e-05/0.3055, allocations: 7.156 kB / 463.7 MB, free: 16.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.3055, allocations: 0 / 463.7 MB, free: 16.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.309e-05/0.3055, allocations: 0 / 463.7 MB, free: 16.24 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.001817/0.3074, allocations: 0.7245 MB / 464.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.345e-05/0.3075, allocations: 8.781 kB / 464.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001234/0.3076, allocations: 68.03 kB / 464.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001385/0.309, allocations: 162 kB / 464.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006979/0.3097, allocations: 366.5 kB / 465.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.384e-05/0.3098, allocations: 36.86 kB / 465.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.3099, allocations: 40.92 kB / 465.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.3112, allocations: 479.8 kB / 465.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.3112, allocations: 7.875 kB / 465.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.4e-05/0.3113, allocations: 11.53 kB / 465.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.3113, allocations: 10.83 kB / 465.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/0.3129, allocations: 0.5204 MB / 466.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002384/0.3153, allocations: 1.2 MB / 467.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001459/0.3168, allocations: 0.5071 MB / 467.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007051/0.3175, allocations: 276.6 kB / 468.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.134e-05/0.3175, allocations: 12.34 kB / 468.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.3176, allocations: 37.73 kB / 468.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.154e-06/0.3176, allocations: 0 / 468.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002504/0.3201, allocations: 0.8342 MB / 469 MB, free: 13.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.3201, allocations: 56.53 kB / 469.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002578/0.3204, allocations: 234.6 kB / 469.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.978e-05/0.3205, allocations: 36.23 kB / 469.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.881e-05/0.3206, allocations: 169.2 kB / 469.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.3207, allocations: 163 kB / 469.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002196/0.3209, allocations: 109.8 kB / 469.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.942e-05/0.321, allocations: 348.2 kB / 470.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007319/0.3217, allocations: 258.9 kB / 470.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007299/0.3225, allocations: 275.1 kB / 470.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/0.3239, allocations: 0.5057 MB / 471.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.3239, allocations: 4 kB / 471.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001726/0.3256, allocations: 0.671 MB / 471.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.3256, allocations: 5.719 kB / 471.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.3257, allocations: 0 / 471.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.591e-05/0.3257, allocations: 2.438 kB / 471.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008623/0.3266, allocations: 146.8 kB / 472 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.3266, allocations: 2.594 kB / 472 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004009/0.327, allocations: 61 kB / 472 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001461/0.3271, allocations: 71.39 kB / 472.1 MB, free: 11.86 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.0002312/0.3274, allocations: 172.6 kB / 472.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.644e-05/0.3275, allocations: 29.53 kB / 472.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001923/0.3294, allocations: 0.6819 MB / 473 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.3294, allocations: 5.641 kB / 473 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.3294, allocations: 0 / 473 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.3295, allocations: 6.703 kB / 473 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006991/0.3302, allocations: 0.5696 MB / 473.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3302, allocations: 0 / 473.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008656/0.331, allocations: 119 kB / 473.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/0.3311, allocations: 6.188 kB / 473.7 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.156e-05/0.3311, allocations: 20.84 kB / 473.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.3311, allocations: 2.844 kB / 473.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3312, allocations: 4.641 kB / 473.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002683/0.3338, allocations: 1.038 MB / 474.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.102e-05/0.3339, allocations: 115.1 kB / 474.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.341e-05/0.334, allocations: 11.16 kB / 474.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000383/0.3344, allocations: 36.92 kB / 474.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.3346, allocations: 51.42 kB / 474.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000132/0.3347, allocations: 72.5 kB / 475 MB, free: 10.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000199/0.3349, allocations: 161.8 kB / 475.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3349, allocations: 0 / 475.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007487/0.3357, allocations: 164 kB / 475.3 MB, free: 10.24 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.003363/0.3391, allocations: 1.819 MB / 477.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.3408, allocations: 0.6048 MB / 477.8 MB, free: 8.941 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3408, allocations: 1.25 kB / 477.8 MB, free: 8.941 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008178/0.3416, allocations: 333.8 kB / 478.1 MB, free: 8.828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003648/0.342, allocations: 39.48 kB / 478.1 MB, free: 8.805 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007144/0.3492, allocations: 4.098 MB / 482.2 MB, free: 6.469 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003077/0.3495, allocations: 0.8003 MB / 483 MB, free: 5.762 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004344/0.35, allocations: 101 kB / 483.1 MB, free: 5.715 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003022/0.3503, allocations: 142.1 kB / 483.3 MB, free: 5.629 MB / 350.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3503, allocations: 0 / 483.3 MB, free: 5.629 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03339/0.3837, allocations: 10.79 MB / 494 MB, free: 14.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.474/8.858, allocations: 11.78 kB / 494.1 MB, free: 14.64 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 & python3 -m fmpy simulate --output-file AdvancedNoise_AdvancedNoise.Examples.SignalBasedCorrelations_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 AdvancedNoise_AdvancedNoise_Examples_SignalBasedCorrelations.fmu > AdvancedNoise_AdvancedNoise.Examples.SignalBasedCorrelations.pipe 2>&1)