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.001065/0.001065, allocations: 105.4 kB / 15.7 MB, free: 24 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.001131/0.001131, allocations: 197.9 kB / 16.64 MB, free: 6.449 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.355/1.355, allocations: 222.9 MB / 240.3 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1323/0.1323, allocations: 3.88 MB / 294.4 MB, free: 3.168 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 63.91 kB / 355.7 MB, free: 3.391 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1051, allocations: 50.18 MB / 405.9 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.00311/0.1082, allocations: 2.039 MB / 408 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00262/0.1109, allocations: 1.659 MB / 409.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.111, allocations: 0 / 409.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001691/0.1112, allocations: 51.41 kB / 409.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006601/0.1118, allocations: 247.1 kB / 409.9 MB, free: 13.16 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.0008802/0.1127, allocations: 390.9 kB / 410.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005327/0.1133, allocations: 0.5927 MB / 410.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001873/0.1135, allocations: 105.1 kB / 411 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002056/0.1137, allocations: 231.2 kB / 411.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002888/0.114, allocations: 283 kB / 411.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.009e-05/0.1141, allocations: 64 kB / 411.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006203/0.1147, allocations: 419.4 kB / 412 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.1148, allocations: 135.6 kB / 412.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002219/0.1151, allocations: 214.9 kB / 412.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008442/0.1159, allocations: 0.7561 MB / 413.1 MB, free: 10 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1159, allocations: 3.984 kB / 413.1 MB, free: 10 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.116, allocations: 0 / 413.1 MB, free: 10 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.116, allocations: 0 / 413.1 MB, free: 10 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.001329/0.1173, allocations: 0.7121 MB / 413.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.1174, allocations: 8.031 kB / 413.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000127/0.1175, allocations: 66.66 kB / 413.8 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001431/0.1189, allocations: 174.4 kB / 414 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009281/0.1199, allocations: 363.1 kB / 414.4 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.334e-05/0.12, allocations: 33.03 kB / 414.4 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.801e-05/0.1201, allocations: 36.38 kB / 414.4 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.1212, allocations: 482.3 kB / 414.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.1213, allocations: 7.938 kB / 414.9 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.575e-05/0.1213, allocations: 12 kB / 414.9 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.703e-05/0.1214, allocations: 8 kB / 414.9 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001551/0.1229, allocations: 0.5178 MB / 415.5 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002178/0.1251, allocations: 1.194 MB / 416.6 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/0.1266, allocations: 0.51 MB / 417.2 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007642/0.1274, allocations: 281.5 kB / 417.4 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.699e-05/0.1275, allocations: 8.359 kB / 417.4 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/0.1275, allocations: 42.88 kB / 417.5 MB, free: 5.402 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.886e-06/0.1275, allocations: 4 kB / 417.5 MB, free: 5.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002504/0.13, allocations: 0.8258 MB / 418.3 MB, free: 4.566 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/0.1301, allocations: 55.41 kB / 418.4 MB, free: 4.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002801/0.1304, allocations: 225 kB / 418.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.723e-05/0.1305, allocations: 33.7 kB / 418.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.1306, allocations: 172.8 kB / 418.8 MB, free: 4.059 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001575/0.1308, allocations: 149.7 kB / 418.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.131, allocations: 118.1 kB / 419 MB, free: 3.789 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.1312, allocations: 346.8 kB / 419.4 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007015/0.1319, allocations: 265 kB / 419.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001053/0.1329, allocations: 272.8 kB / 419.9 MB, free: 2.914 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001382/0.1343, allocations: 0.5018 MB / 420.4 MB, free: 2.406 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.1344, allocations: 4 kB / 420.4 MB, free: 2.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001644/0.136, allocations: 0.6742 MB / 421.1 MB, free: 1.723 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.136, allocations: 7.984 kB / 421.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.136, allocations: 3.938 kB / 421.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.1361, allocations: 8 kB / 421.1 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008468/0.1369, allocations: 143.8 kB / 421.3 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.379e-05/0.137, allocations: 3.984 kB / 421.3 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003832/0.1373, allocations: 55.53 kB / 421.3 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.1375, allocations: 67.89 kB / 421.4 MB, free: 1.438 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.0003335/0.1378, allocations: 174.1 kB / 421.5 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.138, allocations: 27.62 kB / 421.6 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001795/0.1398, allocations: 0.6635 MB / 422.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.563e-06/0.1398, allocations: 4 kB / 422.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1398, allocations: 4 kB / 422.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.108e-06/0.1398, allocations: 7.922 kB / 422.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1593/0.2991, allocations: 0.5773 MB / 422.8 MB, free: 49.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/0.2991, allocations: 0 / 422.8 MB, free: 49.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009371/0.3001, allocations: 121.1 kB / 422.9 MB, free: 49.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.672e-06/0.3001, allocations: 2.344 kB / 423 MB, free: 49.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.274e-05/0.3002, allocations: 23.39 kB / 423 MB, free: 49.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.3002, allocations: 1.719 kB / 423 MB, free: 49.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3002, allocations: 0.8438 kB / 423 MB, free: 49.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002398/0.3026, allocations: 1.036 MB / 424 MB, free: 49.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.416e-05/0.3027, allocations: 112.3 kB / 424.1 MB, free: 49.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.653e-05/0.3027, allocations: 13.16 kB / 424.1 MB, free: 49.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003833/0.3031, allocations: 29.92 kB / 424.2 MB, free: 49.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.3033, allocations: 59.19 kB / 424.2 MB, free: 49.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.534e-05/0.3034, allocations: 65.53 kB / 424.3 MB, free: 49.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001225/0.3035, allocations: 160.9 kB / 424.4 MB, free: 49.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3035, allocations: 3.375 kB / 424.4 MB, free: 49.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005542/0.3041, allocations: 165.8 kB / 424.6 MB, free: 49.02 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.002875/0.3069, allocations: 1.808 MB / 426.4 MB, free: 48.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001433/0.3084, allocations: 0.6163 MB / 427 MB, free: 48.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3084, allocations: 3.906 kB / 427 MB, free: 48.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007853/0.3092, allocations: 321.3 kB / 427.3 MB, free: 48.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.3096, allocations: 34.2 kB / 427.4 MB, free: 48.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00612/0.3157, allocations: 4.09 MB / 431.5 MB, free: 45.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.316, allocations: 0.7957 MB / 432.3 MB, free: 45.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004109/0.3164, allocations: 94.23 kB / 432.4 MB, free: 45.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003124/0.3167, allocations: 149.9 kB / 432.5 MB, free: 45.04 MB / 350.1 MB Notification: Performance of SimCode: time 1.312e-06/0.3167, allocations: 3.938 kB / 432.5 MB, free: 45.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02852/0.3452, allocations: 10.63 MB / 443.1 MB, free: 43.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.524/8.869, allocations: 18.05 kB / 443.2 MB, free: 43.92 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)