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.001046/0.001047, allocations: 108 kB / 15.63 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 189.5 kB / 16.55 MB, free: 6.637 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.334/1.334, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1236/0.1236, allocations: 3.892 MB / 294.3 MB, free: 3.293 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 59.91 kB / 355.6 MB, free: 3.477 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1049, allocations: 50.19 MB / 405.8 MB, free: 1.242 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.003596/0.1085, allocations: 2.023 MB / 407.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003156/0.1117, allocations: 1.666 MB / 409.5 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001716/0.1119, allocations: 4 kB / 409.5 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002104/0.1122, allocations: 39.47 kB / 409.5 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007479/0.113, allocations: 255 kB / 409.8 MB, free: 13.24 MB / 350.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.001049/0.114, allocations: 382.9 kB / 410.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006599/0.1147, allocations: 0.5966 MB / 410.8 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002217/0.1149, allocations: 109.6 kB / 410.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002473/0.1152, allocations: 231.2 kB / 411.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003019/0.1155, allocations: 279 kB / 411.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.654e-05/0.1156, allocations: 64 kB / 411.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007609/0.1164, allocations: 415.5 kB / 411.8 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001486/0.1165, allocations: 135.6 kB / 412 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002468/0.1168, allocations: 222.9 kB / 412.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008928/0.1177, allocations: 0.7445 MB / 412.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1177, allocations: 0 / 412.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1177, allocations: 3.938 kB / 412.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.1177, allocations: 0 / 412.9 MB, free: 10.09 MB / 350.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.001241/0.119, allocations: 0.7159 MB / 413.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.1191, allocations: 8.031 kB / 413.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.907e-05/0.1191, allocations: 70.72 kB / 413.7 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001474/0.1206, allocations: 156.3 kB / 413.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007743/0.1214, allocations: 379.1 kB / 414.2 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.862e-05/0.1215, allocations: 29.03 kB / 414.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.852e-05/0.1216, allocations: 36.38 kB / 414.3 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.1228, allocations: 490.3 kB / 414.8 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.1228, allocations: 7.875 kB / 414.8 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.093e-05/0.1229, allocations: 16 kB / 414.8 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.1229, allocations: 8 kB / 414.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001373/0.1242, allocations: 0.5139 MB / 415.3 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002195/0.1265, allocations: 1.201 MB / 416.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001378/0.1278, allocations: 0.5036 MB / 417 MB, free: 5.812 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006791/0.1285, allocations: 281.5 kB / 417.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.989e-05/0.1286, allocations: 4.375 kB / 417.3 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.679e-05/0.1287, allocations: 42.94 kB / 417.4 MB, free: 5.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.865e-06/0.1287, allocations: 0 / 417.4 MB, free: 5.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002307/0.131, allocations: 0.8335 MB / 418.2 MB, free: 4.641 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.776e-05/0.131, allocations: 55.41 kB / 418.2 MB, free: 4.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002385/0.1313, allocations: 225 kB / 418.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.124e-05/0.1314, allocations: 37.7 kB / 418.5 MB, free: 4.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.1315, allocations: 168.8 kB / 418.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.1316, allocations: 157.7 kB / 418.8 MB, free: 3.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002039/0.1318, allocations: 114.2 kB / 418.9 MB, free: 3.859 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.132, allocations: 342.8 kB / 419.3 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006866/0.1327, allocations: 265 kB / 419.5 MB, free: 3.258 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006855/0.1334, allocations: 268.9 kB / 419.8 MB, free: 2.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001322/0.1347, allocations: 0.4979 MB / 420.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.1347, allocations: 8 kB / 420.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001712/0.1364, allocations: 0.6663 MB / 421 MB, free: 1.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.1365, allocations: 4 kB / 421 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.1365, allocations: 7.938 kB / 421 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.1365, allocations: 4 kB / 421 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007856/0.1373, allocations: 147.8 kB / 421.1 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.1373, allocations: 3.938 kB / 421.1 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003544/0.1377, allocations: 63.52 kB / 421.2 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001362/0.1378, allocations: 63.84 kB / 421.3 MB, free: 1.52 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.0002195/0.138, allocations: 174.2 kB / 421.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.161e-05/0.1381, allocations: 27.62 kB / 421.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0018/0.14, allocations: 0.6712 MB / 422.1 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.14, allocations: 8 kB / 422.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.14, allocations: 0 / 422.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.541e-05/0.14, allocations: 7.922 kB / 422.1 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006535/0.1407, allocations: 0.5715 MB / 422.7 MB, free: 0 / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.481e-05/0.3061, allocations: 1.391 kB / 422.7 MB, free: 49.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009218/0.307, allocations: 114.2 kB / 422.8 MB, free: 49.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.307, allocations: 2.469 kB / 422.8 MB, free: 49.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.609e-05/0.3071, allocations: 21.52 kB / 422.8 MB, free: 49.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.3071, allocations: 5.969 kB / 422.8 MB, free: 49.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3071, allocations: 1.156 kB / 422.8 MB, free: 49.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002331/0.3095, allocations: 1.04 MB / 423.9 MB, free: 49.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.667e-05/0.3095, allocations: 109.1 kB / 424 MB, free: 49.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.735e-05/0.3096, allocations: 13.5 kB / 424 MB, free: 49.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003483/0.31, allocations: 28.84 kB / 424 MB, free: 49.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.3101, allocations: 60.22 kB / 424.1 MB, free: 49.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.3102, allocations: 66 kB / 424.2 MB, free: 49.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001117/0.3103, allocations: 159.8 kB / 424.3 MB, free: 49.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3103, allocations: 0 / 424.3 MB, free: 49.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005452/0.3109, allocations: 171.2 kB / 424.5 MB, free: 49.05 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.002704/0.3136, allocations: 1.812 MB / 426.3 MB, free: 48.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001376/0.315, allocations: 0.6113 MB / 426.9 MB, free: 48.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.315, allocations: 0 / 426.9 MB, free: 48.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006602/0.3157, allocations: 326.2 kB / 427.2 MB, free: 48.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.316, allocations: 36.31 kB / 427.3 MB, free: 48.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005797/0.3218, allocations: 4.131 MB / 431.4 MB, free: 45.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002251/0.322, allocations: 0.7949 MB / 432.2 MB, free: 45.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003623/0.3224, allocations: 95.34 kB / 432.3 MB, free: 45.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000256/0.3227, allocations: 143.4 kB / 432.4 MB, free: 45.02 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3227, allocations: 0 / 432.4 MB, free: 45.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02525/0.3479, allocations: 10.64 MB / 443.1 MB, free: 43.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.554/6.902, allocations: 11.16 kB / 443.1 MB, free: 43.91 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_SignalBasedCorrelations_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_SignalBasedCorrelations.fmu > AdvancedNoise_AdvancedNoise.Examples.SignalBasedCorrelations.pipe 2>&1)