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.001708/0.001708, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002128/0.002128, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.394/1.394, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1432/0.1432, allocations: 3.879 MB / 294.3 MB, free: 3.23 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 63.89 kB / 355.6 MB, free: 3.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1016, allocations: 50.19 MB / 405.8 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.004613/0.1062, allocations: 2.024 MB / 407.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003227/0.1095, allocations: 1.655 MB / 409.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001887/0.1097, allocations: 7.938 kB / 409.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002477/0.11, allocations: 47.47 kB / 409.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001101/0.1111, allocations: 247 kB / 409.7 MB, free: 13.31 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.001334/0.1125, allocations: 386.9 kB / 410.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007483/0.1133, allocations: 0.5888 MB / 410.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002792/0.1135, allocations: 117.1 kB / 410.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003563/0.1139, allocations: 227.3 kB / 411 MB, free: 12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003817/0.1143, allocations: 275 kB / 411.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002058/0.1145, allocations: 60 kB / 411.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009814/0.1155, allocations: 423.4 kB / 411.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001742/0.1157, allocations: 143.6 kB / 411.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003478/0.1161, allocations: 211 kB / 412.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.1172, allocations: 0.7445 MB / 412.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.1172, allocations: 0 / 412.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1172, allocations: 11.94 kB / 412.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.1172, allocations: 0 / 412.9 MB, free: 10.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.001707/0.1189, allocations: 0.7043 MB / 413.6 MB, free: 9.398 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.119, allocations: 12.02 kB / 413.6 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000117/0.1191, allocations: 66.73 kB / 413.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001728/0.1209, allocations: 160.3 kB / 413.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009009/0.1218, allocations: 375.1 kB / 414.2 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.571e-05/0.1219, allocations: 33.03 kB / 414.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.122, allocations: 36.38 kB / 414.3 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.1235, allocations: 478.3 kB / 414.7 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/0.1236, allocations: 7.875 kB / 414.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.148e-05/0.1237, allocations: 16 kB / 414.8 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.1237, allocations: 8 kB / 414.8 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001941/0.1256, allocations: 0.5139 MB / 415.3 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002816/0.1285, allocations: 1.205 MB / 416.5 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001931/0.1304, allocations: 0.5076 MB / 417 MB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009656/0.1314, allocations: 277.5 kB / 417.3 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.735e-05/0.1315, allocations: 12.36 kB / 417.3 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.1315, allocations: 34.94 kB / 417.3 MB, free: 5.562 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.465e-06/0.1315, allocations: 4 kB / 417.3 MB, free: 5.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.003344/0.1349, allocations: 0.8296 MB / 418.1 MB, free: 4.723 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.998e-05/0.1349, allocations: 63.39 kB / 418.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002839/0.1352, allocations: 225 kB / 418.4 MB, free: 4.418 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.401e-05/0.1353, allocations: 37.7 kB / 418.5 MB, free: 4.375 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.1354, allocations: 164.8 kB / 418.6 MB, free: 4.211 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/0.1356, allocations: 157.7 kB / 418.8 MB, free: 4.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002721/0.1359, allocations: 106.2 kB / 418.9 MB, free: 3.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002299/0.1361, allocations: 354.7 kB / 419.2 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009915/0.1371, allocations: 260.9 kB / 419.5 MB, free: 3.336 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000986/0.1381, allocations: 276.9 kB / 419.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001958/0.1401, allocations: 0.5018 MB / 420.2 MB, free: 2.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.1401, allocations: 0 / 420.2 MB, free: 2.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.002388/0.1425, allocations: 0.6702 MB / 420.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.1425, allocations: 4 kB / 420.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.1426, allocations: 0 / 420.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.1426, allocations: 8 kB / 420.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/0.1437, allocations: 151.8 kB / 421.1 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.619e-05/0.1437, allocations: 3.984 kB / 421.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000479/0.1442, allocations: 59.53 kB / 421.1 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001561/0.1444, allocations: 67.83 kB / 421.2 MB, free: 1.59 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.0002817/0.1446, allocations: 180.6 kB / 421.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001939/0.1449, allocations: 27.62 kB / 421.4 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002503/0.1474, allocations: 0.6673 MB / 422.1 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.1474, allocations: 8 kB / 422.1 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1474, allocations: 0 / 422.1 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.1474, allocations: 3.938 kB / 422.1 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009702/0.1484, allocations: 0.5792 MB / 422.7 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.1484, allocations: 0 / 422.7 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1663/0.3148, allocations: 114.5 kB / 422.8 MB, free: 49.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.768e-05/0.3148, allocations: 3.5 kB / 422.8 MB, free: 49.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002135/0.3151, allocations: 19.83 kB / 422.8 MB, free: 49.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.085e-06/0.3151, allocations: 0 / 422.8 MB, free: 49.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3151, allocations: 2.75 kB / 422.8 MB, free: 49.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004229/0.3193, allocations: 1.036 MB / 423.8 MB, free: 49.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.3195, allocations: 111.1 kB / 424 MB, free: 49.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.451e-05/0.3196, allocations: 11.52 kB / 424 MB, free: 49.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004311/0.32, allocations: 28.61 kB / 424 MB, free: 49.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001768/0.3202, allocations: 59.08 kB / 424 MB, free: 49.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001319/0.3203, allocations: 66.45 kB / 424.1 MB, free: 49.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001655/0.3205, allocations: 163.8 kB / 424.3 MB, free: 49.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.262e-06/0.3205, allocations: 0 / 424.3 MB, free: 49.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007403/0.3213, allocations: 166.9 kB / 424.4 MB, free: 49.14 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.003469/0.3248, allocations: 1.819 MB / 426.3 MB, free: 48.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00182/0.3266, allocations: 0.6405 MB / 426.9 MB, free: 48.28 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3266, allocations: 0 / 426.9 MB, free: 48.28 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007864/0.3274, allocations: 327.1 kB / 427.2 MB, free: 48.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003833/0.3278, allocations: 38.16 kB / 427.3 MB, free: 48.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007742/0.3355, allocations: 4.098 MB / 431.4 MB, free: 45.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002522/0.3358, allocations: 0.8027 MB / 432.2 MB, free: 45.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004754/0.3363, allocations: 97.48 kB / 432.2 MB, free: 45.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002864/0.3366, allocations: 143.2 kB / 432.4 MB, free: 45.09 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3366, allocations: 0 / 432.4 MB, free: 45.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02868/0.3653, allocations: 10.64 MB / 443 MB, free: 43.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.962/8.328, allocations: 11.12 kB / 443 MB, free: 43.97 MB / 350.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)