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.001956/0.001956, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002416/0.002416, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.478/1.478, allocations: 230.6 MB / 256 MB, free: 8.016 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.02902/0.02902, allocations: 3.936 MB / 316.4 MB, free: 15.33 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.001921/0.001921, allocations: 63.89 kB / 439.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09387/0.09579, allocations: 54.14 MB / 493.9 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.003375/0.09917, allocations: 2.028 MB / 495.9 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002912/0.1021, allocations: 1.565 MB / 497.5 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001875/0.1023, allocations: 7.938 kB / 497.5 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001876/0.1025, allocations: 51.41 kB / 497.5 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000937/0.1034, allocations: 259 kB / 497.8 MB, free: 1.793 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.0009505/0.1043, allocations: 363.1 kB / 498.2 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008535/0.1052, allocations: 0.655 MB / 498.8 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000171/0.1054, allocations: 58.33 kB / 498.9 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004371/0.1058, allocations: 267.2 kB / 499.1 MB, free: 468 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004819/0.1063, allocations: 287 kB / 499.4 MB, free: 180 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001548/0.1064, allocations: 64 kB / 499.5 MB, free: 116 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008152/0.1073, allocations: 395.4 kB / 499.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002036/0.1075, allocations: 135.6 kB / 500 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003003/0.1078, allocations: 234.9 kB / 0.4885 GB, free: 15.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00111/0.1089, allocations: 0.7165 MB / 0.4892 GB, free: 14.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1089, allocations: 0 / 0.4892 GB, free: 14.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1089, allocations: 4 kB / 0.4892 GB, free: 14.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.441e-05/0.1089, allocations: 0 / 0.4892 GB, free: 14.64 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.003494/0.1124, allocations: 2.428 MB / 0.4916 GB, free: 12.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.1124, allocations: 8.031 kB / 0.4916 GB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001178/0.1125, allocations: 66.72 kB / 0.4916 GB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001412/0.114, allocations: 168.5 kB / 0.4918 GB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000743/0.1147, allocations: 313.7 kB / 0.4921 GB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.338e-05/0.1148, allocations: 36.81 kB / 0.4921 GB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.92e-05/0.1149, allocations: 36.38 kB / 0.4922 GB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.1161, allocations: 0.5754 MB / 0.4927 GB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.1162, allocations: 3.938 kB / 0.4927 GB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.963e-05/0.1162, allocations: 8 kB / 0.4927 GB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.859e-06/0.1162, allocations: 8 kB / 0.4928 GB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001586/0.1178, allocations: 0.6306 MB / 0.4934 GB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002261/0.1201, allocations: 1.103 MB / 0.4944 GB, free: 9.133 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001305/0.1214, allocations: 0.515 MB / 0.4949 GB, free: 8.609 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008597/0.1222, allocations: 401.8 kB / 0.4953 GB, free: 8.215 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.872e-05/0.1223, allocations: 4.328 kB / 0.4953 GB, free: 8.211 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001254/0.1235, allocations: 0.7555 MB / 0.4961 GB, free: 7.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=57): time 1.773e-06/0.1235, allocations: 0 / 0.4961 GB, free: 7.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=57): time 0.003083/0.1266, allocations: 1.384 MB / 0.4974 GB, free: 6.008 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.816e-05/0.1267, allocations: 134.7 kB / 0.4976 GB, free: 5.852 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002802/0.127, allocations: 257.8 kB / 0.4978 GB, free: 5.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.825e-05/0.127, allocations: 41.7 kB / 0.4978 GB, free: 5.543 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.1272, allocations: 161.1 kB / 0.498 GB, free: 5.383 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001673/0.1273, allocations: 178.5 kB / 0.4982 GB, free: 5.207 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002209/0.1276, allocations: 122.1 kB / 0.4983 GB, free: 5.082 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.1277, allocations: 350.7 kB / 0.4986 GB, free: 4.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008501/0.1286, allocations: 353 kB / 0.4989 GB, free: 4.387 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008513/0.1294, allocations: 349.1 kB / 0.4993 GB, free: 4.047 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001725/0.1312, allocations: 0.8233 MB / 0.5001 GB, free: 3.195 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1312, allocations: 0 / 0.5001 GB, free: 3.195 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002014/0.1332, allocations: 0.925 MB / 0.501 GB, free: 2.254 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.912e-05/0.1333, allocations: 87.38 kB / 0.5011 GB, free: 2.156 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.1333, allocations: 4 kB / 0.5011 GB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.1333, allocations: 7.922 kB / 0.5011 GB, free: 2.145 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007904/0.1341, allocations: 131.8 kB / 0.5012 GB, free: 2.016 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.1341, allocations: 0 / 0.5012 GB, free: 2.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004074/0.1345, allocations: 75.58 kB / 0.5013 GB, free: 1.941 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.896e-05/0.1346, allocations: 55.92 kB / 0.5013 GB, free: 1.887 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.0003601/0.135, allocations: 298.9 kB / 0.5016 GB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.1351, allocations: 43.77 kB / 0.5017 GB, free: 1.531 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002398/0.1375, allocations: 1.13 MB / 0.5028 GB, free: 380 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.1375, allocations: 7.938 kB / 0.5028 GB, free: 372 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.1375, allocations: 0 / 0.5028 GB, free: 372 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.1375, allocations: 7.922 kB / 0.5028 GB, free: 364 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007292/0.1382, allocations: 0.5708 MB / 0.5033 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.1382, allocations: 0 / 0.5033 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007658/0.139, allocations: 99.73 kB / 0.5034 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.139, allocations: 4 kB / 0.5034 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.221e-05/0.1391, allocations: 35.97 kB / 0.5035 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.1391, allocations: 0 / 0.5035 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1391, allocations: 0 / 0.5035 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003381/0.1425, allocations: 1.668 MB / 0.5051 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.421e-05/0.1425, allocations: 39.64 kB / 0.5051 GB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001165/0.1426, allocations: 31.98 kB / 0.5052 GB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004038/0.143, allocations: 35.95 kB / 0.5052 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001691/0.1432, allocations: 63.91 kB / 0.5053 GB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.1433, allocations: 59.92 kB / 0.5053 GB, free: 13.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001742/0.1435, allocations: 173.2 kB / 0.5055 GB, free: 13.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1435, allocations: 0 / 0.5055 GB, free: 13.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005363/0.144, allocations: 171.7 kB / 0.5057 GB, free: 13.34 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.004321/0.1483, allocations: 2.439 MB / 0.508 GB, free: 10.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00215/0.1505, allocations: 1.02 MB / 0.509 GB, free: 9.863 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1505, allocations: 0 / 0.509 GB, free: 9.863 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.1517, allocations: 0.6317 MB / 0.5096 GB, free: 9.207 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/0.152, allocations: 48.48 kB / 0.5097 GB, free: 9.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008922/0.1609, allocations: 5.073 MB / 0.5146 GB, free: 3.984 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004592/0.1614, allocations: 0.8121 MB / 0.5154 GB, free: 3.148 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003552/0.1617, allocations: 66.95 kB / 0.5155 GB, free: 3.086 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002902/0.162, allocations: 147.4 kB / 0.5156 GB, free: 2.941 MB / 382.1 MB Notification: Performance of SimCode: time 8.02e-07/0.162, allocations: 0 / 0.5156 GB, free: 2.941 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2553/0.4173, allocations: 12.28 MB / 0.5276 GB, free: 35.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.34, allocations: 12.64 kB / 0.5277 GB, free: 35.57 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.563131807837635] Failed to read output from testmodel.py, exit status != 0: 12.455796713009477 12.469443122 12.357947867 Calling exit ...