Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 95.64 kB / 18.95 MB, free: 2.691 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 212.2 kB / 22.24 MB, free: 5.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.562/1.562, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo): time 0.02824/0.02824, allocations: 3.938 MB / 316.4 MB, free: 15.16 MB / 254.1 MB " [Timeout remaining time 180] Using package AdvancedNoise with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AdvancedNoise.Examples.TimeBasedCorrelations,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedCorrelations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.TimeBasedCorrelations,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedCorrelations",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002025, allocations: 71.89 kB / 439.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09875/0.1008, allocations: 54.15 MB / 493.8 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.003432/0.1042, allocations: 1.897 MB / 495.7 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002919/0.1071, allocations: 1.468 MB / 497.2 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001458/0.1073, allocations: 7.938 kB / 497.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001917/0.1075, allocations: 55.41 kB / 497.3 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007803/0.1082, allocations: 267 kB / 497.5 MB, free: 1.758 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.0008737/0.1091, allocations: 359.1 kB / 497.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007415/0.1099, allocations: 0.6511 MB / 498.5 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.11, allocations: 58.33 kB / 498.6 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000322/0.1103, allocations: 259.2 kB / 498.8 MB, free: 448 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003503/0.1107, allocations: 263 kB / 499.1 MB, free: 184 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000101/0.1108, allocations: 64 kB / 499.2 MB, free: 120 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006942/0.1115, allocations: 387.4 kB / 499.5 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.1116, allocations: 131.6 kB / 499.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002264/0.1119, allocations: 195.1 kB / 499.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009053/0.1128, allocations: 0.7281 MB / 0.4889 GB, free: 14.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1128, allocations: 0 / 0.4889 GB, free: 14.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1128, allocations: 0 / 0.4889 GB, free: 14.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.1128, allocations: 0 / 0.4889 GB, free: 14.69 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.003277/0.1161, allocations: 2.389 MB / 0.4912 GB, free: 12.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.1161, allocations: 8.031 kB / 0.4912 GB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.717e-05/0.1162, allocations: 70.72 kB / 0.4913 GB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001309/0.1175, allocations: 165.6 kB / 0.4914 GB, free: 12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007145/0.1182, allocations: 305.8 kB / 0.4917 GB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.467e-05/0.1183, allocations: 40.81 kB / 0.4917 GB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.399e-05/0.1184, allocations: 36.38 kB / 0.4918 GB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.1197, allocations: 0.6529 MB / 0.4924 GB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/0.1198, allocations: 11.94 kB / 0.4924 GB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.189e-05/0.1198, allocations: 16 kB / 0.4924 GB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.1198, allocations: 4 kB / 0.4924 GB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00168/0.1215, allocations: 0.7003 MB / 0.4931 GB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002063/0.1236, allocations: 0.9859 MB / 0.4941 GB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00139/0.1249, allocations: 0.5964 MB / 0.4947 GB, free: 8.543 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009505/0.1259, allocations: 477.2 kB / 0.4951 GB, free: 8.062 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.679e-05/0.1259, allocations: 8.328 kB / 0.4951 GB, free: 8.055 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001342/0.1273, allocations: 0.8174 MB / 0.4959 GB, free: 7.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=57): time 2.485e-06/0.1273, allocations: 4 kB / 0.4959 GB, free: 7.176 MB / 366.1 MB Notification: Performance of matching and sorting (n=57): time 0.003297/0.1306, allocations: 1.546 MB / 0.4975 GB, free: 5.586 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.435e-05/0.1307, allocations: 126.8 kB / 0.4976 GB, free: 5.438 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000303/0.131, allocations: 249.9 kB / 0.4978 GB, free: 5.184 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.87e-05/0.1311, allocations: 37.7 kB / 0.4978 GB, free: 5.141 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.1312, allocations: 157.2 kB / 0.498 GB, free: 4.984 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001768/0.1313, allocations: 178.4 kB / 0.4982 GB, free: 4.809 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002386/0.1316, allocations: 130.1 kB / 0.4983 GB, free: 4.676 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.1318, allocations: 350.7 kB / 0.4986 GB, free: 4.324 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009388/0.1327, allocations: 440.3 kB / 0.499 GB, free: 3.883 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009347/0.1336, allocations: 432.5 kB / 0.4995 GB, free: 3.449 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001774/0.1354, allocations: 0.835 MB / 0.5003 GB, free: 2.586 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1354, allocations: 0 / 0.5003 GB, free: 2.586 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002132/0.1376, allocations: 1.006 MB / 0.5013 GB, free: 1.551 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001138/0.1377, allocations: 89.81 kB / 0.5013 GB, free: 1.453 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.1377, allocations: 3.984 kB / 0.5013 GB, free: 1.449 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.1377, allocations: 7.938 kB / 0.5014 GB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007763/0.1385, allocations: 131.8 kB / 0.5015 GB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.1385, allocations: 3.984 kB / 0.5015 GB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003987/0.1389, allocations: 75.59 kB / 0.5016 GB, free: 1.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.139, allocations: 51.92 kB / 0.5016 GB, free: 1.184 MB / 366.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: 26 (globalSeed.seed,noise2.actualGlobalSeed,noise2.localSeed,globalSeed.id_impure,noise1.actualGlobalSeed,noise1.localSeed,noise2.r,noise2.bufferStartTime,noise2.buffer[2],noise2.buffer[1],noise2.state[4],noise2.state[3],noise2.state[2],noise2.state[1],noise1.r,noise1.bufferStartTime,noise1.buffer[2],noise1.buffer[1],noise1.state[4],noise1.state[3],noise1.state[2],noise1.state[1],$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 2 * 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.000354/0.1393, allocations: 271.1 kB / 0.5019 GB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.696e-05/0.1394, allocations: 43.77 kB / 0.5019 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002479/0.1419, allocations: 1.204 MB / 0.5031 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.1419, allocations: 4 kB / 0.5031 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1419, allocations: 0 / 0.5031 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.1419, allocations: 4 kB / 0.5031 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006332/0.1426, allocations: 476.6 kB / 0.5035 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1426, allocations: 3.938 kB / 0.5035 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007128/0.1433, allocations: 107.8 kB / 0.5037 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.293e-06/0.1433, allocations: 4 kB / 0.5037 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-05/0.1434, allocations: 23.98 kB / 0.5037 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.1434, allocations: 8 kB / 0.5037 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1434, allocations: 0 / 0.5037 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003551/0.1469, allocations: 1.827 MB / 0.5055 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.763e-05/0.147, allocations: 39.62 kB / 0.5055 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.1471, allocations: 35.98 kB / 0.5055 GB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003671/0.1475, allocations: 35.95 kB / 0.5056 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001955/0.1477, allocations: 63.89 kB / 0.5056 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/0.1478, allocations: 55.92 kB / 0.5057 GB, free: 12.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001849/0.1479, allocations: 173.2 kB / 0.5059 GB, free: 12.67 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1479, allocations: 4 kB / 0.5059 GB, free: 12.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005331/0.1485, allocations: 171.7 kB / 0.506 GB, free: 12.5 MB / 382.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: 20 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,noise1.state[1],noise1.state[2],noise1.state[3],noise1.state[4],noise1.buffer[1],noise1.buffer[2],noise1.bufferStartTime,noise1.r,noise2.state[1],noise2.state[2],noise2.state[3],noise2.state[4],noise2.buffer[1],noise2.buffer[2],noise2.bufferStartTime,noise2.r) * Number of discrete states: 20 (noise2.buffer[2],noise2.buffer[1],noise2.r,noise2.bufferStartTime,noise2.state[4],noise2.state[3],noise2.state[2],noise2.state[1],$whenCondition2,$whenCondition1,noise1.buffer[2],noise1.buffer[1],noise1.r,noise1.bufferStartTime,noise1.state[4],noise1.state[3],noise1.state[2],noise1.state[1],$whenCondition4,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.004547/0.153, allocations: 2.6 MB / 0.5086 GB, free: 9.879 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002352/0.1554, allocations: 1.175 MB / 0.5097 GB, free: 8.656 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1554, allocations: 4 kB / 0.5097 GB, free: 8.652 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001224/0.1566, allocations: 0.6858 MB / 0.5104 GB, free: 7.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.1569, allocations: 47.16 kB / 0.5104 GB, free: 7.887 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009749/0.1667, allocations: 5.542 MB / 0.5158 GB, free: 2.176 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002182/0.1669, allocations: 207.9 kB / 0.516 GB, free: 1.957 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003752/0.1673, allocations: 62.97 kB / 0.5161 GB, free: 1.895 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002959/0.1676, allocations: 139.4 kB / 0.5162 GB, free: 1.758 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.1676, allocations: 0 / 0.5162 GB, free: 1.758 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2504/0.418, allocations: 12.85 MB / 0.5288 GB, free: 34.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.24, allocations: 2.219 kB / 0.5288 GB, free: 34.91 MB / 382.1 MB " [Timeout remaining time 648] (rm -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_TimeBasedCorrelations_fmu --startTime=0 --stopTime=100 --stepSize=0.01 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_TimeBasedCorrelations.fmu > AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.705630310811102] Failed to read output from testmodel.py, exit status != 0: 12.35173331713304 12.373127042 12.256995598 Calling exit ...