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.001298/0.001298, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001479/0.001479, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.452/1.452, allocations: 230.6 MB / 256 MB, free: 7.98 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.02879/0.02879, allocations: 3.936 MB / 316.4 MB, free: 15.34 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.002178/0.002178, allocations: 67.89 kB / 439.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09753/0.09971, allocations: 54.15 MB / 493.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.003625/0.1033, allocations: 2.061 MB / 496 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003319/0.1067, allocations: 1.721 MB / 497.7 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001731/0.1068, allocations: 7.938 kB / 497.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002436/0.1071, allocations: 39.47 kB / 497.7 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008715/0.1079, allocations: 259 kB / 498 MB, free: 1.629 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.001069/0.109, allocations: 394.9 kB / 498.4 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008635/0.1099, allocations: 0.5966 MB / 499 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/0.1101, allocations: 78.7 kB / 499 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003529/0.1104, allocations: 235.3 kB / 499.3 MB, free: 348 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004206/0.1109, allocations: 275 kB / 499.5 MB, free: 72 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001205/0.111, allocations: 64 kB / 499.6 MB, free: 8 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000911/0.1119, allocations: 483.3 kB / 0.4884 GB, free: 15.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001679/0.112, allocations: 143.6 kB / 0.4885 GB, free: 15.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003316/0.1124, allocations: 218.9 kB / 0.4887 GB, free: 15.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001111/0.1135, allocations: 0.7592 MB / 0.4894 GB, free: 14.42 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1135, allocations: 4 kB / 0.4895 GB, free: 14.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.1135, allocations: 0 / 0.4895 GB, free: 14.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.1135, allocations: 0 / 0.4895 GB, free: 14.41 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.001559/0.1151, allocations: 0.6511 MB / 0.4901 GB, free: 13.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.1151, allocations: 12.03 kB / 0.4901 GB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001045/0.1152, allocations: 62.73 kB / 0.4902 GB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001294/0.1165, allocations: 164.5 kB / 0.4903 GB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008276/0.1173, allocations: 309.5 kB / 0.4906 GB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001183/0.1175, allocations: 33.03 kB / 0.4906 GB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.572e-05/0.1175, allocations: 40.33 kB / 0.4907 GB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/0.1187, allocations: 490.2 kB / 0.4911 GB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.1188, allocations: 3.938 kB / 0.4912 GB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.825e-05/0.1188, allocations: 8 kB / 0.4912 GB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.1188, allocations: 8 kB / 0.4912 GB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001571/0.1204, allocations: 0.5139 MB / 0.4917 GB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002455/0.1228, allocations: 1.166 MB / 0.4928 GB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.1243, allocations: 495.7 kB / 0.4933 GB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007443/0.125, allocations: 261.5 kB / 0.4935 GB, free: 10.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.863e-05/0.1251, allocations: 20.34 kB / 0.4935 GB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.1251, allocations: 34.94 kB / 0.4936 GB, free: 10.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=46): time 1.994e-06/0.1251, allocations: 4 kB / 0.4936 GB, free: 10.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=46): time 0.002574/0.1277, allocations: 0.8297 MB / 0.4944 GB, free: 9.199 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/0.1278, allocations: 59.41 kB / 0.4945 GB, free: 9.129 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003789/0.1281, allocations: 237 kB / 0.4947 GB, free: 8.891 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.649e-05/0.1282, allocations: 37.64 kB / 0.4947 GB, free: 8.848 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.1283, allocations: 161.1 kB / 0.4949 GB, free: 8.688 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000188/0.1285, allocations: 170.5 kB / 0.495 GB, free: 8.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002144/0.1287, allocations: 110.3 kB / 0.4951 GB, free: 8.402 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.1289, allocations: 350.7 kB / 0.4955 GB, free: 8.051 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007626/0.1296, allocations: 257.2 kB / 0.4957 GB, free: 7.801 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007629/0.1304, allocations: 277.7 kB / 0.496 GB, free: 7.531 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/0.132, allocations: 0.5032 MB / 0.4965 GB, free: 7.023 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.132, allocations: 4 kB / 0.4965 GB, free: 7.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001864/0.1338, allocations: 0.6728 MB / 0.4971 GB, free: 6.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.1338, allocations: 6.656 kB / 0.4971 GB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.1339, allocations: 0 / 0.4971 GB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.1339, allocations: 4 kB / 0.4971 GB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000861/0.1347, allocations: 143.7 kB / 0.4973 GB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.1347, allocations: 4 kB / 0.4973 GB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003921/0.1351, allocations: 59.58 kB / 0.4973 GB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/0.1353, allocations: 71.89 kB / 0.4974 GB, free: 6.059 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.0002233/0.1355, allocations: 160.4 kB / 0.4976 GB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.498e-05/0.1356, allocations: 35.77 kB / 0.4976 GB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00204/0.1376, allocations: 0.6713 MB / 0.4983 GB, free: 5.184 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.1376, allocations: 4 kB / 0.4983 GB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.1376, allocations: 3.984 kB / 0.4983 GB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.1376, allocations: 3.938 kB / 0.4983 GB, free: 5.172 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008138/0.1385, allocations: 0.5473 MB / 0.4988 GB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/0.1385, allocations: 0 / 0.4988 GB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008529/0.1393, allocations: 119.8 kB / 0.4989 GB, free: 4.465 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.1393, allocations: 4 kB / 0.4989 GB, free: 4.461 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.223e-05/0.1394, allocations: 23.97 kB / 0.4989 GB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.1394, allocations: 4 kB / 0.4989 GB, free: 4.434 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1394, allocations: 3.938 kB / 0.4989 GB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002725/0.1421, allocations: 1.041 MB / 0.5 GB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.264e-05/0.1422, allocations: 31.69 kB / 0.5 GB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.234e-05/0.1423, allocations: 12 kB / 0.5 GB, free: 3.328 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004016/0.1427, allocations: 31.97 kB / 0.5 GB, free: 3.297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/0.1428, allocations: 60.31 kB / 0.5001 GB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001269/0.1429, allocations: 71.86 kB / 0.5002 GB, free: 3.168 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001754/0.1431, allocations: 164.5 kB / 0.5003 GB, free: 3.008 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1431, allocations: 0 / 0.5003 GB, free: 3.008 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007076/0.1438, allocations: 167.6 kB / 0.5005 GB, free: 2.844 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.003831/0.1477, allocations: 1.814 MB / 0.5023 GB, free: 1.051 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001771/0.1494, allocations: 0.5763 MB / 0.5028 GB, free: 492 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1494, allocations: 0 / 0.5028 GB, free: 492 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000835/0.1503, allocations: 322.2 kB / 0.5031 GB, free: 172 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003565/0.1506, allocations: 38.38 kB / 0.5032 GB, free: 136 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1868/0.3374, allocations: 4.091 MB / 0.5072 GB, free: 20.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002405/0.3377, allocations: 0.8006 MB / 0.5079 GB, free: 19.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003906/0.3381, allocations: 91.41 kB / 0.508 GB, free: 19.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000281/0.3383, allocations: 142.4 kB / 0.5082 GB, free: 19.6 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3383, allocations: 0 / 0.5082 GB, free: 19.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04152/0.3799, allocations: 11.3 MB / 0.5192 GB, free: 16.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.31, allocations: 10.12 kB / 0.5192 GB, free: 16.55 MB / 366.1 MB " [Timeout remaining time 648] (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 --stepSize=0.01 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_SignalBasedCorrelations.fmu > AdvancedNoise_AdvancedNoise.Examples.SignalBasedCorrelations.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.597725921077654] Failed to read output from testmodel.py, exit status != 0: 12.429072386119515 12.441837895 12.325947907 Calling exit ...