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.001182/0.001182, allocations: 108 kB / 15.61 MB, free: 152 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.001233/0.001233, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.373/1.373, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1278/0.1278, allocations: 3.887 MB / 294.3 MB, free: 3.285 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 67.89 kB / 355.6 MB, free: 3.516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1082, allocations: 50.19 MB / 405.8 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.003928/0.1122, allocations: 2.024 MB / 407.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003216/0.1155, allocations: 1.662 MB / 409.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002273/0.1157, allocations: 3.938 kB / 409.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000221/0.116, allocations: 43.48 kB / 409.5 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008465/0.1168, allocations: 255 kB / 409.7 MB, free: 13.28 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.001036/0.1179, allocations: 383 kB / 410.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006776/0.1186, allocations: 0.5888 MB / 410.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.1188, allocations: 107.4 kB / 410.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002865/0.1191, allocations: 227.3 kB / 411 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000347/0.1195, allocations: 279 kB / 411.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001143/0.1196, allocations: 60 kB / 411.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007299/0.1203, allocations: 423.4 kB / 411.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001445/0.1205, allocations: 143.5 kB / 411.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002217/0.1207, allocations: 218.9 kB / 412.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009382/0.1217, allocations: 0.7445 MB / 412.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.1217, allocations: 4 kB / 412.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1217, allocations: 0 / 412.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.1217, allocations: 0 / 412.9 MB, free: 10.14 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.001346/0.123, allocations: 0.7082 MB / 413.6 MB, free: 9.375 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1231, allocations: 8.031 kB / 413.6 MB, free: 9.367 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.455e-05/0.1232, allocations: 66.72 kB / 413.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001371/0.1246, allocations: 164.3 kB / 413.8 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000715/0.1253, allocations: 371.1 kB / 414.2 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.431e-05/0.1254, allocations: 33.02 kB / 414.2 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.974e-05/0.1255, allocations: 48.36 kB / 414.3 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.1266, allocations: 478.3 kB / 414.7 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.1266, allocations: 3.938 kB / 414.7 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.165e-05/0.1267, allocations: 8 kB / 414.7 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.1267, allocations: 8 kB / 414.8 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.1282, allocations: 0.5217 MB / 415.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002131/0.1303, allocations: 1.201 MB / 416.5 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001433/0.1318, allocations: 0.5036 MB / 417 MB, free: 5.871 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007442/0.1325, allocations: 281.5 kB / 417.3 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.921e-05/0.1326, allocations: 12.34 kB / 417.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.1326, allocations: 38.94 kB / 417.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.954e-06/0.1327, allocations: 0 / 417.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002425/0.1351, allocations: 0.8296 MB / 418.1 MB, free: 4.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.1351, allocations: 59.41 kB / 418.2 MB, free: 4.629 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002229/0.1354, allocations: 229 kB / 418.4 MB, free: 4.395 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.004e-05/0.1354, allocations: 37.7 kB / 418.5 MB, free: 4.352 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.656e-05/0.1355, allocations: 160.9 kB / 418.6 MB, free: 4.191 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.1357, allocations: 161.7 kB / 418.8 MB, free: 4.031 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002075/0.1359, allocations: 106.2 kB / 418.9 MB, free: 3.922 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.136, allocations: 346.7 kB / 419.2 MB, free: 3.574 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007597/0.1368, allocations: 265 kB / 419.5 MB, free: 3.316 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007411/0.1375, allocations: 272.9 kB / 419.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001388/0.1389, allocations: 0.5056 MB / 420.2 MB, free: 2.535 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.139, allocations: 0 / 420.2 MB, free: 2.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001758/0.1407, allocations: 0.6781 MB / 420.9 MB, free: 1.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.1407, allocations: 4 kB / 420.9 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.1408, allocations: 4 kB / 420.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.1408, allocations: 0 / 420.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008077/0.1416, allocations: 147.8 kB / 421.1 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.431e-05/0.1416, allocations: 3.938 kB / 421.1 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003901/0.142, allocations: 63.47 kB / 421.1 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.1422, allocations: 63.89 kB / 421.2 MB, free: 1.57 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.0002236/0.1424, allocations: 172.8 kB / 421.4 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.546e-05/0.1425, allocations: 27.62 kB / 421.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001912/0.1444, allocations: 0.6713 MB / 422.1 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.517e-06/0.1444, allocations: 7.984 kB / 422.1 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1444, allocations: 0 / 422.1 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/0.1445, allocations: 3.938 kB / 422.1 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006984/0.1452, allocations: 0.5831 MB / 422.7 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1452, allocations: 0 / 422.7 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1762/0.3213, allocations: 113 kB / 422.8 MB, free: 49.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.368e-06/0.3214, allocations: 5.734 kB / 422.8 MB, free: 49.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.3215, allocations: 20.67 kB / 422.8 MB, free: 49.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.3215, allocations: 1.875 kB / 422.8 MB, free: 49.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3215, allocations: 0.5625 kB / 422.8 MB, free: 49.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002574/0.3241, allocations: 1.034 MB / 423.8 MB, free: 49.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.546e-05/0.3242, allocations: 114.8 kB / 423.9 MB, free: 49.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.091e-05/0.3243, allocations: 12.81 kB / 424 MB, free: 49.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003697/0.3246, allocations: 26.92 kB / 424 MB, free: 49.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.3248, allocations: 63.95 kB / 424 MB, free: 49.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-05/0.3249, allocations: 61.83 kB / 424.1 MB, free: 49.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001154/0.325, allocations: 163.2 kB / 424.3 MB, free: 49.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.325, allocations: 0 / 424.3 MB, free: 49.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005545/0.3256, allocations: 169.3 kB / 424.4 MB, free: 49.15 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.003017/0.3286, allocations: 1.817 MB / 426.3 MB, free: 48.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001692/0.3303, allocations: 0.647 MB / 426.9 MB, free: 48.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3303, allocations: 0 / 426.9 MB, free: 48.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007243/0.331, allocations: 325 kB / 427.2 MB, free: 48.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/0.3314, allocations: 31.66 kB / 427.2 MB, free: 48.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006203/0.3376, allocations: 4.103 MB / 431.3 MB, free: 45.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.3379, allocations: 0.8036 MB / 432.2 MB, free: 45.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004527/0.3383, allocations: 92.2 kB / 432.2 MB, free: 45.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002632/0.3386, allocations: 144.9 kB / 432.4 MB, free: 45.1 MB / 350.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3386, allocations: 0 / 432.4 MB, free: 45.1 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0306/0.3692, allocations: 10.63 MB / 443 MB, free: 43.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.098/8.467, allocations: 11.88 kB / 443 MB, free: 43.98 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)