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.001458/0.001458, 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.00178/0.00178, allocations: 216.4 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.493/1.493, 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.02853/0.02853, allocations: 3.945 MB / 316.4 MB, free: 15.12 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.003092/0.003092, allocations: 71.83 kB / 439.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1117, allocations: 54.15 MB / 493.8 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.003336/0.115, allocations: 1.943 MB / 495.8 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003121/0.1182, allocations: 1.616 MB / 497.4 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001525/0.1183, allocations: 4 kB / 497.4 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001966/0.1185, allocations: 43.42 kB / 497.4 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00075/0.1193, allocations: 259.1 kB / 497.7 MB, free: 1.535 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.0009274/0.1202, allocations: 390.9 kB / 498.1 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006276/0.1208, allocations: 0.6044 MB / 498.7 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.121, allocations: 71.8 kB / 498.7 MB, free: 488 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002621/0.1213, allocations: 235.2 kB / 499 MB, free: 252 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000342/0.1216, allocations: 255.1 kB / 499.2 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001015/0.1217, allocations: 64 kB / 499.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007945/0.1225, allocations: 463.2 kB / 499.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001568/0.1226, allocations: 143.6 kB / 499.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001896/0.1228, allocations: 179.2 kB / 0.4883 GB, free: 15.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009725/0.1238, allocations: 0.7632 MB / 0.4891 GB, free: 14.4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1238, allocations: 0 / 0.4891 GB, free: 14.4 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1238, allocations: 0 / 0.4891 GB, free: 14.4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.1238, allocations: 4 kB / 0.4891 GB, free: 14.39 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.001325/0.1252, allocations: 0.6511 MB / 0.4897 GB, free: 13.71 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.1252, allocations: 11.97 kB / 0.4897 GB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001004/0.1253, allocations: 66.72 kB / 0.4898 GB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001229/0.1265, allocations: 162.5 kB / 0.49 GB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007381/0.1273, allocations: 305.5 kB / 0.4902 GB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.83e-05/0.1273, allocations: 37.03 kB / 0.4903 GB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.091e-05/0.1274, allocations: 40.33 kB / 0.4903 GB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.1285, allocations: 474.3 kB / 0.4908 GB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.1285, allocations: 7.938 kB / 0.4908 GB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.044e-05/0.1286, allocations: 16 kB / 0.4908 GB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.1286, allocations: 8 kB / 0.4908 GB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001491/0.1301, allocations: 0.5178 MB / 0.4913 GB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002193/0.1323, allocations: 1.037 MB / 0.4923 GB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001479/0.1338, allocations: 0.4919 MB / 0.4928 GB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007331/0.1345, allocations: 261.5 kB / 0.493 GB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.682e-05/0.1346, allocations: 8.375 kB / 0.4931 GB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/0.1346, allocations: 38.94 kB / 0.4931 GB, free: 10.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=46): time 2.355e-06/0.1346, allocations: 0 / 0.4931 GB, free: 10.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=46): time 0.002505/0.1371, allocations: 0.8337 MB / 0.4939 GB, free: 9.309 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.906e-05/0.1372, allocations: 59.34 kB / 0.494 GB, free: 9.238 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002609/0.1374, allocations: 233 kB / 0.4942 GB, free: 9.004 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.723e-05/0.1375, allocations: 37.7 kB / 0.4942 GB, free: 8.961 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.1376, allocations: 161.1 kB / 0.4944 GB, free: 8.801 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001642/0.1378, allocations: 170.5 kB / 0.4945 GB, free: 8.633 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002335/0.138, allocations: 114.3 kB / 0.4946 GB, free: 8.512 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.1382, allocations: 350.7 kB / 0.495 GB, free: 8.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007325/0.1389, allocations: 261.2 kB / 0.4952 GB, free: 7.906 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007417/0.1397, allocations: 277.7 kB / 0.4955 GB, free: 7.637 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/0.141, allocations: 0.4993 MB / 0.496 GB, free: 7.133 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1411, allocations: 0 / 0.496 GB, free: 7.133 MB / 366.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001794/0.1428, allocations: 0.6727 MB / 0.4966 GB, free: 6.453 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.1429, allocations: 4 kB / 0.4966 GB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1429, allocations: 3.938 kB / 0.4966 GB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.1429, allocations: 4 kB / 0.4967 GB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008115/0.1437, allocations: 151.8 kB / 0.4968 GB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.1437, allocations: 0 / 0.4968 GB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003629/0.1441, allocations: 59.58 kB / 0.4969 GB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/0.1442, allocations: 71.83 kB / 0.4969 GB, free: 6.164 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.0002413/0.1444, allocations: 161.8 kB / 0.4971 GB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.082e-05/0.1445, allocations: 35.77 kB / 0.4971 GB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00192/0.1465, allocations: 0.6674 MB / 0.4978 GB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.1465, allocations: 4 kB / 0.4978 GB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.463e-06/0.1465, allocations: 0 / 0.4978 GB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.1465, allocations: 7.938 kB / 0.4978 GB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006775/0.1472, allocations: 468.7 kB / 0.4982 GB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.1472, allocations: 0 / 0.4982 GB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007972/0.148, allocations: 123.8 kB / 0.4983 GB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.148, allocations: 0 / 0.4983 GB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.984e-05/0.148, allocations: 23.97 kB / 0.4984 GB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.148, allocations: 0 / 0.4984 GB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.148, allocations: 0 / 0.4984 GB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002584/0.1506, allocations: 1.049 MB / 0.4994 GB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.431e-05/0.1507, allocations: 35.69 kB / 0.4994 GB, free: 3.531 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.393e-05/0.1507, allocations: 15.98 kB / 0.4994 GB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000373/0.1511, allocations: 27.97 kB / 0.4995 GB, free: 3.488 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/0.1513, allocations: 56.33 kB / 0.4995 GB, free: 3.434 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/0.1514, allocations: 67.83 kB / 0.4996 GB, free: 3.367 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000171/0.1516, allocations: 164.5 kB / 0.4997 GB, free: 3.207 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1516, allocations: 0 / 0.4997 GB, free: 3.207 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006303/0.1522, allocations: 167.6 kB / 0.4999 GB, free: 3.043 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.003809/0.156, allocations: 1.839 MB / 0.5017 GB, free: 1.238 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.1577, allocations: 0.5841 MB / 0.5023 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1577, allocations: 0 / 0.5023 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008631/0.1586, allocations: 302.3 kB / 0.5025 GB, free: 376 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003563/0.1589, allocations: 35.34 kB / 0.5026 GB, free: 340 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007806/0.1667, allocations: 4.104 MB / 0.5066 GB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002398/0.167, allocations: 198 kB / 0.5068 GB, free: 11.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004355/0.1674, allocations: 94.8 kB / 0.5069 GB, free: 11.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003209/0.1677, allocations: 147.3 kB / 0.507 GB, free: 11.68 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1677, allocations: 0 / 0.507 GB, free: 11.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05961/0.2273, allocations: 11.72 MB / 0.5185 GB, free: 100 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.02, allocations: 2.5 kB / 0.5185 GB, free: 100 kB / 382.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.748542596120387] Failed to read output from testmodel.py, exit status != 0: 12.374438673257828 12.387570457 12.26081475 Calling exit ...