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.00651/0.00651, allocations: 101.6 kB / 15.73 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 193.1 kB / 16.67 MB, free: 5.469 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02456/0.02456, allocations: 3.921 MB / 294.4 MB, free: 11.03 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 71.5 kB / 406.4 MB, free: 28.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08279/0.08395, allocations: 50.18 MB / 456.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.003299/0.08728, allocations: 2.031 MB / 458.6 MB, free: 8.477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002929/0.09023, allocations: 1.659 MB / 460.3 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001907/0.09047, allocations: 3.938 kB / 460.3 MB, free: 6.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001979/0.09068, allocations: 43.47 kB / 460.3 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007456/0.09143, allocations: 255 kB / 460.6 MB, free: 6.516 MB / 334.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.0009595/0.0924, allocations: 387 kB / 461 MB, free: 6.137 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005824/0.09299, allocations: 0.5966 MB / 461.6 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002385/0.09324, allocations: 103.4 kB / 461.7 MB, free: 5.434 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002383/0.09349, allocations: 231.3 kB / 461.9 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000317/0.09382, allocations: 279 kB / 462.2 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.73e-05/0.09392, allocations: 64 kB / 462.2 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006549/0.09458, allocations: 423.4 kB / 462.6 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001517/0.09474, allocations: 139.6 kB / 462.8 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.09496, allocations: 214.9 kB / 463 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000854/0.09582, allocations: 0.7509 MB / 463.7 MB, free: 3.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.09584, allocations: 0 / 463.7 MB, free: 3.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.09585, allocations: 0 / 463.7 MB, free: 3.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.09586, allocations: 0 / 463.7 MB, free: 3.359 MB / 334.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.001351/0.09721, allocations: 0.7128 MB / 464.4 MB, free: 2.594 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.09727, allocations: 12.03 kB / 464.5 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.264e-05/0.09737, allocations: 66.72 kB / 464.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00127/0.09864, allocations: 164.2 kB / 464.7 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006964/0.09935, allocations: 367.1 kB / 465 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.31e-05/0.09942, allocations: 37.03 kB / 465.1 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.614e-05/0.09952, allocations: 40.38 kB / 465.1 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.1006, allocations: 474.3 kB / 465.6 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.1006, allocations: 7.938 kB / 465.6 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.059e-05/0.1007, allocations: 16 kB / 465.6 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.1007, allocations: 8 kB / 465.6 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001371/0.1021, allocations: 0.51 MB / 466.1 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002148/0.1042, allocations: 1.205 MB / 467.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001421/0.1057, allocations: 0.5108 MB / 467.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006864/0.1064, allocations: 281.4 kB / 468.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.261e-05/0.1064, allocations: 16.28 kB / 468.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.1065, allocations: 30.94 kB / 468.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.074e-06/0.1065, allocations: 8 kB / 468.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.00229/0.1088, allocations: 0.8258 MB / 469 MB, free: 13.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.1088, allocations: 59.41 kB / 469 MB, free: 13.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002324/0.1091, allocations: 236.8 kB / 469.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.882e-05/0.1092, allocations: 37.64 kB / 469.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.782e-05/0.1093, allocations: 164.9 kB / 469.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.1094, allocations: 153.7 kB / 469.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002263/0.1096, allocations: 110.2 kB / 469.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.1098, allocations: 354.7 kB / 470.1 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007332/0.1106, allocations: 264.9 kB / 470.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006969/0.1113, allocations: 272.9 kB / 470.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001366/0.1127, allocations: 0.494 MB / 471.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.1127, allocations: 0 / 471.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001718/0.1144, allocations: 0.6704 MB / 471.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.1144, allocations: 4 kB / 471.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1145, allocations: 0 / 471.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.1145, allocations: 7.938 kB / 471.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008223/0.1153, allocations: 143.8 kB / 471.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.248e-05/0.1153, allocations: 4 kB / 471.9 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003792/0.1157, allocations: 59.48 kB / 472 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/0.1159, allocations: 67.84 kB / 472 MB, free: 10.8 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.0002282/0.1161, allocations: 174.2 kB / 472.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.608e-05/0.1162, allocations: 31.62 kB / 472.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001817/0.118, allocations: 0.6712 MB / 472.9 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.118, allocations: 4 kB / 472.9 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.1181, allocations: 4 kB / 472.9 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.09e-05/0.1181, allocations: 11.91 kB / 472.9 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007153/0.1188, allocations: 0.5714 MB / 473.5 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.237e-06/0.1188, allocations: 0 / 473.5 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007989/0.1196, allocations: 119.8 kB / 473.6 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.096e-06/0.1196, allocations: 4 kB / 473.6 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.965e-05/0.1197, allocations: 23.97 kB / 473.7 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.1197, allocations: 0 / 473.7 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1197, allocations: 4 kB / 473.7 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002389/0.1221, allocations: 1.037 MB / 474.7 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.245e-05/0.1222, allocations: 112.6 kB / 474.8 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.237e-05/0.1223, allocations: 12 kB / 474.8 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003986/0.1227, allocations: 27.97 kB / 474.8 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001576/0.1229, allocations: 52.36 kB / 474.9 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001197/0.123, allocations: 73.7 kB / 475 MB, free: 7.781 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001537/0.1232, allocations: 164.5 kB / 475.1 MB, free: 7.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1232, allocations: 0 / 475.1 MB, free: 7.621 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006052/0.1238, allocations: 163.7 kB / 475.3 MB, free: 7.461 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.0034/0.1272, allocations: 1.811 MB / 477.1 MB, free: 5.676 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001616/0.1288, allocations: 0.6148 MB / 477.7 MB, free: 5.062 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1288, allocations: 0 / 477.7 MB, free: 5.062 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007797/0.1296, allocations: 318.3 kB / 478 MB, free: 4.754 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.13, allocations: 33.78 kB / 478.1 MB, free: 4.723 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007154/0.1371, allocations: 4.078 MB / 482.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004216/0.1376, allocations: 0.8035 MB / 482.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004053/0.138, allocations: 90.81 kB / 483 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003039/0.1383, allocations: 147.3 kB / 483.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of SimCode: time 1.953e-06/0.1383, allocations: 4 kB / 483.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03283/0.1712, allocations: 10.92 MB / 494.1 MB, free: 4.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.499/8.67, allocations: 3.938 kB / 494.1 MB, free: 4.676 MB / 366.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)