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.001096/0.001096, allocations: 91.14 kB / 15.06 MB, free: 1.098 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.001424/0.001424, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.182/0.182, allocations: 3.885 MB / 295 MB, free: 4.008 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003577, allocations: 8 kB / 356.7 MB, free: 3.504 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1254, allocations: 51.18 MB / 407.9 MB, free: 292 kB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedCorrelations): time 0.002131/0.1276, allocations: 1.689 MB / 409.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002537/0.1301, allocations: 1.547 MB / 411.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.1303, allocations: 0 / 411.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000168/0.1304, allocations: 27.67 kB / 411.2 MB, free: 13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006155/0.1311, allocations: 179.3 kB / 411.3 MB, free: 12.83 MB / 350.1 MB [/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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007414/0.1318, allocations: 299.3 kB / 411.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004877/0.1323, allocations: 0.4912 MB / 412.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000179/0.1325, allocations: 78.12 kB / 412.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001741/0.1327, allocations: 171.3 kB / 412.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003109/0.133, allocations: 227.1 kB / 412.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.31e-05/0.1331, allocations: 20 kB / 412.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006024/0.1337, allocations: 375.4 kB / 413 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.896e-05/0.1338, allocations: 87.69 kB / 413.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.723e-05/0.1339, allocations: 81.45 kB / 413.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006604/0.1345, allocations: 0.546 MB / 413.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1346, allocations: 7.938 kB / 413.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1346, allocations: 0 / 413.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.1346, allocations: 4 kB / 413.7 MB, free: 10.46 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.001131/0.1357, allocations: 0.6262 MB / 414.3 MB, free: 9.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.1358, allocations: 16.02 kB / 414.3 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001026/0.1359, allocations: 70.55 kB / 414.4 MB, free: 9.691 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001145/0.137, allocations: 163.2 kB / 414.6 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007588/0.1378, allocations: 358.1 kB / 414.9 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.966e-05/0.1379, allocations: 36.66 kB / 415 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.372e-05/0.138, allocations: 39.91 kB / 415 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.1391, allocations: 493.6 kB / 415.5 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.1391, allocations: 0 / 415.5 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.051e-05/0.1391, allocations: 16 kB / 415.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.1392, allocations: 8 kB / 415.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.1405, allocations: 0.5374 MB / 416 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002066/0.1426, allocations: 1.217 MB / 417.3 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.144, allocations: 0.5304 MB / 417.8 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007549/0.1447, allocations: 309.9 kB / 418.1 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.699e-05/0.1448, allocations: 20.41 kB / 418.1 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.1448, allocations: 35 kB / 418.1 MB, free: 5.836 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 1.933e-06/0.1449, allocations: 0 / 418.1 MB, free: 5.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.00227/0.1471, allocations: 0.8773 MB / 419 MB, free: 4.953 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.1472, allocations: 55.84 kB / 419.1 MB, free: 4.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002845/0.1475, allocations: 229 kB / 419.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.829e-05/0.1475, allocations: 33.7 kB / 419.3 MB, free: 4.613 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001838/0.1477, allocations: 160.9 kB / 419.5 MB, free: 4.453 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.1479, allocations: 165.5 kB / 419.6 MB, free: 4.289 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.034e-05/0.1479, allocations: 16 kB / 419.7 MB, free: 4.273 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1481, allocations: 346.8 kB / 420 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006661/0.1487, allocations: 277 kB / 420.3 MB, free: 3.652 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006789/0.1494, allocations: 280.9 kB / 420.5 MB, free: 3.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006568/0.1501, allocations: 274.1 kB / 420.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1501, allocations: 0 / 420.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001648/0.1518, allocations: 0.7093 MB / 421.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.1518, allocations: 4 kB / 421.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.1518, allocations: 0 / 421.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.1518, allocations: 4 kB / 421.5 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007691/0.1526, allocations: 151.8 kB / 421.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.1526, allocations: 4 kB / 421.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.153, allocations: 63.5 kB / 421.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/0.1531, allocations: 70.48 kB / 421.8 MB, free: 2.109 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 (noise1.localSeed,noise2.localSeed,noise1.actualGlobalSeed,globalSeed.id_impure,noise2.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002344/0.1533, allocations: 169.7 kB / 422 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.318e-05/0.1534, allocations: 35.52 kB / 422 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002075/0.1555, allocations: 0.8461 MB / 422.9 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.978e-05/0.1556, allocations: 15.98 kB / 422.9 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.1556, allocations: 4 kB / 422.9 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/0.1556, allocations: 3.984 kB / 422.9 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008351/0.1565, allocations: 0.6223 MB / 423.5 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.1565, allocations: 3.938 kB / 423.5 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000713/0.1572, allocations: 123.8 kB / 423.6 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.598e-06/0.1572, allocations: 7.984 kB / 423.6 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.242e-05/0.1573, allocations: 19.98 kB / 423.7 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.1573, allocations: 0 / 423.7 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.1573, allocations: 3.984 kB / 423.7 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2513/0.4086, allocations: 1.223 MB / 424.9 MB, free: 46.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.771e-05/0.4087, allocations: 111.9 kB / 425 MB, free: 46.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.343e-05/0.4088, allocations: 11.62 kB / 425 MB, free: 46.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000348/0.4092, allocations: 36.88 kB / 425 MB, free: 46.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/0.4093, allocations: 62.05 kB / 425.1 MB, free: 46.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/0.4095, allocations: 68.89 kB / 425.2 MB, free: 46.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001381/0.4096, allocations: 164.5 kB / 425.3 MB, free: 46.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4096, allocations: 0 / 425.3 MB, free: 46.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006109/0.4102, allocations: 166.6 kB / 425.5 MB, free: 46.45 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: 10 ($cse4[1],$cse4[2],$cse6[1],$cse6[2],$cse8[1],$cse8[2],$cse10[1],$cse10[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 (57): * Single equations (assignments): 47 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002988/0.4132, allocations: 2.017 MB / 427.5 MB, free: 45.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001465/0.4147, allocations: 0.6764 MB / 428.2 MB, free: 45.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4147, allocations: 0 / 428.2 MB, free: 45.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007697/0.4155, allocations: 491.5 kB / 428.7 MB, free: 45.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003733/0.4159, allocations: 35.92 kB / 428.7 MB, free: 45.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00467/0.4206, allocations: 2.822 MB / 431.5 MB, free: 44.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.4208, allocations: 0.8144 MB / 432.3 MB, free: 44.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004819/0.4213, allocations: 91.08 kB / 432.4 MB, free: 44.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003699/0.4217, allocations: 159.9 kB / 432.6 MB, free: 44.12 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4217, allocations: 0 / 432.6 MB, free: 44.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02318/0.4449, allocations: 10.38 MB / 443 MB, free: 43.26 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002125/0.4451, allocations: 247.5 kB / 443.2 MB, free: 42.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.242/2.688, allocations: 0 / 443.2 MB, free: 42.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/linux/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) Environment - environmentSimulation: