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.001645/0.001645, allocations: 113 kB / 18.94 MB, free: 2.934 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.002001/0.002001, allocations: 208.7 kB / 22.25 MB, free: 5.082 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.464/1.464, allocations: 230.6 MB / 256 MB, free: 8.008 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.02835/0.02835, allocations: 3.936 MB / 316.4 MB, free: 15.32 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.00203/0.00203, allocations: 71.89 kB / 439.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09742/0.09945, allocations: 54.14 MB / 493.9 MB, free: 5.684 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.0034/0.1028, allocations: 2.075 MB / 496 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00332/0.1062, allocations: 1.713 MB / 497.7 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001522/0.1063, allocations: 7.938 kB / 497.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002006/0.1065, allocations: 43.47 kB / 497.7 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007795/0.1073, allocations: 259 kB / 498 MB, free: 1.578 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.001209/0.1085, allocations: 390.9 kB / 498.4 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006904/0.1092, allocations: 0.5927 MB / 499 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/0.1094, allocations: 79.78 kB / 499 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002758/0.1097, allocations: 235.3 kB / 499.3 MB, free: 300 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000376/0.11, allocations: 279 kB / 499.5 MB, free: 20 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001238/0.1102, allocations: 64.05 kB / 499.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008977/0.1111, allocations: 487.2 kB / 0.4884 GB, free: 15.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.1112, allocations: 135.6 kB / 0.4885 GB, free: 15.35 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002345/0.1114, allocations: 218.9 kB / 0.4887 GB, free: 15.13 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00109/0.1125, allocations: 0.7631 MB / 0.4894 GB, free: 14.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1125, allocations: 0 / 0.4894 GB, free: 14.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1125, allocations: 0 / 0.4894 GB, free: 14.37 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1126, allocations: 0 / 0.4894 GB, free: 14.37 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.001357/0.1139, allocations: 0.6512 MB / 0.4901 GB, free: 13.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.114, allocations: 16.02 kB / 0.4901 GB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.024e-05/0.114, allocations: 58.73 kB / 0.4902 GB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00126/0.1153, allocations: 168.5 kB / 0.4903 GB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007534/0.1161, allocations: 309.5 kB / 0.4906 GB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.548e-05/0.1161, allocations: 33.03 kB / 0.4906 GB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.6e-05/0.1162, allocations: 44.33 kB / 0.4907 GB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.1174, allocations: 482.2 kB / 0.4911 GB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.1174, allocations: 3.938 kB / 0.4911 GB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.358e-05/0.1174, allocations: 8 kB / 0.4912 GB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.587e-05/0.1175, allocations: 8 kB / 0.4912 GB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001527/0.119, allocations: 0.5178 MB / 0.4917 GB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002347/0.1213, allocations: 1.166 MB / 0.4928 GB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.1229, allocations: 0.4912 MB / 0.4933 GB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007366/0.1236, allocations: 261.4 kB / 0.4935 GB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.12e-05/0.1237, allocations: 20.34 kB / 0.4936 GB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.1237, allocations: 34.94 kB / 0.4936 GB, free: 9.984 MB / 366.1 MB Notification: Performance of pre-optimization done (n=46): time 1.933e-06/0.1237, allocations: 7.938 kB / 0.4936 GB, free: 9.977 MB / 366.1 MB Notification: Performance of matching and sorting (n=46): time 0.002543/0.1262, allocations: 0.8259 MB / 0.4944 GB, free: 9.145 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/0.1263, allocations: 59.34 kB / 0.4945 GB, free: 9.074 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002739/0.1266, allocations: 233 kB / 0.4947 GB, free: 8.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.897e-05/0.1266, allocations: 33.7 kB / 0.4947 GB, free: 8.801 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.1268, allocations: 165.1 kB / 0.4949 GB, free: 8.637 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000169/0.1269, allocations: 166.5 kB / 0.495 GB, free: 8.473 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002312/0.1272, allocations: 114.3 kB / 0.4951 GB, free: 8.352 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.1274, allocations: 350.7 kB / 0.4955 GB, free: 8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007678/0.1281, allocations: 261.1 kB / 0.4957 GB, free: 7.746 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007715/0.1289, allocations: 277.7 kB / 0.496 GB, free: 7.477 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001428/0.1303, allocations: 0.4993 MB / 0.4965 GB, free: 6.973 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.1303, allocations: 4 kB / 0.4965 GB, free: 6.969 MB / 366.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0018/0.1321, allocations: 0.6689 MB / 0.4971 GB, free: 6.293 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.1321, allocations: 4 kB / 0.4971 GB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.361e-06/0.1321, allocations: 4 kB / 0.4971 GB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.1322, allocations: 4 kB / 0.4971 GB, free: 6.281 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008545/0.133, allocations: 143.7 kB / 0.4973 GB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.133, allocations: 4 kB / 0.4973 GB, free: 6.137 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003895/0.1334, allocations: 59.58 kB / 0.4973 GB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001422/0.1336, allocations: 67.89 kB / 0.4974 GB, free: 6.012 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.0002521/0.1338, allocations: 161.7 kB / 0.4976 GB, free: 5.844 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.949e-05/0.1339, allocations: 39.77 kB / 0.4976 GB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001903/0.1358, allocations: 0.6674 MB / 0.4982 GB, free: 5.133 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.1358, allocations: 8 kB / 0.4983 GB, free: 5.125 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.1358, allocations: 0 / 0.4983 GB, free: 5.125 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.1358, allocations: 7.922 kB / 0.4983 GB, free: 5.117 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007481/0.1366, allocations: 0.5395 MB / 0.4988 GB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.1366, allocations: 0 / 0.4988 GB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008416/0.1374, allocations: 119.8 kB / 0.4989 GB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/0.1374, allocations: 3.984 kB / 0.4989 GB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.042e-05/0.1375, allocations: 23.97 kB / 0.4989 GB, free: 4.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.658e-06/0.1375, allocations: 8 kB / 0.4989 GB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1375, allocations: 0 / 0.4989 GB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002567/0.1401, allocations: 1.045 MB / 0.5 GB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.855e-05/0.1401, allocations: 31.69 kB / 0.5 GB, free: 3.289 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.39e-05/0.1402, allocations: 12 kB / 0.5 GB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003843/0.1406, allocations: 27.97 kB / 0.5 GB, free: 3.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/0.1408, allocations: 64.33 kB / 0.5001 GB, free: 3.188 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001445/0.1409, allocations: 74.36 kB / 0.5002 GB, free: 3.117 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001763/0.1411, allocations: 164.5 kB / 0.5003 GB, free: 2.957 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1411, allocations: 0 / 0.5003 GB, free: 2.957 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006724/0.1417, allocations: 167.6 kB / 0.5005 GB, free: 2.793 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.003741/0.1455, allocations: 1.814 MB / 0.5022 GB, free: 1.004 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00168/0.1472, allocations: 0.5802 MB / 0.5028 GB, free: 440 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.1472, allocations: 4 kB / 0.5028 GB, free: 436 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008362/0.148, allocations: 314.2 kB / 0.5031 GB, free: 124 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/0.1484, allocations: 28.38 kB / 0.5031 GB, free: 92 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2137/0.3621, allocations: 4.097 MB / 0.5071 GB, free: 20.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002517/0.3623, allocations: 0.7987 MB / 0.5079 GB, free: 19.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000396/0.3627, allocations: 90.02 kB / 0.508 GB, free: 19.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002864/0.363, allocations: 140.4 kB / 0.5081 GB, free: 19.58 MB / 366.1 MB Notification: Performance of SimCode: time 1.112e-06/0.363, allocations: 0 / 0.5081 GB, free: 19.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04356/0.4066, allocations: 11.31 MB / 0.5192 GB, free: 16.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.36, allocations: 7.453 kB / 0.5192 GB, free: 16.51 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 & 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.2719772049968] Failed to read output from testmodel.py, exit status != 0: 12.479349364002701 12.503173781 12.386377349 Calling exit ...