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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001718/0.001718, allocations: 212.7 kB / 22.25 MB, free: 4.855 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.441/1.441, allocations: 230.6 MB / 256 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo): time 0.02775/0.02775, allocations: 3.939 MB / 316.4 MB, free: 15.14 MB / 254.1 MB " [Timeout remaining time 180] Using package AdvancedNoise with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 71.83 kB / 439.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1061, allocations: 54.14 MB / 493.8 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.003391/0.1095, allocations: 1.947 MB / 495.8 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003189/0.1127, allocations: 1.612 MB / 497.4 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000124/0.1129, allocations: 4 kB / 497.4 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000215/0.1131, allocations: 47.41 kB / 497.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007816/0.1138, allocations: 263 kB / 497.7 MB, free: 1.555 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 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 master/Sources/SignalBasedNoise.mo:248:3-259: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.1.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 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 master/Sources/SignalBasedNoise.mo:248:3-259: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.0009905/0.1148, allocations: 398.9 kB / 498.1 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006563/0.1155, allocations: 0.5927 MB / 498.7 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.1157, allocations: 82.97 kB / 498.8 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002618/0.116, allocations: 223.4 kB / 499 MB, free: 280 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000358/0.1163, allocations: 263 kB / 499.2 MB, free: 16 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001137/0.1164, allocations: 60.05 kB / 499.3 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008006/0.1172, allocations: 467.2 kB / 499.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000145/0.1174, allocations: 131.6 kB / 499.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000207/0.1176, allocations: 187.1 kB / 0.4883 GB, free: 15.19 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000986/0.1186, allocations: 0.7632 MB / 0.4891 GB, free: 14.42 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1186, allocations: 0 / 0.4891 GB, free: 14.42 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1186, allocations: 0 / 0.4891 GB, free: 14.42 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.1186, allocations: 0 / 0.4891 GB, free: 14.42 MB / 366.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.001403/0.12, allocations: 0.6473 MB / 0.4897 GB, free: 13.74 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.12, allocations: 15.97 kB / 0.4897 GB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001044/0.1201, allocations: 62.72 kB / 0.4898 GB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001252/0.1214, allocations: 168.5 kB / 0.49 GB, free: 13.49 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007425/0.1221, allocations: 313.4 kB / 0.4903 GB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.165e-05/0.1222, allocations: 33.03 kB / 0.4903 GB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.1223, allocations: 44.33 kB / 0.4903 GB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.1234, allocations: 470.3 kB / 0.4908 GB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.1234, allocations: 3.938 kB / 0.4908 GB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.071e-05/0.1235, allocations: 19.98 kB / 0.4908 GB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.517e-06/0.1235, allocations: 4 kB / 0.4908 GB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001436/0.1249, allocations: 0.5139 MB / 0.4913 GB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002228/0.1272, allocations: 1.045 MB / 0.4923 GB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.1286, allocations: 491.7 kB / 0.4928 GB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006994/0.1293, allocations: 261.5 kB / 0.493 GB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.398e-05/0.1293, allocations: 16.36 kB / 0.4931 GB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.555e-05/0.1294, allocations: 34.94 kB / 0.4931 GB, free: 10.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=46): time 2.554e-06/0.1294, allocations: 4 kB / 0.4931 GB, free: 10.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=46): time 0.002462/0.1318, allocations: 0.8298 MB / 0.4939 GB, free: 9.336 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.253e-05/0.1319, allocations: 55.41 kB / 0.494 GB, free: 9.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002642/0.1321, allocations: 233 kB / 0.4942 GB, free: 9.035 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.363e-05/0.1322, allocations: 33.7 kB / 0.4942 GB, free: 8.996 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.1323, allocations: 161.1 kB / 0.4944 GB, free: 8.836 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/0.1325, allocations: 170.6 kB / 0.4945 GB, free: 8.668 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002105/0.1327, allocations: 110.3 kB / 0.4946 GB, free: 8.551 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.1328, allocations: 350.7 kB / 0.495 GB, free: 8.199 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007374/0.1336, allocations: 265.1 kB / 0.4952 GB, free: 7.941 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007563/0.1343, allocations: 281.7 kB / 0.4955 GB, free: 7.668 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001402/0.1357, allocations: 0.5033 MB / 0.496 GB, free: 7.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1357, allocations: 0 / 0.496 GB, free: 7.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001792/0.1375, allocations: 0.6844 MB / 0.4966 GB, free: 6.469 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.1376, allocations: 4 kB / 0.4967 GB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1376, allocations: 0 / 0.4967 GB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.1376, allocations: 4 kB / 0.4967 GB, free: 6.461 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008378/0.1384, allocations: 143.8 kB / 0.4968 GB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.1384, allocations: 4 kB / 0.4968 GB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003618/0.1388, allocations: 59.58 kB / 0.4969 GB, free: 6.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001418/0.1389, allocations: 71.83 kB / 0.4969 GB, free: 6.188 MB / 366.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.0002501/0.1392, allocations: 153.8 kB / 0.4971 GB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.1393, allocations: 35.77 kB / 0.4971 GB, free: 5.992 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00196/0.1412, allocations: 0.6751 MB / 0.4978 GB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.1413, allocations: 4 kB / 0.4978 GB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.1413, allocations: 0 / 0.4978 GB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.1413, allocations: 7.922 kB / 0.4978 GB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007192/0.142, allocations: 468.6 kB / 0.4982 GB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.142, allocations: 4 kB / 0.4982 GB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007788/0.1428, allocations: 115.8 kB / 0.4983 GB, free: 4.684 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.928e-06/0.1428, allocations: 4 kB / 0.4983 GB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.5e-05/0.1428, allocations: 19.97 kB / 0.4984 GB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.1429, allocations: 4 kB / 0.4984 GB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.1429, allocations: 0 / 0.4984 GB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002803/0.1457, allocations: 1.041 MB / 0.4994 GB, free: 3.598 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.241e-05/0.1457, allocations: 39.67 kB / 0.4994 GB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.484e-05/0.1458, allocations: 16 kB / 0.4994 GB, free: 3.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003807/0.1462, allocations: 23.97 kB / 0.4995 GB, free: 3.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001558/0.1463, allocations: 60.33 kB / 0.4995 GB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001305/0.1465, allocations: 68.77 kB / 0.4996 GB, free: 3.395 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001714/0.1466, allocations: 160.5 kB / 0.4997 GB, free: 3.238 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1466, allocations: 0 / 0.4997 GB, free: 3.238 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006712/0.1473, allocations: 167.6 kB / 0.4999 GB, free: 3.074 MB / 366.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.003954/0.1513, allocations: 1.841 MB / 0.5017 GB, free: 1.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001751/0.153, allocations: 0.5841 MB / 0.5023 GB, free: 0.6914 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.153, allocations: 4 kB / 0.5023 GB, free: 0.6875 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.1542, allocations: 302.3 kB / 0.5026 GB, free: 404 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00057/0.1547, allocations: 35.19 kB / 0.5026 GB, free: 368 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008179/0.1629, allocations: 4.115 MB / 0.5066 GB, free: 12.15 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002368/0.1632, allocations: 198 kB / 0.5068 GB, free: 11.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004326/0.1636, allocations: 86.88 kB / 0.5069 GB, free: 11.85 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000331/0.1639, allocations: 147.3 kB / 0.507 GB, free: 11.71 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1639, allocations: 0 / 0.507 GB, free: 11.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04664/0.2106, allocations: 11.71 MB / 0.5185 GB, free: 120 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.16, allocations: 6.734 kB / 0.5185 GB, free: 116 kB / 382.1 MB " [Timeout remaining time 647] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.238709232304245] Failed to read output from testmodel.py, exit status != 0: 12.527377888094634 12.543420854 12.421749911 Calling exit ...