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.004984/0.004984, allocations: 100.6 kB / 15.73 MB, free: 6.016 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.001339/0.001339, allocations: 189.8 kB / 16.67 MB, free: 5.934 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02691/0.02691, allocations: 3.898 MB / 294.4 MB, free: 11 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 60.14 kB / 406.4 MB, free: 28.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.102, allocations: 50.18 MB / 456.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.003314/0.1053, allocations: 2.025 MB / 458.6 MB, free: 8.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003016/0.1084, allocations: 1.662 MB / 460.3 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.1086, allocations: 4 kB / 460.3 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001897/0.1088, allocations: 43.47 kB / 460.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007396/0.1095, allocations: 259 kB / 460.6 MB, free: 6.492 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.0009623/0.1105, allocations: 378.9 kB / 461 MB, free: 6.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007479/0.1112, allocations: 0.5966 MB / 461.6 MB, free: 5.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002425/0.1115, allocations: 115.3 kB / 461.7 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002775/0.1118, allocations: 231.3 kB / 461.9 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003608/0.1122, allocations: 275 kB / 462.2 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.874e-05/0.1123, allocations: 64 kB / 462.2 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008453/0.1131, allocations: 419.5 kB / 462.6 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001671/0.1133, allocations: 131.6 kB / 462.8 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002405/0.1135, allocations: 226.9 kB / 463 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001006/0.1146, allocations: 0.7556 MB / 463.7 MB, free: 3.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.1146, allocations: 0 / 463.7 MB, free: 3.328 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1146, allocations: 0 / 463.7 MB, free: 3.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.1146, allocations: 0 / 463.7 MB, free: 3.328 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.001407/0.116, allocations: 0.7278 MB / 464.5 MB, free: 2.547 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.1161, allocations: 8.031 kB / 464.5 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/0.1162, allocations: 74.72 kB / 464.6 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001222/0.1174, allocations: 152.5 kB / 464.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000713/0.1181, allocations: 379.3 kB / 465.1 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.619e-05/0.1182, allocations: 33.03 kB / 465.1 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.364e-05/0.1183, allocations: 40.33 kB / 465.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001161/0.1194, allocations: 486.2 kB / 465.6 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.1195, allocations: 3.938 kB / 465.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.623e-05/0.1195, allocations: 8 kB / 465.6 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.1195, allocations: 15.94 kB / 465.6 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001568/0.1211, allocations: 0.51 MB / 466.2 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002349/0.1235, allocations: 1.206 MB / 467.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001494/0.125, allocations: 0.5036 MB / 467.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007562/0.1258, allocations: 285.5 kB / 468.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.352e-05/0.1258, allocations: 16.34 kB / 468.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.1259, allocations: 34.94 kB / 468.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.364e-06/0.1259, allocations: 0 / 468.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002578/0.1285, allocations: 0.8375 MB / 469 MB, free: 13.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/0.1285, allocations: 59.41 kB / 469.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002587/0.1288, allocations: 225 kB / 469.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.133e-05/0.1289, allocations: 37.7 kB / 469.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.129, allocations: 161.1 kB / 469.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001603/0.1291, allocations: 170.5 kB / 469.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002189/0.1294, allocations: 114.2 kB / 469.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.1295, allocations: 338.8 kB / 470.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007531/0.1303, allocations: 269 kB / 470.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007719/0.1311, allocations: 264.9 kB / 470.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001419/0.1325, allocations: 0.5057 MB / 471.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1325, allocations: 0 / 471.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001804/0.1343, allocations: 0.6705 MB / 471.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.1344, allocations: 8 kB / 471.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.1344, allocations: 0 / 471.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.1344, allocations: 0 / 471.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008578/0.1353, allocations: 151.8 kB / 472 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.622e-05/0.1353, allocations: 4 kB / 472 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000381/0.1357, allocations: 63.56 kB / 472 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/0.1358, allocations: 67.84 kB / 472.1 MB, free: 10.73 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.0002686/0.1361, allocations: 166.2 kB / 472.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.821e-05/0.1362, allocations: 31.81 kB / 472.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001986/0.1382, allocations: 0.6751 MB / 473 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.1382, allocations: 11.94 kB / 473 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1382, allocations: 0 / 473 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.1383, allocations: 7.922 kB / 473 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007991/0.1391, allocations: 0.5717 MB / 473.6 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1391, allocations: 0 / 473.6 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000807/0.1399, allocations: 119.8 kB / 473.7 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.1399, allocations: 0 / 473.7 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.082e-05/0.14, allocations: 19.97 kB / 473.7 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.14, allocations: 0 / 473.7 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.14, allocations: 0 / 473.7 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002596/0.1426, allocations: 1.042 MB / 474.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.1427, allocations: 120.8 kB / 474.9 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.229e-05/0.1428, allocations: 8 kB / 474.9 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003664/0.1432, allocations: 27.97 kB / 474.9 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000174/0.1434, allocations: 52.36 kB / 474.9 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001239/0.1435, allocations: 69.7 kB / 475 MB, free: 7.727 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001723/0.1437, allocations: 172.5 kB / 475.2 MB, free: 7.559 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.004e-06/0.1437, allocations: 0 / 475.2 MB, free: 7.559 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005951/0.1443, allocations: 167.6 kB / 475.3 MB, free: 7.395 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.003716/0.148, allocations: 1.811 MB / 477.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001823/0.1499, allocations: 0.6109 MB / 477.8 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.1499, allocations: 4 kB / 477.8 MB, free: 4.996 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008862/0.1508, allocations: 326.2 kB / 478.1 MB, free: 4.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004063/0.1512, allocations: 37.77 kB / 478.1 MB, free: 4.645 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008117/0.1593, allocations: 4.104 MB / 482.2 MB, free: 460 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004718/0.1598, allocations: 0.8075 MB / 483 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004419/0.1603, allocations: 90.86 kB / 483.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003177/0.1606, allocations: 139.3 kB / 483.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1606, allocations: 0 / 483.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03805/0.1987, allocations: 10.79 MB / 494.1 MB, free: 4.711 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.05/9.249, allocations: 4 kB / 494.1 MB, free: 4.707 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)